Library tech blog

Thoughts and ideas on technology

Using Sirsi API to get ISBN numbers

The goal here is to extract all the books that where cataloged yesterday and get there ISBN numbers. To then sort these and only take the uniq numbers. I thenĀ  plan to use these numbers and amazon webservices and get some interesting information then create virtual library cards. I just about have all the pieces in place. One of the things that I an still thinking about catagories and access. At the moment I am thinking that I will transfer the isbn file to another machine and then use mysql, perl and php to do the mashing that I want.
Here is the code I used to do this

#!//bin/perl

open(MYFILE, qq#/s/sirsi/Unicorn/Bin/selitem -tBOOK -f=20051010 -oC | /s/sirsi/Unicorn/Bin/selcatalog -iC -oe -e020|sort|uniq|#);

while (<MYFILE>) {
$mystring=substr($_,0,10);
if ( length($mystring) == 10){
print $mystring . “\n”;
}

}

October 13, 2006 - Posted by tscrobinson | Uncategorized | | 1 Comment

1 Comment »

  1. Hello,

    We too are trying to use SIRSI Api to extract isbn numbers to do some mashups….I was very intrigued by what you are doing and had a few questions.

    In the code that you list, where does it specifically limit the isbns retrieved to only those you cataloged yesterday? or does this code just pull all isbns out of your catalog and you sort later?

    if this code does sort only yesterday, could you show the modification if you wanted to just display all isbns in your catalog?

    Would you be willing to share your Sook code?

    Thanks!

    Shawn Romine
    Computer Tech
    Douglas County Library
    seromine@co.douglas.or.us
    541-440-4228

    Comment by Shawn Romine | March 24, 2007


Leave a comment