Pazpar2 1.4.4-2 for squeeze
[pazpar2-moved-to-github.git] / perf / bash / client_termlist.sh
1 #!/bin/bash
2 OF=$1
3 if test -z "$OF"; then
4         OF=1
5 fi
6
7 PORT=$2
8 if test -z "$PORT"; then
9         PORT=9004
10 fi
11 SERVICE=$3
12 if test -z "$SERVICE"; then
13         SERVICE=perf
14 fi
15 SETTINGS=$4
16 WHAT=water
17 H="http://localhost:${PORT}/search.pz2"
18 wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF"
19 S=`xsltproc get_session.xsl $OF.init.xml`
20 if [ "$SETTINGS" != "" ] ; then
21     wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS"
22 fi
23 wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S"
24 sleep 1
25 #wget -q -O $OF.show.xml "$H?command=termlist&session=$S&sort=relevance&start=0&num=100&block=1"
26 wget -q -O $OF.termlist.xml "$H?command=termlist&name=xtargets%2Csubject%2Cauthor&session=$S"