BinaryMARCRecordService
General Purpose
Retrieve bibliographic MARC records in binary format.
See the GetHoldingsService for retrieving the record in XML.
Requirements
Voyager 7.x and higher.
Input URL Syntax
This service expects to receive an XML document via POST method.
http://server:port/vxws/BinaryMARCRecordService
XSD
Click here to view the ServiceParametersSchema
Click here to view the VoyagerXmlSchema
Click here to view the ServiceDataSchema
Input XML Example
This service expects to receive a ServiceParametersDocument containing the following optional parameters:
- characterSet – the character set code. May be one of the following values:
- A (for UTF-8 – this is the default value if none is sent)
- L (for LATIN-1)
- M (for MARC21. U and M both map to MARC21)
- O (for OCLC)
- R (for RLIN)
- V (for VRLIN)
- U (for USMARC – left for backward compatibility. U and M both map to MARC21)
- bibId – an array of zero or more bibliographic record ids.
Example:
<?xml version="1.0" encoding="UTF-8"?> <ser:serviceParameters xmlns:ser="http://www.endinfosys.com/Voyager/serviceParameters"> <ser:parameters> <ser:parameter key="bibId"> <ser:value>81874</ser:value> </ser:parameter> <ser:parameter key="characterSet"> <ser:value>M</ser:value> </ser:parameter> </ser:parameters> </ser:serviceParameters>
Output XML Example
This service will return a VoyagerServiceDataDocument containing a holdingsCollection element which contains a binaryMARCRecord element for each given bibId.
Example:
<?xml version="1.0" encoding="UTF-8" ?> <voyagerServiceData xmlns="http://www.endinfosys.com/Voyager/serviceParameters" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xm="http://www.w3.org/2005/05/xmlmime"> <serviceData xsi:type="hol:holdingsCollectionType" xmlns:hol="http://www.endinfosys.com/Voyager/holdings"> <hol:binaryMARCRecord xm:contentType="base64Binary"> <!-- binary MARC data here --> </hol:binaryMARCRecord> </serviceData> </VoyagerServiceData>