Search catalog
The SearchCatalog is used when testing and troubleshooting FindItem. It is comparable to FindItem but returns in XML detailed bibliographic information from the record retrieved.
SearchCatalog uses the 'aid' (obtained using the Authentication service). Patron credentials can not be sent as part of SearchCatalog.
SearchCatalog
SearchCatalog service URL:
http://HOSTNAME/dws/catalog/search?aid=${aid}
where ${aid} is the authorization id for the user logged in. The {aid} is provided by the Authentication service.
For example:
http://HOSTNAME/dws/catalog/search?aid=YkbOGfBGv6hKLefABkWJP2yYlI8
HTTP Method: POST
HTTP Header Content-Type: application/json
SearchCatalog request body - JSON elements
Element | Descripción |
---|---|
PartnershipId |
Partnership ID indicating to which consortium/group the library belongs.
|
ExactSearch |
Note:
|
Type |
The type of exact search to be used. Supported options are:
If there are hyphens in the ISBN they are dropped.
If there are alpha characters at the end of the ISBN they are dropped, unless the alpha character is an X.
If there is punctuation within the ISBN that is listed in the ID_SPECIAL_CHAR table, the punctuation and any characters after it are dropped.
If multiple ISBNs are provided, they are combined using OR logic |
BibSearch |
Notes:
|
Title |
Mandatory when BibSearch is provided. The title is searched as a phrase. No cleanup, such as the removal of special characters, is done prior to the search. |
Author |
Commas and periods will be replaced with a space. Any initials are dropped.
the following keywords are dropped: author, editor, edited by, and DR.
Dates are dropped.
|
ResultFilter |
Date and format filters can be used to narrow the results. Only one of Include and Exclude filters may be provided. |
Include |
Include the records that match the filter(s) provided. |
PublicationDate |
Include the records that match the year(s) provided.
For publication dates, the four digit year is extracted based on the valid dates configured.
|
Format |
Include the records that match the format(s) provided.
The value for format must be from the configurable list of formats supported. |
Excluir |
Exclude the records that match the filter(s) provided. |
PublicationDate |
Exclude the records that match the year(s) provided.
For publication dates, the four digit year is extracted based on the valid dates configured.
|
Format |
Exclude the records that match the format(s) provided.
The value for format must be from the configurable list of formats supported. |
SearchCatalog response
The response for SearchCatalog is returned as XML. It includes bibliographic, item and locations information if a record is retrieved.
Errors
FindItem may return the following error codes and messages:
Code |
Type |
Mensaje |
---|---|---|
PUBSC001 | Público |
Invalid request The following message could be appended:
Missing required URL parameter: aid |
PUBSC005 | Público |
Invalid JSON request |
PUBAZ001, PUBSC001, PUBSC002 | Público |
Missing parameter The following message could be appended:
PartnershipId is required ExactSearch or BibSearch is required Invalid Type: {Type} provided. No Value for ExactSearch Type: {Type} provided. No title provided. PublicationDate provided in Include and Exclude filters. Format provided in Include and Exclude filters. |
PUBCS003 | Público | Not a valid format: {Format} |
PUBCS004 | Público | Could not parse valid date: {PublicationDate} |
PUBSC004 | Público | Invalid aid |
PUBSC006 | Público | User group not authorized to access the service |
PUBCS002 | Público | No result |
PRIAZ001, PRICS001, PRISC001 | Private | Internal Error |
The following is a sample response for an unsuccessful FindItem request:
<?xml version="1.0" encoding="UTF-8"?> <Problem> <ErrorCode>PUBSC002</ErrorCode> <ErrorMessage>PartnershipId is required</ErrorMessage> </Problem>