SruRequest
class
- class almasru.client.SruRequest(query: str, limit: int | None = 10, base_url: str | None = None, is_iz_request: bool | None = False)
Class representing SRU request
This class is used to make SruRequests and to fetch
almasru.client.SruRecord
results.- Variables:
query – string containing the query for example ‘alma.mms_id=991093571899705501’
limit – int indicating the max number of returned records. If more records are available, a warning is raised
error – boolean, is True in case of error
error_messages – list of string with the error messages
are_more_results_available – bool indicating if more records than the limit is available
records – list of
almasru.client.SruRecord
base_url – base url of the SRU server
is_iz_request – flag to indicate if request is into IZ
- Example:
SruRequest(‘alma.mms_id=991093571899705501’)