Response

Handle the Response in XML or JSON/JSONP

Depending on the media type specified in the HTTP accept request-header, the response will either be in XML or JSON/JSONP. The JSONP data is wrapped in a callback function called UlrichsWebJSON.

The following are the results fields:

  • status – Success | Error
  • statusMessage – [in the case of an Error, this will contain a diagnostic message]
  • totalRecords – [the total number of Records found for the given query]
  • numberOfRecords – [the number of Records returned]
  • requestQuery – [the query]
  • requestFilterQuery – [the filter query]
  • results – [Ulrich’s titles]
  • UlrichTitle – [Ulrich’s Title data]

 

Example of the Response in XML

<?xml version='1.0' encoding='utf-8'?>
<searchResults>
 <status>Success</status>
 <totalRecords>81</totalRecords>
 <numberOfRecords>1</numberOfRecords>
 <requestQuery>title:populism</requestQuery>
 <requestFilterQuery>refereed:true</requestFilterQuery>
 <requestRows>1</requestRows>
 <results>
 <UlrichTitle>
 <id>765207</id>
 <titleId>815590</titleId>
 <title>Populism</title>
 <issn>2588-8064</issn>
 <publisher>
     <string>Brill</string>
 </publisher>
 <country>Netherlands</country>
 <countryCode>NLD</countryCode>
 <status>Forthcoming</status>
 <toc>false</toc>
 <refereed>true</refereed>
 <availableOnline>false</availableOnline>
 <openAccess>false</openAccess>
 <reviewed>false</reviewed>
 <historicTitle>false</historicTitle>
 <frequency>Semi-annually</frequency>
 <price>USD 240.00</price>
 <subject>
     <string>POLITICAL SCIENCE</string>
 </subject>
 <keyFeatures>
     <string>RPR</string>
     <string>URL</string>
 </keyFeatures>
 <otherFeatures/>
 <deweyNumbers>
     <string>320</string>
 </deweyNumbers>
 <languages>
     <string>English</string>
 </languages>
 <formats>
     <string>Print</string>
 </formats>
 <serialTypes>
     <string>Journal</string>
 </serialTypes>
 <contentTypes>
     <string>Academic / Scholarly</string>
 </contentTypes>
 <rss/>
 </UlrichTitle>
 </results>
</searchResults>

 

Example of the Response in JSON

UlrichsWebJSON({"searchResults":{"status":"Success","totalRecords":762,"numberOfRecords":1,"requestQuery":"title:garden","requestRows":1,"results":[{"UlrichTitle":{"id":43049,"title":"The Garden","issn":"1754-5897","refereed":false,"openAccess":false,"reviewed":false,"subject":[""],"languages":[""],"formats":[""],"serialTypes":[""],"contentTypes":[""],"rss":[""]])

 

Example of the Response in JSONP

<!DOCTYPE html>
<html>
<head>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
 <script>
 $.ajax({
  dataType: 'jsonp',
  jsonp: 'callback',
 url: 'http://ulrichsweb.serialssolutions.com/api/json/SEARCHAPI_KEY/search?callback=?&query=title:garden',
 success: function (data) {
 alert(data.results[0].title);
 },
 });
 </script>
</body>
</html>