Skip to content

Instantly share code, notes, and snippets.

View kalanchoej's full-sized avatar

Justin Kalanchoe kalanchoej

  • The Washington Post
  • Leesburg, VA
View GitHub Profile
@kalanchoej
kalanchoej / journal-asrs.js
Last active July 5, 2016 20:21 — forked from mreidsma/journal-asrs.js
Give folks a prompt before requesting journals from the ASRS
function asrsModal() {
// Create modal dialog for requesting journals
if($("#bib_items td:contains('Periodical')").size() > 0 && $("#bib_items td:contains('RooBot')").size() > 0) {
// This is a periodical.
var journalTitle = encodeURIComponent($("td.bibInfoLabel:contains('Title')").first().next("td").text());
journalTitle = journalTitle.replace(/\s/g, '+');
console.log(journalTitle);
var journalIssn = $("td.bibInfoLabel:contains('ISSN')").first().next("td").text();