Browse Source

updated eds article js to look for TitleSource instead of Src

2.x-ebsco
Paul Pound 7 years ago
parent
commit
0e20b62541
  1. 6
      targets/eds/js/eds_results_article.js

6
targets/eds/js/eds_results_article.js

@ -47,10 +47,8 @@ Drupal.behaviors.roblib_search_eds_articles = {
items.push('</div>'); items.push('</div>');
if (typeof val.Items.Src !== 'undefined') { if (typeof val.Items.TitleSource !== 'undefined') {
jQuery.each(val.Items.Src, function (key4, source) { items.push('<div class="eds-src"><span class="eds-label">In:</span> ' + val.Items.TitleSource.Data + '</div>');
items.push('<div class="eds-src"><span class="eds-label">In:</span> ' + source.Data + '</div>');
})
} }
if (typeof val.PLink !== 'undefined' && typeof val.PDF !== 'undefined' && val.PDF == 'pdflink') { if (typeof val.PLink !== 'undefined' && typeof val.PDF !== 'undefined' && val.PDF == 'pdflink') {
items.push('<div class="eds-db eds-pdf-link"><a href="' + val.PLink + '&scope=site">PDF Full Text</a></div>'); items.push('<div class="eds-db eds-pdf-link"><a href="' + val.PLink + '&scope=site">PDF Full Text</a></div>');

Loading…
Cancel
Save