<p>And I am transported back 1992 when I would use my WAN account to gopher CARL. Mkay poor choice of words ..do a cli search of the uny of colorado </p>
<p><blockquote type="cite">On Jul 6, 2010 3:33 PM, "John L. Cunningham" <<a href="mailto:djohngo@gmail.com">djohngo@gmail.com</a>> wrote:<br><br>The redesigned Howard County Public Library site is too pointy-clicky<br>
for my taste. Therefore, I have written a rudementary bash script that<br>
allows me to search the catalog from the command line.<br>
<br>
<br>
--- BEGIN hcllookup.sh ---<br>
#!/bin/bash<br>
<br>
OPTION="$1"<br>
shift<br>
SEARCH_TERM="$*"<br>
<br>
case "$OPTION" in<br>
-a)<br>
firefox --new-tab "<a href="http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=AU&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0" target="_blank">http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=AU&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0</a>"<br>
;;<br>
-i)<br>
firefox --new-tab "<a href="http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=ISBN&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0" target="_blank">http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=ISBN&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0</a>"<br>
;;<br>
-t)<br>
firefox --new-tab "<a href="http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=TI&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0" target="_blank">http://polaris.hclibrary.org/polaris/search/searchresults.aspx?ctx=1.1033.0.0.6&type=Advanced&term=$SEARCH_TERM&term2=&term3=&term4=&by=TI&by2=KW&by3=KW&by4=KW&bool1=And&bool2=And&bool3=And&limit=TOM=*&sort=RELEVANCE&page=0</a>"<br>
;;<br>
*)<br>
printf "Usage: hcllookup [OPTION] [SEARCH TERM(S)...]\n\t-a, Author\n\t-i, ISBN\n\t-t, Title\n"<br>
;;<br>
esac<br>
--- END hcllookup.sh ---<br>
<br>
<br>
John<br>
<br>
_______________________________________________<br>
CALUG mailing list<br>
<a href="mailto:CALUG@unknownlamer.org">CALUG@unknownlamer.org</a><br>
<a href="http://lists.unknownlamer.org/listinfo/calug" target="_blank">http://lists.unknownlamer.org/listinfo/calug</a><br>
</blockquote></p>