BibGet
Returns bibliographic information for a specified record.
For Element IDs ISBN (6) and UPC (48), PAPI checks the Title Display: Configure system administration setting for the full monograph to determine which entities to display. Libraries must ensure that the ISBN (Long) or the UPC (Long) entity is in one of the following lists to have PAPI display the monograph:
-
Available entities
-
Entities for display
URI
GET | /public/1/bib/{BibID} |
Authorization Required?
Yes, if authentication level set to ALL.
XML Elements Returned
Name |
Description/Notes |
PAPIErrorCode |
PAPI Error code: Negative values represent errors and are defined elsewhere. Note: On successful completion, the PAPI error code is populated with a positive integer representing the number of rows returned. |
ErrorMessage | Error or information message |
ElementID |
Is the element identifier. Possible values include: 2 - Publisher |
Occurrence |
The occurrence of an element. The occurrence of a given element matches the relative order of the underlying data in the MARC record. |
Label |
The label associated with the element in the language specified by the LanguageID input parameter. |
Value |
The value of the element be used for display purposes. |
Alternate |
A flag that indicates whether this row contains an alternate graphic representation associated with closest preceding row where the Alternate value equals zero. If this flag is set to one then the value originated from an 880 tag. Note: If an 880 tag is not linked via $6 to specific data field instance then the Alternate flag will be set to zero. |
Remarks
The properties Local Items Total (10) and Local Items Available (15) will not be included in the returned rowset if the organization identifier is set to system (1).
Example
http://localhost/PAPIService/REST/public/v1/1033/100/1/bib/5000 |
Return - Success
HTTP/1.1 200 OK <BibGetResult xmlns:i="http://www.w3.org/2001/XMLSchemainstance"> <PAPIErrorCode>0</PAPIErrorCode> <ErrorMessage/> <BibGetRows> <BibGetRow> <ElementID>18</ElementID> <Occurence>1</Occurence> <Label>Author:</Label> <Value>Grahame, Kenneth, 1859-1932.</Value> <Alternate>false</Alternate> </BibGetRow> ... <BibGetRow> <ElementID>16</ElementID> <Occurence>1</Occurence> <Label>System Items Available:</Label> <Value>3</Value> <Alternate>false</Alternate> </BibGetRow> </BibGetRows> </BibGetResult> |
Return - Failed
HTTP/1.1 200 OK <BibGetResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <PAPIErrorCode>-1</PAPIErrorCode> <ErrorMessage>Invalid BibID</ErrorMessage> <BibGetRows i:nil="true"/> </BibGetResult> |