ebyblog libraries and stuff

Posted
6 April 2006 @ 3pm

Tagged
General, OPAC, Tech Ideas, XML Server

Passing Bib Numbers from the III OPAC

For those III institutions not as adventurous as AADL, you may want to be able to pass the bib number for a record to your own scripts. In this way you can use the stock OPAC but still add functionality externally. I’ll give an example below and some other ideas at the end.

So let’s start with an example. Our library doesn’t use the stock recall functionality. They prefer to do it themselves and so have a webform that patrons can fill out. But lets say we want to include a button or link in the OPAC that only shows up on specific criteria. This would likely be difficult in the stock set-up but if you use your own script coupled with the xml server you can pretty much set any criteria you want. You could have all items checked out and at least one requestable, only for books already checked out for a certain period of time, not available online, etc.

There are a couple ways to accomplish this, though in both you are passing the bib number to an external script. One is to wrape an image in a link with the image having the src of the script. The script then returns a button image if it matches criteria or a 1×1 blank pixel image if it doesn’t, to prevent people from seeing or clicking on it. The other alternative is to have script tags where the src is your external script that document.write outs a link if it passes criteria or nothing if not, via javascript.

So how do you pass the bib number to an external script? The token for your template is <!–{fieldspec:Fb081}–> which I have to thank John for. There are a couple caveats with the token:

  • The token needs to be on it’s own line
  • The token only returns the number and not the letter ‘b’. This means your script needs to add the ‘b’ before searching the xml server

So an example link would be:

&lt;a href="http://myserver/?bib= &lt;!--{fieldspec:Fb081}--&gt; "&gt;Link to my script&lt;/a&gt;

So what are some possible applications you could build by passing the bib number and using the xml server? Well here’s a few ideas:

  • Create maps of where things are located in the library
  • Create a wish-list application for patrons
  • A more robust export/citation manager
  • Create a stand-alone version of AADL’s Virtual Card Catalog
  • Almost anything

2 Comments

Posted by
libdev » Hacking About In III’s Web OPAC
6 April 2006 @ 9pm

[...] Ryan Eby credits John Blyberg for figuring it out, but the details are here: Passing Bib Numbers from the III OPAC. [...]


Posted by
iii and refworks at ebyblog
13 May 2006 @ 11pm

[...] I posted here previously about passing the bib number out of the iii opac and mentioned citation formatters as a possible use. Rob Casson has taken this idea and used it to pass information on to refworks. He’s passing the marc record instead of using the xml server but the concept is the same and it makes sense since he’s not doing it all in house. Take a look. [...]


Leave a Comment

HigherEdBlogCon – Day 3 Amazon Podcast