en:user_advanced:oai
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:user_advanced:oai [2018/07/30 23:01] – [Serving OAI Data using Greenstone] kjdon | en:user_advanced:oai [2018/07/30 23:11] – [Downloading source documents] kjdon | ||
---|---|---|---|
Line 46: | Line 46: | ||
then Greenstone downloads the page and scans though it looking for '' | then Greenstone downloads the page and scans though it looking for '' | ||
+ | ==== Downloading on the command line ==== | ||
+ | |||
+ | You can also download OAI records on the command line, using the perl script that GLI uses in the background: **downloadfrom.pl**. There is lots of information about command line downloading on [[en: | ||
+ | |||
+ | * Set up the Greenstone environment in the terminal by running one of the following: | ||
+ | < | ||
+ | source gs3-setup.sh (linux/ | ||
+ | gs3-setup (Windows, gs3) | ||
+ | source setup.bash (Linux/ | ||
+ | setup (Windows, gs2) | ||
+ | </ | ||
+ | |||
+ | * To see the options available, run: | ||
+ | |||
+ | < | ||
+ | perl -S downloadinfo.pl OAIDownload | ||
+ | </ | ||
+ | |||
+ | The options are the same as you can see in the GLI OAI download panel. They are: | ||
+ | |||
+ | * **-url < | ||
+ | * **-metadata_prefix < | ||
+ | * **-set < | ||
+ | * **-get_doc**: | ||
+ | * **-get_doc_exts < | ||
+ | * **-max_records < | ||
+ | |||
+ | An example usage would be: | ||
+ | < | ||
+ | perl -S downloadfrom.pl -mode OAI -url http:// | ||
+ | </ | ||
+ | |||
+ | This will try to download 5 records from the set //demo// at the nzdl.org' | ||
+ | |||
+ | The records (and optionally documents) will be downloaded into the folder the script is run from. To change this, use the **-cache_dir full-path-to-folder** option. | ||
===== Serving OAI Data using Greenstone===== | ===== Serving OAI Data using Greenstone===== | ||
en/user_advanced/oai.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1