Browse Source

limit journal display to just titles

2.x-ebsco
Paul Pound 11 years ago
parent
commit
8dc291d5a2
  1. 40
      targets/cufts/js/cufts_results.js

40
targets/cufts/js/cufts_results.js

@ -19,29 +19,29 @@ Drupal.behaviors.roblib_search_cufts = {
item_str += '<a href = "' + val.url + '">' + val.title + '</a>'; item_str += '<a href = "' + val.url + '">' + val.title + '</a>';
item_str += '</div>'; item_str += '</div>';
item_str += '<div class="cufts-issns">ISSN: '; //item_str += '<div class="cufts-issns">ISSN: ';
jQuery.each(val.issns, function(key2, val2) { //jQuery.each(val.issns, function(key2, val2) {
var newIssn = ""; // var newIssn = "";
var issn = val2.toString(); // var issn = val2.toString();
if (issn.length == 8) // if (issn.length == 8)
{ // {
newIssn = issn.substr(0, 4) + '-' + issn.substr(4, 4); // newIssn = issn.substr(0, 4) + '-' + issn.substr(4, 4);
} // }
else // else
{ // {
newIssn = issn; // newIssn = issn;
} // }
item_str += newIssn + ','; // item_str += newIssn + ',';
}); //});
item_str += '</div>'; //item_str += '</div>';
item_str += '<div class="cufts-fulltext-coverages">'; //item_str += '<div class="cufts-fulltext-coverages">';
jQuery.each(val.fulltext_coverages, function(key3, val3) { //jQuery.each(val.fulltext_coverages, function(key3, val3) {
item_str += val3; // item_str += val3 + " ";
}); //});
item_str += '</div>'; //item_str += '</div>';
item_str += '</div>'; item_str += '</div>';
items.push(item_str); items.push(item_str);

Loading…
Cancel
Save