Post doesn't exist

Making it work with other Libraries

in
Subscribe to Making it work with other Libraries 4 posts, 3 voices



Bryan Larsen Scriptwright

I just updated my trivial modification of your script to work with the Ottawa Library: http://userscripts.org/scripts/show/24035

This was fairly trivial, I only had to modify the URLs, plus one of the regexes in getBookStatus. I suggest moving the regexes to the top, below libraryName to make it obvious to other users modifying this script for their libraries.

Even nicer would be to combine these scripts...

 
Bryan Larsen Scriptwright

I found another book status: "damaged"

 
Fat Knowledge Script's Author

Hi Bryan,

That's cool that you have got it to work for Ottawa.

I have taken your suggestion and updated the code to move the regex's of book status to the top of the file.

Combining the scripts scares me, as trying to modify the script when changes occur at the Seattle library is enough work. Trying to keep it up to date for multiple libraries is too much work for me. :)

There are probably lots of other statuses that are not being captured. Right now it just gives you a "Error checking at" message and then you can click on the link to see what that status is. That works well enough for me, but feel free to modify your script if you like to capture that status. Should be fairly straight forward to modify the getBookStatus function to capture the damaged book status.

 
Stv. Scriptwright
FirefoxMacintosh

I made minor updates to make this work with vancouver public library: http://userscripts.org/scripts/show/58190.

Only thing of note is that the OCLC labs URL appears to now be defunct. I've applied for a key to use against their live API, and will share once approved. This means the initial ISBN lookup *always* fails, but the title search works. Think I'll add in a 2nd link to the ISBN results as well.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel