Browse Source

moved genre to the end for islandscolar

2.x-ebsco
Paul Pound 10 years ago
parent
commit
7a55208733
  1. 3
      targets/eds/js/eds_results.js
  2. 2
      targets/evergreen/js/evergreen_results.js
  3. 6
      targets/islandscholar/js/islandscholar_results.js

3
targets/eds/js/eds_results.js

@ -86,6 +86,9 @@ function edsPopulatePopupDivs(content, val, counter){
} else if (content[counter].length < 3 && (value.Group == 'TOC' || value.Group == 'Src')) { } else if (content[counter].length < 3 && (value.Group == 'TOC' || value.Group == 'Src')) {
content[counter] += '<div class="eds-popup-content"><span class="eds-popup-label">' + value.Label + ': </span>' ; content[counter] += '<div class="eds-popup-content"><span class="eds-popup-label">' + value.Label + ': </span>' ;
content[counter] += '<span class="eds-popup-value"> ' + value.Data +'</span></div>'; content[counter] += '<span class="eds-popup-value"> ' + value.Data +'</span></div>';
} else if (content[counter].length < 1 && value.Group == 'Ti') {
content[counter] += '<div class="eds-popup-content"><span class="eds-popup-label">' + value.Label + ': </span>' ;
content[counter] += '<span class="eds-popup-value"> ' + value.Data +'</span></div>';
} }
}) })
} catch (err) { } catch (err) {

2
targets/evergreen/js/evergreen_results.js

@ -55,7 +55,7 @@ Drupal.behaviors.roblib_search_evergreen = {
qtipify(divs, content, 'More Info'); qtipify(divs, content, 'More Info');
} }
jQuery('#roblib-search-evergreen-more').empty().append('<a href = "' + data.catalogBaseSearchUrl + '">See all ' + data.numberOfRecords + ' results</a>'); jQuery('#roblib-search-evergreen-more').empty().append('<a href = "' + data.catalogBaseSearchUrl + '">See all results</a>');
}); });
} }

6
targets/islandscholar/js/islandscholar_results.js

@ -37,9 +37,6 @@ Drupal.behaviors.roblib_search_islandscholar = {
} }
try { try {
items.push('<div class="islandscholar-source">'); items.push('<div class="islandscholar-source">');
jQuery.each(val.genre, function(key2, val2){
items.push('<span class="islandscholar-label">' + val2 + '</span> ')
})
try{ try{
if (typeof val["mods.hostTitle"][0] !== 'undefined') { if (typeof val["mods.hostTitle"][0] !== 'undefined') {
@ -84,6 +81,9 @@ Drupal.behaviors.roblib_search_islandscholar = {
} catch (err){ } catch (err){
} }
jQuery.each(val.genre, function(key2, val2){
items.push('<div class="islandscholar-label">' + val2 + '</div> ')
})
try{ try{
if(jQuery.inArray('OBJ',val.hasDatastreams) > 0){ if(jQuery.inArray('OBJ',val.hasDatastreams) > 0){
items.push('<div>full text</div>') ; items.push('<div>full text</div>') ;

Loading…
Cancel
Save