Work in progress!
This functionality is currently only available on the folio-testing reference environment.
To use the MARC Search Query API,
POST your request to the
source-storage/stream/marc-record-identifiers endpoint. For expample: https://folio-testing-okapi.dev.folio.org/source-storage/stream/marc-record-identifiers You must include the usual Okapi headers including your tenant and token.
Queries submitted to this endpoint will return the UUIDs for the instances related to the SRS MARC records that matched your search criteria.
Search data fields
To search data fields with a left anchored search, identify the tag, follow it with a dot, followed by the subfield. For instance to search the
260$a for 'Paris', use the expression:
"fieldsSearchExpression": "260.a ^= 'Paris'"
To search the
600$2 for 'fast' use:
"fieldsSearchExpression": "600.2 ^= 'fast'"
Search control fields by position
To search by position, identify the tag then follow a dot with the position number, then an underscore, followed by the number of positions you are searching.
To search the
005 for '2021' at beginning at position
0 use this expression:
"fieldsSearchExpression": "005.00_04 = '2021'"
To search the 008 field at position 06 for 's' use this expression:
"fieldsSearchExpression": "008.06_01 = 's'"
Search the leader
To search the leader, specify the position you wish to search. For example to search for 'a' in position 06 and 'm' in position 07, use the expression:
"leaderSearchExpression": "p_06 = 'a' and p_07 = 'm'"