From e631732867f82bda41ffe5db3b4ff2935771acc0 Mon Sep 17 00:00:00 2001 From: K Felk Date: Wed, 4 Apr 2012 15:06:35 -0400 Subject: [PATCH] Changed Script to display a catalog search link when there is no print available --- 360link-reset.2.0.js | 18 ++++++++++++++---- 360link-reset.2.0.min.js | 2 +- README | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/360link-reset.2.0.js b/360link-reset.2.0.js index d29be3e..f34a57c 100644 --- a/360link-reset.2.0.js +++ b/360link-reset.2.0.js @@ -15,6 +15,7 @@ var DatabaseNamedata = ""; var DatabaseLinkdata = ""; var clicks = 0; var refinerlink = jQuery("#RefinerLink0 a").attr("href"); +var hasPrint = false; // The following are special links created by Serials Solutions for us. These can guide you in adding your own var illiadLink = jQuery("table.CandyWrapper:last a.AnchorButton:contains('Document Delivery')").attr("href"); @@ -54,10 +55,13 @@ if (format === "Journal" || format === "JournalFormat") { var citationDiv = '' + authorName + '  (' + journalDate + ')' + articleName + '.  ' + journalName + '. ' + journalVol + journalIssue + journalPages; // Replace the final table with semantic HTML, along with the dynamic links - // Remove the line above and uncomment the line below to add items to the bottom of your link resolver +var journalTitleEncode = encodeURI(journalName); + var nextstepsLink = '
  • Not Available Online? Order a copy from Document Delivery
  • Found a problem? Let our crack team of link fixers know!
  • '; + + } // Books @@ -187,7 +191,7 @@ TopDatabaseName = jQuery.trim(DatabaseNames[0]); if(TopDatabaseName === "Print at GVSU Libraries") { var topResultdiv = ''; - +var hasPrint = true; } else { var topResultdiv = ''; @@ -236,10 +240,11 @@ if(articleLinks[i] !== "NA") { // Article link - article has to be online if(jQuery.trim(DatabaseNames[i]) === "Print at GVSU Libraries") { // Item is in print - + var hasPrint = true; if(printAdditionalResults === "") { // First online article listed, add the header printAdditionalResults = printAdditionalResults + "

    Print