|
|
@ -12,22 +12,28 @@ 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">'; |
|
|
|
item_str += '<div class="cufts-issns">ISSN: '; |
|
|
|
var issns=val.issns.toString(); |
|
|
|
jQuery.each(val.issns, function(key2, val2) { |
|
|
|
if(issns.length==8) |
|
|
|
var newIssn = ""; |
|
|
|
|
|
|
|
var issn = val2.toString(); |
|
|
|
|
|
|
|
if (issn.length == 8) |
|
|
|
{ |
|
|
|
{ |
|
|
|
newIssns = issns.substr(0,4)+'-'+issns.substr(4,4); |
|
|
|
newIssn = issn.substr(0, 4) + '-' + issn.substr(4, 4); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
newIssns = issns; |
|
|
|
newIssn = issn; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
item_str += newIssn + ','; |
|
|
|
item_str += newIssns; |
|
|
|
}); |
|
|
|
item_str += '</div>'; |
|
|
|
item_str += '</div>'; |
|
|
|
|
|
|
|
|
|
|
|
item_str += '<div class="cufts-fulltext-coverages">'; |
|
|
|
item_str += '<div class="cufts-fulltext-coverages">'; |
|
|
|
item_str += val.fulltext_coverages; |
|
|
|
|
|
|
|
|
|
|
|
jQuery.each(val.fulltext_coverages, function(key3, val3) { |
|
|
|
|
|
|
|
item_str += val3; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
item_str += '</div>'; |
|
|
|
item_str += '</div>'; |
|
|
|
|
|
|
|
|
|
|
|
item_str += '</div>'; |
|
|
|
item_str += '</div>'; |
|
|
|