-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathharvest_from_lat.sh
executable file
·20 lines (20 loc) · 1.16 KB
/
harvest_from_lat.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
export VUFIND_HOME=/usr/local/vufind/
export VUFIND_LOCAL_DIR=/usr/local/vufind/local
find /usr/local/vufind/local/harvest/ELAR/ -name '*.xml' -exec rm {} \;
find /usr/local/vufind/local/harvest/ELAR/processed/ -name '*.xml' -exec rm {} \;
find /usr/local/vufind/local/harvest/Authors/processed/ -name '*.xml' -exec rm {} \;
find /usr/local/vufind/local/harvest/Authors/ -name '*.xml' -exec rm {} \;
cd /usr/local/vufind/harvest
#find $VUFIND_HOME/local/harvest/ELAR/processed -name '*.xml' | xargs cp -t $VUFIND_HOME/local/harvest/Authors/
/usr/bin/php harvest_oai.php ELAR
cd /usr/local/vufind/local/harvest/ELAR/
find /usr/local/vufind/local/harvest/ELAR/ -name '*.xml' -exec sed -i 's/ //g' {} \;
/usr/local/vufind/harvest/batch-import-xsl.sh ./ELAR/ ../import/elar-scb.properties
#find $VUFIND_HOME/local/harvest/ELAR/processed -name '*.xml' | xargs mv -t $VUFIND_HOME/local/harvest/Authors/
#/usr/local/vufind/harvest/batch-import-xsl-auth.sh ./Authors/ ../import/authors.properties
cd /usr/local/vufind/util
php deletes.php intermediate.txt flat
php optimize.php