Skip to content

A proof of concept for adding a button in the OPAC to ask the library to buy more copies of a book.

Notifications You must be signed in to change notification settings

mreidsma/OPAC-Vote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trinity College OPAC Voting Bookmarklet

This is a proof of concept hack for Trinity College Library (Cambridge University). The idea is to dynamically add a vote button under the holdings table that would allow folks to "vote" fo the library to purchase more copies of the book. The idea is to reach the kind of audience that doesn't bother putting a hold on a book that is out.

The idea was Kristin Lamb's, of Trinity College Library. I thought this would be an easy way to test the concept out before throwing a lot of College development time at it, so I wrote this on my lunch break on Wednesday, April 8th, 2015. It's not pefect, and may have been affected by a bit of soup that spilled on my keyboard.

Installation

For testing purposes, I'm hosting all of the scripts. All you need to do is create a bookmark with the following URL, save it to your bookmarks bar:

javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://gvsulib.com/temp/OPAC-Vote/opacvote.js';})();

To use it, just click on it when you're on a record page in the Trinity Catalogue:

Bookmarklet in action

The code needs some cleanup, and Trinity would probably want a more sophisticated way to store the record numbers of the items students vote for (or even add some more info, like author, title, date, etc.). As it is, the votes are recorded to a CSV file stored on the server with the php script that mimics the transparent gif called when the vote link is clicked (to get around the same origin policy of hosted Millennium servers - the php echos back a proper gif response, so the browser will be happy, too).

You can see the CSV of votes here: http://gvsulib.com/temp/OPAC-Vote/opacvote.csv

License

Do whatever you want with this! (For good, not evil.)

Questions?

You can find me at reidsmam@gvsu.edu or on Twitter at @mreidsma. I write on the web at matthewreidsma.com.

About

A proof of concept for adding a button in the OPAC to ask the library to buy more copies of a book.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages