Skip to content

Instantly share code, notes, and snippets.

@xmorave2
Created July 17, 2017 10:43
Show Gist options
  • Select an option

  • Save xmorave2/1c50c374a2775d50ab47ae2d21566891 to your computer and use it in GitHub Desktop.

Select an option

Save xmorave2/1c50c374a2775d50ab47ae2d21566891 to your computer and use it in GitHub Desktop.
Config pro shell oai harvester
<?xml version="1.0" encoding="UTF-8" ?>
<config xmlns="http://github.com/wimmuskee/shell-harvester/">
<!-- default record save location -->
<recordpath>/root/shell-oaiharvester/harvested</recordpath>
<!-- temporary files are stored here -->
<temppath>/tmp/shell-oaiharvester</temppath>
<!-- location of log file -->
<logfile>/root/shell-oaiharvester/oaiharvester-log.csv</logfile>
<!-- type of logging:
"combined" putting all instance logs in one file (default), or
"instance", and have a log file for each started instance -->
<logtype>combined</logtype>
<!-- options for the curl command -->
<curlopts>--retry 5 --silent --limit-rate 200k --header "Accept-Encoding: gzip,deflate"</curlopts>
<!-- command to execute before delete -->
<!-- <deletecmd>updateMyDatabase.sh ${path}</deletecmd> -->
<!-- command to execute after update -->
<!-- <updatecmd>echo ${identifier} >> /tmp/harvested.txt</updatecmd> -->
<repository id="authorityNKP">
<baseurl>http://aleph.nkp.cz/OAI</baseurl>
<metadataprefix>marc21</metadataprefix>
<set>AUT</set>
<!-- By default the harvesting starts from Identify earliestDatestamp,
use this only for debugging purposes. -->
<from>2017-07-16</from>
<until>2017-07-18</until>
<!-- <resumptiontoken>lom-10</resumptiontoken> -->
<conditional>only-context-po.xsl</conditional>
<recordpath>/root/shell-oaiharvester/harvested/authorityNKP</recordpath>
<!-- command to execute before delete -->
<!-- <deletecmd>updateMyDatabase.sh ${path}</deletecmd> -->
<!-- command to execute after update -->
<!-- <updatecmd>echo ${identifier} >> /tmp/harvested.txt</updatecmd> -->
</repository>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment