en:user_advanced:z3950
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:user_advanced:z3950 [2020/11/11 23:34] – [Compiling Greenstone with Z39.50 support] kjdon | en:user_advanced:z3950 [2020/11/16 20:23] – [Download through Z39.50] kjdon | ||
---|---|---|---|
Line 11: | Line 11: | ||
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 24: | ||
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 75: | Line 88: | ||
===== Using the Z39.50 client ===== | ===== Using the 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 103: | Line 110: | ||
* 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 117: | ||
< | < | ||
setup.bat | setup.bat | ||
- | </code></ | + | </ |
- | </ | + | |
* By default, the server listens on localhost: | * By default, the server listens on localhost: | ||
< | < |
en/user_advanced/z3950.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1