#!/bin/sh -x
# cheesy quote stripping
ISBN=$(eval echo $1)
echo "$ISBN"
RAW="rawmarc/${ISBN}.marc"
test -s ${RAW} || yaz-get-any ${ISBN} z3950.loc.gov:7090 VOYAGER 
test -s rawmarc/${ISBN}.whence || test -s ${RAW} && (echo z3950.loc.gov:7090 VOYAGER > rawmarc/${ISBN}.whence)
test -s ${RAW} || yaz-get-any ${ISBN} library.mit.edu advance
test -s rawmarc/${ISBN}.whence || test -s ${RAW} && (echo library.mit.edu advance > rawmarc/${ISBN}.whence)
test -s ${RAW} || echo "UNKNOWN: ${ISBN}"
test -s ${RAW} || touch unknown/${ISBN}
test -s ${RAW} && echo "Known: ${ISBN}"
