Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed display bug when item was only available in print

  • Loading branch information...
commit b708112bbf98e1448e079dba134b03c3f535b2a8 1 parent 6036a9d
@mreidsma mreidsma authored
Showing with 42 additions and 33 deletions.
  1. +41 −32 360link-reset.2.0.js
  2. +1 −1  360link-reset.2.0.min.js
View
73 360link-reset.2.0.js
@@ -13,12 +13,13 @@ var journalLinksdata = "";
var dateRangedata = "";
var DatabaseNamedata = "";
var DatabaseLinkdata = "";
+var clicks = 0;
var refinerlink = jQuery("#RefinerLink0 a").attr("href");
// 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");
-// var refworksLink = jQuery("table.CandyWrapper:last a.AnchorButton:last").attr("href");
-// var melLink = jQuery("table.CandyWrapper:last a.AnchorButton:contains('MeLCat')").attr("href"); // Currently not used, but we *could* use it
+var illiadLink = jQuery("table.CandyWrapper:last a.AnchorButton:contains('Document Delivery')").attr("href");
+var refworksLink = jQuery("table.CandyWrapper:last a.AnchorButton:last").attr("href");
+var melLink = jQuery("table.CandyWrapper:last a.AnchorButton:contains('MeLCat')").attr("href"); // Currently not used, but we *could* use it
// Build the citation
@@ -50,14 +51,12 @@ if (format === "Journal" || format === "JournalFormat") {
// Ok, let's get rid of that table and replace it with a semantic div for our citation
- var citationDiv = '<span id="CitationJournalAuthorValue">' + authorName + '</span>&nbsp; <span id="CitationJournalDateValue">(' + journalDate + ')</span>.&nbsp; <span id="CitationJournalArticleValue">' + articleName + '.</span>&nbsp; <span id="CitationJournalTitleValue">' + journalName + '.</span>&nbsp;' + journalissn + journalVol + journalIssue + journalPages;
+ var citationDiv = '<span id="CitationJournalAuthorValue">' + authorName + '</span>&nbsp; <span id="CitationJournalDateValue">(' + journalDate + ')</span>.&nbsp; <span id="CitationJournalArticleValue">' + articleName + '.</span>&nbsp; <span id="CitationJournalTitleValue">' + journalName + '.</span>&nbsp;' + journalVol + journalIssue + journalPages;
// Replace the final table with semantic HTML, along with the dynamic links
-
- var nextstepslink = "";
-
+
// Remove the line above and uncomment the line below to add items to the bottom of your link resolver
- // var nextstepsLink = '<li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Document Delivery</a></li>';
+var nextstepsLink = '<li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Document Delivery</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>';
}
@@ -79,11 +78,10 @@ if (format === "BookFormat") {
// Replace the final table with semantic HTML, along with the dynamic links
- var nextstepslink = "";
// Remove the line above and uncomment the line below to add items to the bottom of your link resolver
- // var bookTitleLink = encodeURI(bookTitle); // Encode the white space in the URL
- // var nextstepsLink = '<li><a href="http://library.catalog.gvsu.edu/search/t' + bookTitleLink + '">Search the GVSU Catalog for this book</a></li><li><a href="' + melLink + '">Order from another Michigan library</a></li><li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Interlibrary Loan</a></li>';
+var bookTitleLink = encodeURI(bookTitle); // Encode the white space in the URL
+var nextstepsLink = '<li><a href="http://library.catalog.gvsu.edu/search/t' + bookTitleLink + '">Search the GVSU Catalog for this book</a></li><li><a href="' + melLink + '">Order from another Michigan library</a></li><li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Interlibrary Loan</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>';
}
@@ -105,11 +103,10 @@ if (format === "UnknownFormat") {
// Replace the final table with semantic HTML, along with the dynamic links
- var nextstepslink = "";
// Remove the line above and uncomment the line below to add items to the bottom of your link resolver
- // var bookTitleLink = encodeURI(bookTitle); // Encode the white space in the URL
- // var nextstepsLink = '<li><a href="http://library.catalog.gvsu.edu/search/t' + bookTitleLink + '">Search the GVSU Catalog for this book</a></li><li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Interlibrary Loan</a></li>';
+var bookTitleLink = encodeURI(bookTitle); // Encode the white space in the URL
+var nextstepsLink = '<li><a href="http://library.catalog.gvsu.edu/search/t' + bookTitleLink + '">Search the GVSU Catalog for this book</a></li><li>Not Available Online? <a href="' + illiadLink + '">Order a copy from Interlibrary Loan</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>';
}
@@ -183,13 +180,21 @@ var additionalLinksnum = results - 1; // Number of links in the additional resul
if((articleLinks[0] === "NA") && (journalLinks[0] !== "NA")) { // There was no article link, but there is a journal link
-// TK Check to see if top result is a print journal
+TopDatabaseName = jQuery.trim(DatabaseNames[0]);
+
+// Check to see if top result is a print journal
-var topResultdiv = '<ul id="top-result"><li><a href="' + journalLinks[0] + '" class="article-button">Browse the Journal Online</a> in <a href="' + DatabaseLinks[0] + '" class="SS_DatabaseHyperLink">' + jQuery.trim(DatabaseNames[0]) + '</a></li></ul>';
+if(TopDatabaseName === "Print at GVSU Libraries") {
-} else { // There is an article link
+var topResultdiv = '<ul id="top-result"><li><a href="' + journalLinks[0] + '" class="article-button" target="_blank">Find a Copy</a> in <a href="' + DatabaseLinks[0] + '" class="SS_DatabaseHyperLink">' + jQuery.trim(DatabaseNames[0]) + '</a></li></ul>';
+
+} else {
+
+var topResultdiv = '<ul id="top-result"><li><a href="' + journalLinks[0] + '" class="article-button" target="_blank">Browse the Journal Online</a> in <a href="' + DatabaseLinks[0] + '" class="SS_DatabaseHyperLink">' + jQuery.trim(DatabaseNames[0]) + '</a></li></ul>';
+
+}} else { // There is an article link
-var topResultdiv = '<ul id="top-result"><li><a href="' + articleLinks[0] + '" class="article-button">Full Text Online</a> from <a href="' + DatabaseLinks[0] + '" class="SS_DatabaseHyperLink">' + jQuery.trim(DatabaseNames[0]) + '</a> <a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="' + journalLinks[0] + '" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[0] + '</p></div></li></ul>';
+var topResultdiv = '<ul id="top-result"><li><a href="' + articleLinks[0] + '" class="article-button" target="_blank">Full Text Online</a> from <a href="' + DatabaseLinks[0] + '" class="SS_DatabaseHyperLink">' + jQuery.trim(DatabaseNames[0]) + '</a> <a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="' + journalLinks[0] + '" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[0] + '</p></div></li></ul>';
}
@@ -222,7 +227,7 @@ if(articleLinks[i] !== "NA") { // Article link - article has to be online
}
- onlineAdditionalResults = onlineAdditionalResults + '<li><a href="' + articleLinks[i] + '">Full Text Online</a> from <a href="' + DatabaseLinks[i] + '" class="SS_DatabaseHyperLink">' + DatabaseNames[i] + '</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="' + journalLinks[i] + '" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[i] + '</p></div></li>';
+ onlineAdditionalResults = onlineAdditionalResults + '<li><a href="' + articleLinks[i] + '" target="_blank">Full Text Online</a> from <a href="' + DatabaseLinks[i] + '" class="SS_DatabaseHyperLink">' + DatabaseNames[i] + '</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="' + journalLinks[i] + '" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[i] + '</p></div></li>';
} else { // No article link
@@ -238,7 +243,7 @@ if(articleLinks[i] !== "NA") { // Article link - article has to be online
}
- printAdditionalResults = printAdditionalResults + '<li><a href="' + journalLinks[i] + '">Available in Print</a> at the <abbr title="Grand Valley State University">GVSU</abbr> University Libraries</li>';
+ printAdditionalResults = printAdditionalResults + '<li><a href="' + journalLinks[i] + '" target="_blank">Available in Print</a> at the <abbr title="Grand Valley State University">GVSU</abbr> University Libraries</li>';
} else { // Item is online
@@ -248,7 +253,7 @@ if(articleLinks[i] !== "NA") { // Article link - article has to be online
}
- onlineAdditionalResults = onlineAdditionalResults + '<li><a href="' + journalLinks[i] + '">Browse the Journal Online</a> in <a href="' + DatabaseLinks[i] + '" class="SS_DatabaseHyperLink">' + DatabaseNames[i] + '</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[i] + '</p></div></li>';
+ onlineAdditionalResults = onlineAdditionalResults + '<li><a href="' + journalLinks[i] + '" target="_blank">Browse the Journal Online</a> in <a href="' + DatabaseLinks[i] + '" class="SS_DatabaseHyperLink">' + DatabaseNames[i] + '</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p style="font-size: 1em;"><i>Dates covered:</i><br />' + dateRange[i] + '</p></div></li>';
}
}
@@ -353,18 +358,22 @@ jQuery("#360link-reset").html('<div id="page-content" style="margin: 0; padding-
}
-jQuery(".event-body").hide(); // Hide additional results
+// Let's show a tooltip highlighting Document Delivery when the user has tried a few sources.
+// First, let's add the code for the tooltip:
-jQuery(".event-head").click(function() { // Show additional results when div is clicked and change text
- jQuery(".event-body").slideToggle(400);
- var current_text = jQuery(".event-head").text();
- if(current_text === "Hide Additional Results") {
- jQuery(".event-head").text('Show More Results');
- } else {
- jQuery(".event-head").text('Hide Additional Results');
- }
-});
+jQuery("#next-step ul").append('<li class="doc-del-tooltip">Having trouble? You can order a copy from Document Delivery, and they\'ll get it for you. It\'s free!<br /><a href="' + illiadLink + '" class="lib-db-access-button" style="font-size: 1.2em !important;">Order a Copy</a></li>');
+jQuery(".doc-del-tooltip").hide();
+
+// Now let's count clicks
-jQuery(".holding-details").tooltip({effect: 'slide',offset:[0,0]});
+jQuery("#360link-reset ul li a").click(function() {
+
+ clicks = clicks + 1;
+
+ if(clicks > 1) {
+ jQuery(".doc-del-tooltip").show();
+ }
+
+});
});
View
2  360link-reset.2.0.min.js
@@ -1 +1 @@
-jQuery(document).ready(function(){jQuery("head link").remove();var a="";var b="";var c="";var d="";var e="";var f="";var g=jQuery("#RefinerLink0 a").attr("href");var h=jQuery("span.fn").text();h=jQuery.trim(h);if(format==="Journal"||format==="JournalFormat"){var i=jQuery("td#CitationJournalTitleValue").text();i=jQuery.trim(i);var j=jQuery("td#CitationJournalArticleValue").text();j=jQuery.trim(j);var k=jQuery("td#CitationJournalVolumeValue").text();k=jQuery.trim(k);if(k!==""){k=', <span id="CitationJournalVolumeValue"> '+k+"</span>"}var l=jQuery("td#CitationJournalIssueValue").text();l=jQuery.trim(l);if(l!==""){l='<span id="CitationJournalIssueValue"> ('+l+"),</span>"}var m=jQuery("td#CitationJournalDateValue").text();m=jQuery.trim(m);var n=jQuery("td#CitationJournalPageValue").text();n=jQuery.trim(n);if(n!==""){n='<span id="CitationJournalPageValue"> p. '+n+".</span>"}var o=jQuery("td#CitationJournalIssnValue").text();o=jQuery.trim(o);if(o!==""){o='<span id="CitationJournalIssnValue"> (ISSN: '+o+")</span>"}var p='<span id="CitationJournalAuthorValue">'+h+'</span>  <span id="CitationJournalDateValue">('+m+')</span>.  <span id="CitationJournalArticleValue">'+j+'.</span>  <span id="CitationJournalTitleValue">'+i+".</span> "+o+k+l+n;var q=""}if(format==="BookFormat"){var r=jQuery("td#CitationBookTitleValue").text();r=jQuery.trim(r);var s=jQuery("td#CitationBookDateValue").text();s=jQuery.trim(s);var u=jQuery("td#CitationBookISBNValue").text();u=jQuery.trim(u);if(u!==""){u=' <span id="CitationBookISBNValue">(ISBN: '+u+")</span> "}var p='<span id="CitationBookAuthorValue">'+h+'</span>  <span id="CitationBookDateValue">('+s+')</span>.  <span id="CitationBookTitleValue"><em>'+r+"</em></span>"+u;var q=""}if(format==="UnknownFormat"){var r=jQuery("td#CitationUnknownPublicationValue").text();r=jQuery.trim(r);var s=jQuery("td#CitationUnknownDateValue").text();s=jQuery.trim(s);var u=jQuery("td#CitationBookISBNValue").text();u=jQuery.trim(u);if(u!==""){u=' <span id="CitationBookISBNValue">(ISBN: '+u+")</span> "}var p='<span id="CitationBookAuthorValue">'+h+'</span>  <span id="CitationBookDateValue">('+s+')</span>.  <span id="CitationBookTitleValue"><em>'+r+'</em></span>  <span id="CitationBookISBNValue">  </span>';var q=""}jQuery("table#JournalLinkTable").find("tr").each(function(g){if(g!==0){if(jQuery(this).find("#ArticleCL a").length>0){var h=jQuery(this).find("#ArticleCL a").attr("href");b=b+h+"|||"}else{b=b+"NA|||"}if(jQuery(this).find("#JournalCL a").length>0){var h=jQuery(this).find("#JournalCL a").attr("href");c=c+h+"|||"}else{c=c+"NA|||"}var i=jQuery(this).find("#DateCL").text();d=d+i+"|||";var j=jQuery(this).find("#DatabaseCL").text();e=e+j+"|||";var k=jQuery(this).find("#DatabaseCL a").attr("href");f=f+k+"|||"}a=g});var v=b.split("|||");var w=c.split("|||");var x=d.split("|||");var y=e.split("|||");var z=f.split("|||");var A=a-1;if(v[0]==="NA"&&w[0]!=="NA"){var B='<ul id="top-result"><li><a href="'+w[0]+'" class="article-button">Browse the Journal Online</a> in <a href="'+z[0]+'" class="SS_DatabaseHyperLink">'+jQuery.trim(y[0])+"</a></li></ul>"}else{var B='<ul id="top-result"><li><a href="'+v[0]+'" class="article-button">Full Text Online</a> from <a href="'+z[0]+'" class="SS_DatabaseHyperLink">'+jQuery.trim(y[0])+'</a> <a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="'+w[0]+'" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />'+x[0]+"</p></div></li></ul>"}if(A>0){if(A===1){var C="Show 1 More Result"}else{var C="Show "+A+" More Results"}var D="";var E="";var F=1;while(F<a){if(v[F]!=="NA"){if(D===""){D=D+"<h4>Online</h4><ul>"}D=D+'<li><a href="'+v[F]+'">Full Text Online</a> from <a href="'+z[F]+'" class="SS_DatabaseHyperLink">'+y[F]+'</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="'+w[F]+'" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />'+x[F]+"</p></div></li>"}else{if(jQuery.trim(y[F])==="Print at GVSU Libraries"){if(E===""){E=E+"<h4>Print</h4><ul>"}E=E+'<li><a href="'+w[F]+'">Available in Print</a> at the <abbr title="Grand Valley State University">GVSU</abbr> University Libraries</li>'}else{if(D===""){D=D+"<h4>Online</h4><ul>"}D=D+'<li><a href="'+w[F]+'">Browse the Journal Online</a> in <a href="'+z[F]+'" class="SS_DatabaseHyperLink">'+y[F]+'</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p style="font-size: 1em;"><i>Dates covered:</i><br />'+x[F]+"</p></div></li>"}}F=F+1}if(D!==""){D=D+"</ul>"}if(E!==""){E=E+"</ul>"}var G='<div class="event-head">'+C+'</div><div class="event-body">'+D+E+"</div>";H=B+G}else{var H=B}if(a===""){var H='<div id="ContentNotAvailableTable"><p class="lib-big-text">We&#8217;re sorry, but this item is not available online.</p><p>Think this is an error? Let our eResources team know at <a href="mailto:erms@gvsu.edu">erms@gvsu.edu</a>.</p></div>'}var I=jQuery(".SS_HoldingText a").attr("href");if(typeof I!=="undefined"){var J="";var K="";var L="";var M="";jQuery(".SS_HoldingText").each(function(a){var b=jQuery(this).find("a").attr("href");J=J+b+"|||";var c=jQuery(this).find(".SS_JournalTitle").text();K=K+c+"|||";var d=jQuery(this).find(".SS_IssnText").text();L=L+d+"|||";M=a});M=M+1;var N=J.split("|||");var O=K.split("|||");var P=L.split("|||");B='<h4>This item is available in the following publications:</h4><ul id="top-result">';t=0;while(t<M){B=B+'<li><a href="'+N[t]+'">'+O[t]+" "+P[t]+"</a></li>";t=t+1}var H=B+"</ul>"}var Q=document.location.search;var R=Q.split("&");if(R[0]!=="?SS_Page=refiner"){jQuery("#360link-reset").html('<div id="page-content" style="margin: 0; padding-left: 6em; width:85%;"><h2 style="text-align:left;">You are looking for:</h2><div id="citation">'+p+' <a href="'+g+'"><img src="http://gvsu.edu/icon/pencil.png" alt="Edit this Citation" /></a><a id="refworks" href="'+refworksLink+'">Export to Refworks</a></div>'+H+'<div id="next-step"><ul>'+nextstepsLink+'</ul></div></div><div class="clear"></div><!-- Begin Custom GVSU Footer code --></div>')}jQuery(".event-body").hide();jQuery(".event-head").click(function(){jQuery(".event-body").slideToggle(400);var a=jQuery(".event-head").text();if(a==="Hide Additional Results"){jQuery(".event-head").text("Show More Results")}else{jQuery(".event-head").text("Hide Additional Results")}});jQuery(".holding-details").tooltip({effect:"slide",offset:[0,0]})})
+jQuery(document).ready(function(){jQuery("head link").remove();var a="";var b="";var c="";var d="";var e="";var f="";var g=0;var h=jQuery("#RefinerLink0 a").attr("href");var i=jQuery("table.CandyWrapper:last a.AnchorButton:contains('Document Delivery')").attr("href");var j=jQuery("table.CandyWrapper:last a.AnchorButton:last").attr("href");var k=jQuery("table.CandyWrapper:last a.AnchorButton:contains('MeLCat')").attr("href");var l=jQuery("span.fn").text();l=jQuery.trim(l);if(format==="Journal"||format==="JournalFormat"){var m=jQuery("td#CitationJournalTitleValue").text();m=jQuery.trim(m);var n=jQuery("td#CitationJournalArticleValue").text();n=jQuery.trim(n);var o=jQuery("td#CitationJournalVolumeValue").text();o=jQuery.trim(o);if(o!==""){o=', <span id="CitationJournalVolumeValue"> '+o+"</span>"}var p=jQuery("td#CitationJournalIssueValue").text();p=jQuery.trim(p);if(p!==""){p='<span id="CitationJournalIssueValue"> ('+p+"),</span>"}var q=jQuery("td#CitationJournalDateValue").text();q=jQuery.trim(q);var r=jQuery("td#CitationJournalPageValue").text();r=jQuery.trim(r);if(r!==""){r='<span id="CitationJournalPageValue"> p. '+r+".</span>"}var s=jQuery("td#CitationJournalIssnValue").text();s=jQuery.trim(s);if(s!==""){s='<span id="CitationJournalIssnValue"> (ISSN: '+s+")</span>"}var u='<span id="CitationJournalAuthorValue">'+l+'</span>  <span id="CitationJournalDateValue">('+q+')</span>.  <span id="CitationJournalArticleValue">'+n+'.</span>  <span id="CitationJournalTitleValue">'+m+".</span> "+o+p+r;var v='<li>Not Available Online? <a href="'+i+'">Order a copy from Document Delivery</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>'}if(format==="BookFormat"){var w=jQuery("td#CitationBookTitleValue").text();w=jQuery.trim(w);var x=jQuery("td#CitationBookDateValue").text();x=jQuery.trim(x);var y=jQuery("td#CitationBookISBNValue").text();y=jQuery.trim(y);if(y!==""){y=' <span id="CitationBookISBNValue">(ISBN: '+y+")</span> "}var u='<span id="CitationBookAuthorValue">'+l+'</span>  <span id="CitationBookDateValue">('+x+')</span>.  <span id="CitationBookTitleValue"><em>'+w+"</em></span>"+y;var z=encodeURI(w);var v='<li><a href="http://library.catalog.gvsu.edu/search/t'+z+'">Search the GVSU Catalog for this book</a></li><li><a href="'+k+'">Order from another Michigan library</a></li><li>Not Available Online? <a href="'+i+'">Order a copy from Interlibrary Loan</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>'}if(format==="UnknownFormat"){var w=jQuery("td#CitationUnknownPublicationValue").text();w=jQuery.trim(w);var x=jQuery("td#CitationUnknownDateValue").text();x=jQuery.trim(x);var y=jQuery("td#CitationBookISBNValue").text();y=jQuery.trim(y);if(y!==""){y=' <span id="CitationBookISBNValue">(ISBN: '+y+")</span> "}var u='<span id="CitationBookAuthorValue">'+l+'</span>  <span id="CitationBookDateValue">('+x+')</span>.  <span id="CitationBookTitleValue"><em>'+w+'</em></span>  <span id="CitationBookISBNValue">  </span>';var z=encodeURI(w);var v='<li><a href="http://library.catalog.gvsu.edu/search/t'+z+'">Search the GVSU Catalog for this book</a></li><li>Not Available Online? <a href="'+i+'">Order a copy from Interlibrary Loan</a></li><li>Found a problem? <a href="mailto:erms@gvsu.edu">Let our crack team of link fixers know</a>!</li>'}jQuery("table#JournalLinkTable").find("tr").each(function(g){if(g!==0){if(jQuery(this).find("#ArticleCL a").length>0){var h=jQuery(this).find("#ArticleCL a").attr("href");b=b+h+"|||"}else{b=b+"NA|||"}if(jQuery(this).find("#JournalCL a").length>0){var h=jQuery(this).find("#JournalCL a").attr("href");c=c+h+"|||"}else{c=c+"NA|||"}var i=jQuery(this).find("#DateCL").text();d=d+i+"|||";var j=jQuery(this).find("#DatabaseCL").text();e=e+j+"|||";var k=jQuery(this).find("#DatabaseCL a").attr("href");f=f+k+"|||"}a=g});var A=b.split("|||");var B=c.split("|||");var C=d.split("|||");var D=e.split("|||");var E=f.split("|||");var F=a-1;if(A[0]==="NA"&&B[0]!=="NA"){TopDatabaseName=jQuery.trim(D[0]);if(TopDatabaseName==="Print at GVSU Libraries"){var G='<ul id="top-result"><li><a href="'+B[0]+'" class="article-button" target="_blank">Find a Copy</a> in <a href="'+E[0]+'" class="SS_DatabaseHyperLink">'+jQuery.trim(D[0])+"</a></li></ul>"}else{var G='<ul id="top-result"><li><a href="'+B[0]+'" class="article-button" target="_blank">Browse the Journal Online</a> in <a href="'+E[0]+'" class="SS_DatabaseHyperLink">'+jQuery.trim(D[0])+"</a></li></ul>"}}else{var G='<ul id="top-result"><li><a href="'+A[0]+'" class="article-button" target="_blank">Full Text Online</a> from <a href="'+E[0]+'" class="SS_DatabaseHyperLink">'+jQuery.trim(D[0])+'</a> <a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="'+B[0]+'" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />'+C[0]+"</p></div></li></ul>"}if(F>0){if(F===1){var H="Show 1 More Result"}else{var H="Show "+F+" More Results"}var I="";var J="";var K=1;while(K<a){if(A[K]!=="NA"){if(I===""){I=I+"<h4>Online</h4><ul>"}I=I+'<li><a href="'+A[K]+'" target="_blank">Full Text Online</a> from <a href="'+E[K]+'" class="SS_DatabaseHyperLink">'+D[K]+'</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p><a href="'+B[K]+'" style="text-decoration: none;">Browse Journal</a></p><p style="font-size: 1em;"><i>Dates covered:</i><br />'+C[K]+"</p></div></li>"}else{if(jQuery.trim(D[K])==="Print at GVSU Libraries"){if(J===""){J=J+"<h4>Print</h4><ul>"}J=J+'<li><a href="'+B[K]+'" target="_blank">Available in Print</a> at the <abbr title="Grand Valley State University">GVSU</abbr> University Libraries</li>'}else{if(I===""){I=I+"<h4>Online</h4><ul>"}I=I+'<li><a href="'+B[K]+'" target="_blank">Browse the Journal Online</a> in <a href="'+E[K]+'" class="SS_DatabaseHyperLink">'+D[K]+'</a><a class="holding-details"><img src="http://gvsu.edu/icon/help.png" alt="" /></a><div class="tooltip"><p style="font-size: 1em;"><i>Dates covered:</i><br />'+C[K]+"</p></div></li>"}}K=K+1}if(I!==""){I=I+"</ul>"}if(J!==""){J=J+"</ul>"}var L='<div class="event-head">'+H+'</div><div class="event-body">'+I+J+"</div>";M=G+L}else{var M=G}if(a===""){var M='<div id="ContentNotAvailableTable"><p class="lib-big-text">We&#8217;re sorry, but this item is not available online.</p><p>Think this is an error? Let our eResources team know at <a href="mailto:erms@gvsu.edu">erms@gvsu.edu</a>.</p></div>'}var N=jQuery(".SS_HoldingText a").attr("href");if(typeof N!=="undefined"){var O="";var P="";var Q="";var R="";jQuery(".SS_HoldingText").each(function(a){var b=jQuery(this).find("a").attr("href");O=O+b+"|||";var c=jQuery(this).find(".SS_JournalTitle").text();P=P+c+"|||";var d=jQuery(this).find(".SS_IssnText").text();Q=Q+d+"|||";R=a});R=R+1;var S=O.split("|||");var T=P.split("|||");var U=Q.split("|||");G='<h4>This item is available in the following publications:</h4><ul id="top-result">';t=0;while(t<R){G=G+'<li><a href="'+S[t]+'">'+T[t]+" "+U[t]+"</a></li>";t=t+1}var M=G+"</ul>"}var V=document.location.search;var W=V.split("&");if(W[0]!=="?SS_Page=refiner"){jQuery("#360link-reset").html('<div id="page-content" style="margin: 0; padding-left: 6em; width:85%;"><h2 style="text-align:left;">You are looking for:</h2><div id="citation">'+u+' <a href="'+h+'"><img src="http://gvsu.edu/icon/pencil.png" alt="Edit this Citation" /></a><a id="refworks" href="'+j+'">Export to Refworks</a></div>'+M+'<div id="next-step"><ul>'+v+'</ul></div></div><div class="clear"></div><!-- Begin Custom GVSU Footer code --></div>')}jQuery("#next-step ul").append('<li class="doc-del-tooltip">Having trouble? You can order a copy from Document Delivery, and they\'ll get it for you. It\'s free!<br /><a href="'+i+'" class="lib-db-access-button" style="font-size: 1.2em !important;">Order a Copy</a></li>');jQuery(".doc-del-tooltip").hide();jQuery("#360link-reset ul li a").click(function(){g=g+1;if(g>1){jQuery(".doc-del-tooltip").show()}})})
Please sign in to comment.
Something went wrong with that request. Please try again.