Examples are presented by RERO ILS resource.
Documents
New acquisitions
Warning: combining the new acquisitions filter with an expert search can produce unexpected results, as the query and filter are called up separately and not combined. The best way to obtain the list of new acquisitions is to use the new_acquisition
filter in combination with the library
or location
filter. Example: /global/search/documents?new_acquisition=now-3M/d&organisation=1&library=2
Other resources
Resource queried | Query description | API example | Interface example |
---|---|---|---|
item | by a dateTime field (here, date of resource update). Note: braces are exclusive. |
api/items/?q=_updated:{2021-10-24 TO *} |
pro |
item | by code PAC | api/items/?q=pac_code:(3_consumable OR 1_reserved) |
pro |
item | by any call number (1st or 2nd, including call numbers inherited from the holdings) | api/items/?q=call_numbers:919 |
pro |
item | by a range of call numbers between "BCV TA 70000" and "BCV TA 80000" (regular expression) | api/items/?q=call_number.raw:/BCV TA <70000-80000>/ |
pro |
item | masked | api/items/?q=_masked:true |
pro |
operation log | all document creation operations in january 2022 | api/operation_logs/?q=record.type:doc AND operation:create AND _created:[2022-01-01 TO 2022-01-31] |
API only |
operation log | all requests made on holdings (item.category:provisional filters fictive items used for holdings requests) |
api/operation_logs/?q=loan.item.category:provisional AND record.type:loan |
API only |
user/patron | patron by affiliation library | api/patrons/?q=patron.libraries.pid:1 |
pro |
user/patron | librarian (professionnal user) by library | api/patrons/?q=libraries.pid:1 |
pro |
user/patron | blocked | api/patrons/?q=patron.blocked:true |
pro |
user/patron | whose zip code starts with 19 and has two other digits (regular expression) Note: regular expressions are possible per token (and not on the whole field) in the case of "text" mapping. |
api/patrons/?q=postal_code:/19[0-9]{2}/ |
pro |
loan | all loans currently in transit | api/loans/?q=state:(ITEM_IN_TRANSIT_TO_HOUSE OR ITEM_IN_TRANSIT_FOR_PICKUP) |
API only |