Search/Catalog information
Search/Catalog info is a service within DiscoverItem that retrieves information on catalogs being actively searched.
HTTP Method: GET
HTTP Method: POST
HTTP Header Content-Type: "application/json"
HTTP Header User-Agent: ${user-agent}
Standard HTTP clients (browser, HTTP client libraries, etc.) will automatically include its User-Agent value.
Search URL:
https://HOSTNAME/di/search/catalog/info
Search/Catalog parameters
Parameter Name | Definición | Required/Optional, etc. | Notes |
---|---|---|---|
aid | A valid authorization ID | Requerido | Refer to authentication services for details |
query |
A valid Common Common Language - CCL (ISO 8777) query |
Requerido |
Refer to constructing CCL query for details Use the same value for aid and query as used when calling the search service |
Example Call
Catalog info for a search with "aid" and "query" parameters
- aid=12knsfd987234ldfd2
- query=ti%3D%22The%20Stranger%22%20and%20au%3D%22Albert%22%20an d%20au%3D%22Camus%22
{ ti="The Stranger" and au="Albert" and au="Camus" }
https://HOSTNAME/di/search/catalog/info?aid=12knsfd987234ldfd2&query=ti%3D%22The%20Stranger%22%20and%20au%3D%22Albert%22%20and%20au%3D%22Camu s%22
Retrieve information on all catalogs being searched for The Stranger by Albert Camus
Response
The response from this service is a JSON document.
Successful response request
The following is a sample response for a successful request (HTTP status 200 OK):
{ "ActiveCatalog":0, "Catalog":[ { "Name":"Catalog Name", "ItemCount":0, "Hits":0; "State":"Connection State" } ] }
Successful response glossary
Value Name | Definición |
---|---|
ActiveCatalog |
An integer value indicating the number of catalogs being actively searched. A value of 0 means that the search is complete. |
Catalog[n].Hits | An integer value indicating the number of hits matching the search in the catalog. |
Catalog[n].ItemCount | An integer value indicating the number of items retrieved from the catalog. |
Catalog[n].State |
A string value indicating the status of the connection to a catalog as seen by the underlying subsystem. The following are valid values:
|
Unsuccessful response request
{ "Problem": { "Code": "PUBHG004", "Message": "Inactive search" } }
Problem codes and messages glossary
HTTP Status | Code | Type | Mensaje |
---|---|---|---|
400 Bad Request | PUBHG001, PUBSC002 | Público | Missing parameter |
401 Unauthorized | PUBSC004 | Público | Invalid aid |
401 Unauthorized | PUBSC006 | Público | User group not authorized to access the service |
404 Not Found | PUBHG005 | Público | No result |
412 Precondition Failed | PUBHG004 | Público | Inactive search |
500 Internal Server Error | PRIHG001, PRISC001 | Private | Internal error |