https://github.com/mycore-org/sru-adapter
https://github.com/mycore-org/sru-adapter
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mycore-org/sru-adapter
- Owner: MyCoRe-Org
- License: gpl-3.0
- Created: 2022-12-12T10:19:34.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-01-24T10:37:22.000Z (over 2 years ago)
- Last Synced: 2025-01-07T13:03:42.099Z (over 1 year ago)
- Language: Java
- Size: 28.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SRUAdapter
This maven module provides methods to set parameters
needed to communicate with an SRU interface. See the following example to get
an idea of how to use this connector or visit https://www.dnb.de/DE/Professionell/Metadatendienste/Datenbezug/SRU/sru.html
### Example
```
SRUConnector sru = new SRUConnector("https://services.dnb.de/sru");
sru.setCatalog(SRUConnector.CATALOG_DNB);
sru.setVersion(SRUConnector.VERSION_1_1);
sru.setOperation(SRUConnector.OPERATION_SEARCH_RETRIEVE);
sru.setQuery("WOE%3DGoethe");
sru.setRecordSchema(SRUConnector.RECORD_SCHEMA_MARC21_XML);
```
Invoking
```SRUConnector#getQueryURL()```
leads to the following url
```https://services.dnb.de/sru/dnb?version=1.1&operation=searchRetrieve&query=WOE%3DGoethe&recordSchema=MARC21-xml```
### Requirements
- Java 17