evergreen-admin:sru_and_z39.50
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
evergreen-admin:sru_and_z39.50 [2009/07/11 00:32] – Better command line for running simple2zoom dbs | evergreen-admin:sru_and_z39.50 [2025/06/13 14:21] (current) – stompro | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Evergreen: | ======Evergreen: | ||
- | [[http:// | + | [[http:// |
+ | |||
+ | |||
+ | **NOTE:** This documentation is also available in the Evergreen documentation at http:// | ||
=====Testing Evergreen SRU with yaz-client===== | =====Testing Evergreen SRU with yaz-client===== | ||
- | yaz-client is installed as a part of Index Data's YAZ software. Recent versions include support for querying SRU servers. To search Evergreen with yaz-client, choose the GET query method and issue the '' | + | yaz-client is installed as a part of Index Data's YAZ software. Recent versions include support for querying SRU servers. Evergreen has shipped an SRU configuration that works out of the box since Evergreen 1.4. To search Evergreen with yaz-client, choose the GET query method and issue the '' |
< | < | ||
- | $ yaz-client | + | $ yaz-client |
Z> sru GET 1.1 | Z> sru GET 1.1 | ||
Z> find hemingway | Z> find hemingway | ||
Line 53: | Line 56: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
Line 68: | Line 71: | ||
</ | </ | ||
</ | </ | ||
- | - Then we need to create a configuration file that will tell YAZ how to transform marcxml to binary MARC21. | + | =====Using your z39.50 server to access remote databases===== |
+ | - Simple2zoom is not concerned if your data is local or remote, so you can use your server to query remote data as well as local holdings. | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | - To query that from the Evergreen staff-client you would add " | ||
+ | |||
+ | =====Setting up Yaz Configuration===== | ||
+ | - We need to create a configuration file that will tell YAZ how to transform marcxml to binary MARC21. | ||
+ | <code xml> | ||
< | < | ||
<server id=" | <server id=" | ||
Line 75: | Line 100: | ||
< | < | ||
<backend syntax=" | <backend syntax=" | ||
- | <marc inputformat=" | + | <marc inputformat=" |
</ | </ | ||
</ | </ | ||
Line 82: | Line 107: | ||
</ | </ | ||
</ | </ | ||
- | - Run simple2ZOOM as a daemon, specifying the configuration files and one or more listener addresses that the Z39.50 server will be accessible on. If you do not specify a port, it will automatically run on port 9999. In the following example, we tell it to listen both to localhost on port 2210, and on dev.gapines.org on port 210:< | + | - As root, run simple2ZOOM as a daemon, specifying the configuration files and one or more listener addresses that the Z39.50 server will be accessible on. If you do not specify a port, it will automatically run on port 9999. In the following example, we tell it to listen both to localhost on port 2210, and on dev.gapines.org on port 210:< |
- | simple2zoom -c dgo.conf -- -f xml2marc-yaz.cfg localhost: | + | simple2zoom -c dgo.conf -- -f xml2marc-yaz.cfg localhost: |
To test the Z39.50 server, we can use yaz-client again:< | To test the Z39.50 server, we can use yaz-client again:< | ||
Line 96: | Line 121: | ||
Options: search present delSet triggerResourceCtrl scan sort namedResultSets | Options: search present delSet triggerResourceCtrl scan sort namedResultSets | ||
Elapsed: 0.010718 | Elapsed: 0.010718 | ||
- | Z> format | + | Z> format |
Z> find " | Z> find " | ||
Sent searchRequest. | Sent searchRequest. | ||
Line 116: | Line 141: | ||
[]Record type: XML | []Record type: XML | ||
<record xmlns:... (rest of record deliberately truncated) | <record xmlns:... (rest of record deliberately truncated) | ||
+ | |||
+ | (Example using Z39.50 Attribute codes - ISBN Search) | ||
+ | Z> find @attr 1=7 9781476770383 | ||
+ | Sent searchRequest. | ||
+ | Received SearchResponse. | ||
+ | Search was a success. | ||
+ | Number of hits: 1, setno 6 | ||
+ | records returned: 0 | ||
+ | Elapsed: 0.201841 | ||
</ | </ | ||
+ | =====Adding an Index for Z39.50 Searching===== | ||
+ | Example of adding an index. | ||
evergreen-admin/sru_and_z39.50.1247286735.txt.gz · Last modified: 2022/02/10 13:33 (external edit)