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/11/23 14:32] – Give an explicit example for SRU connection dbs | evergreen-admin:sru_and_z39.50 [2025/06/16 12:24] (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===== | ||
| 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: |
| + | |||
| + | ====Testing the Z39.50 server - RPN Searches==== | ||
| 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 123: | ||
| 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 " | + | (Server Default |
| - | Sent searchRequest. | + | |
| - | Received SearchResponse. | + | |
| - | Search | + | |
| - | Number of hits: 0, setno 4 | + | |
| - | records returned: 0 | + | |
| - | Elapsed: 0.611432 | + | |
| Z> find "dead zone" | Z> find "dead zone" | ||
| Sent searchRequest. | Sent searchRequest. | ||
| Line 116: | Line 137: | ||
| []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 | ||
| + | </ | ||
| + | |||
| + | ====Testing the Z39.50 server with CQL Queries==== | ||
| + | |||
| + | You can test out CQL queries against Z39.50 servers with the yaz client, but you need | ||
| + | to setup a mapping file to convert CQL to RPN queries. | ||
| + | |||
| + | |||
| + | < | ||
| + | Z> find " | ||
| + | Sent searchRequest. | ||
| + | Received SearchResponse. | ||
| + | Search was a success. | ||
| + | Number of hits: 0, setno 4 | ||
| + | records returned: 0 | ||
| + | Elapsed: 0.611432 | ||
| </ | </ | ||
| + | =====Adding an Index for Z39.50 Searching===== | ||
| + | Example of adding an index. | ||
evergreen-admin/sru_and_z39.50.1259004736.txt.gz · Last modified: 2022/02/10 13:33 (external edit)