User Tools

Site Tools


en:user_advanced:z3950

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user_advanced:z3950 [2020/11/11 23:35] – [Using the Z39.50 client] kjdonen:user_advanced:z3950 [2020/11/16 20:23] – [Download through Z39.50] kjdon
Line 11: Line 11:
 See the [[en:user:download|download]] page for general information on downloading records through Greenstone.  See the [[en:user:download|download]] page for general information on downloading records through Greenstone. 
  
-Greenstone can download records from a specified Z39.50 server from the GLI (from the Download panel) or the command line (using the ''downloadfrom.pl'' script). Either way, you are presented with five options: +Greenstone (2 and 3) can download records from a specified Z39.50 server from the GLI (from the Download panel) or the command line (using the ''downloadfrom.pl'' script). Either way, you are presented with five options: 
  
 ^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 ''-cache_dir <full-path-to-folder>'' option is set). 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 ''-cache_dir <full-path-to-folder>'' option is set).
 +
 +To see the script options, run
 +<code>
 +downloadfrom.pl -h   (shows the general downloading options)
 +downloadfrom.pl -download_mode Z3950 -h  (shows the specific options for Z3950 mode)
 +</code>
 +
 +A sample command might be
 +<code>
 +downloadfrom.pl -download_mode Z3950 -host lx2.loc.gov -port 210 -database LCDB_MARC8 -find "snails" -max_records 10
 +</code>
 +
 +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:plugin:MARCPlugin|MARCPlugin]], which must be included in the collection plugin list.  As the files downloaded via Z39.50 are in MARC format, they can be processed by [[en:plugin:MARCPlugin|MARCPlugin]], which must be included in the collection plugin list. 
Line 97: Line 110:
   * The ''gsdlsite.cfg'' file needs to be copied from the cgi-bin directory to the directory you are running z3950server from. Check that the 'gsdlhome' entry is valid. The other entries don't matter.   * The ''gsdlsite.cfg'' file needs to be copied from the cgi-bin directory to the directory you are running z3950server from. Check that the 'gsdlhome' entry is valid. The other entries don't matter.
   * 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="Greenstone3,Greenstone2"> +Linux/Mac
-<TAB>Linux/Mac +
-<code> +
-source gs3-setup.bash +
-</code> +
-Windows +
-<code> +
-gs3-setup.bat +
-</code></TAB> +
-<TAB>Linux/Mac+
 <code> <code>
 source setup.bash source setup.bash
Line 113: Line 117:
 <code> <code>
 setup.bat setup.bat
-</code></TAB+</code> 
-</TABAREA>+
   * By default, the server listens on localhost:9999. To change the port or address, run   * By default, the server listens on localhost:9999. To change the port or address, run
 <code> z3950server tcp:server-name:port-num</code> <code> z3950server tcp:server-name:port-num</code>
en/user_advanced/z3950.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1