Skip to content

Instantly share code, notes, and snippets.

@tclancy
Last active December 15, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tclancy/5247584 to your computer and use it in GitHub Desktop.
Save tclancy/5247584 to your computer and use it in GitHub Desktop.
Search Dover, NH Library by Title from Goodreads Detail Page
javascript:window.open("http://librarycatalog.dover.nh.gov/cgi-bin/koha/opac-search.pl?idx=&q="+encodeURIComponent(document.getElementById("bookTitle").innerText.replace(/\([^\)]+\)/, '').replace(/^\s\s*/, '').replace(/\s\s*$/, '')));
@tclancy
Copy link
Author

tclancy commented Oct 6, 2013

Author search:

javascript:window.open("http://librarycatalog.dover.nh.gov/cgi-bin/koha/opac-search.pl?idx=au%2Cwrdl&q="+encodeURIComponent(document.getElementsByClassName("authorName")[0].innerText.replace(/\([^\)]+\)/, '').replace(/^\s\s_/, '').replace(/\s\s_$/, ''))+"&op=and&idx=kw&q=&op=and&idx=kw&do=Search");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment