en:user_advanced:z3950
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:user_advanced:z3950 [2020/11/11 23:33] – [Download through SRU] kjdon | en:user_advanced:z3950 [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| + | |||
| + | |||
| ====== Z39.50====== | ====== Z39.50====== | ||
| **[[http:// | **[[http:// | ||
| - | Greenstone has support for Z39.50, both as a client | + | Greenstone |
| - | The Greenstone 2 run-time can also act as a client to multiple Z39.50 servers, and a Z39.50 server program is also available. | + | The Greenstone 2 run-time can act as a client to multiple Z39.50 servers, and a Z39.50 server program is also available. |
| Z39.50 support in Greenstone is based around the YAZ toolkit, written by [[http:// | Z39.50 support in Greenstone is based around the YAZ toolkit, written by [[http:// | ||
| Line 11: | Line 14: | ||
| See the [[en: | See the [[en: | ||
| - | Greenstone can download records from a specified Z39.50 server from the GLI (from the Download panel) or the command line (using the '' | + | Greenstone |
| ^Argument^Description^ | ^Argument^Description^ | ||
| Line 24: | Line 27: | ||
| If downloading via the command line, a folder containing the files will be downloaded into the directory from which you run the script (unless the '' | If downloading via the command line, a folder containing the files will be downloaded into the directory from which you run the script (unless the '' | ||
| + | |||
| + | To see the script options, run | ||
| + | < | ||
| + | downloadfrom.pl -h | ||
| + | downloadfrom.pl -download_mode Z3950 -h (shows the specific options for Z3950 mode) | ||
| + | </ | ||
| + | |||
| + | A sample command might be | ||
| + | < | ||
| + | downloadfrom.pl -download_mode Z3950 -host lx2.loc.gov -port 210 -database LCDB_MARC8 -find " | ||
| + | </ | ||
| + | |||
| + | This will make a folder called lx2.loc.gov in the folder that you ran the command from, containing a MARC file with your result records. | ||
| As the files downloaded via Z39.50 are in MARC format, they can be processed by [[en: | As the files downloaded via Z39.50 are in MARC format, they can be processed by [[en: | ||
| Line 53: | Line 69: | ||
| To build a collection using the downloaded XML files, [[en: | To build a collection using the downloaded XML files, [[en: | ||
| - | ===== Compiling Greenstone with Z39.50 support ===== | + | ===== Compiling Greenstone |
| * Linux/ | * Linux/ | ||
| Line 73: | Line 89: | ||
| * To enable iconv or xml2, edit greenstone\runtime-src\win32.mak, | * To enable iconv or xml2, edit greenstone\runtime-src\win32.mak, | ||
| - | ===== Using the Z39.50 client ===== | + | ===== Using the Greenstone 2 Z39.50 client ===== |
| - | Once Greenstone has Z39.50 support compiled in, it can act as a client to multiple z39.50 servers. The file | + | Once Greenstone |
| - | <TABAREA tabs=" | + | |
| - | <TAB>'' | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | specifies a list of servers to connect to. By default, no servers are set up, although the config file comes with one (commented out) example Z39.50 server, for the United States' | + | |
| Each entry consists of: | Each entry consists of: | ||
| Line 98: | Line 108: | ||
| Greenstone will display a new " | Greenstone will display a new " | ||
| - | ===== Using the z3950 server ===== | + | ===== Using the Greenstone 2 z3950 server ===== |
| * The z3950server program is installed into '' | * The z3950server program is installed into '' | ||
| * The '' | * The '' | ||
| * Before running the server, set up your Greenstone environment in the terminal by running the following in your top level Greenstone directory: | * Before running the server, set up your Greenstone environment in the terminal by running the following in your top level Greenstone directory: | ||
| - | <TABAREA tabs=" | + | Linux/Mac |
| - | < | + | |
| - | < | + | |
| - | source gs3-setup.bash | + | |
| - | </ | + | |
| - | Windows | + | |
| - | < | + | |
| - | gs3-setup.bat | + | |
| - | </ | + | |
| - | <TAB>Linux/Mac | + | |
| < | < | ||
| source setup.bash | source setup.bash | ||
| Line 119: | Line 120: | ||
| < | < | ||
| setup.bat | setup.bat | ||
| - | </code></ | + | </ |
| - | </ | + | |
| * By default, the server listens on localhost: | * By default, the server listens on localhost: | ||
| < | < | ||
en/user_advanced/z3950.1605137638.txt.gz · Last modified: 2020/11/11 23:33 by kjdon
