|
|
|
@ -29,14 +29,28 @@ Drupal.behaviors.roblib_search_eds_articles = {
|
|
|
|
|
items.push('<a href="http://proxy.library.upei.ca/login?url=' + val.PLink + '&scope=site">' + val2.Data + '</a></div>'); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
items.push('<div class="eds-sor">'); |
|
|
|
|
jQuery.each(val.RecordInfo.BibRelationships.HasContributorRelationships, function(key3, authors){ |
|
|
|
|
items.push(authors.NameFull+';'+' '); |
|
|
|
|
pubType = val.pubType; |
|
|
|
|
|
|
|
|
|
pubYear = val.RecordInfo.BibRelationships.IsPartOfRelationships["date"]; |
|
|
|
|
!pubYear ? pubYear = " " : pubYear = pubYear[0]["Y"]; |
|
|
|
|
|
|
|
|
|
items.push('<div class="eds-type"><span class="eds-pubyear">' + pubYear + '</span> - ' + pubType + '</div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var roblib_authors = []; |
|
|
|
|
jQuery.each(val.RecordInfo.BibRelationships.HasContributorRelationships, function (key3, author) { |
|
|
|
|
roblib_authors.push(author.NameFull); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
items.push('<div class="eds-sor">'); |
|
|
|
|
roblib_authors = roblib_shorten(roblib_authors.join('; '), 50, " "); |
|
|
|
|
items.push(roblib_authors); |
|
|
|
|
items.push('</div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof val.Items.Src !== 'undefined') { |
|
|
|
|
jQuery.each(val.Items.Src, function (key4, source) { |
|
|
|
|
items.push('<div class="eds-src"><span class="eds-label">'+source.Label+':</span> '+source.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') { |
|
|
|
@ -45,13 +59,10 @@ Drupal.behaviors.roblib_search_eds_articles = {
|
|
|
|
|
if (typeof val.PLink !== 'undefined' && typeof val.HTML !== 'undefined' && val.HTML == '1') { |
|
|
|
|
items.push('<div class="eds-db eds-pdf-link"><a href="' + val.PLink + '&scope=site">HTML Full Text</a></div>'); |
|
|
|
|
} |
|
|
|
|
//items.push('<div class="eds-db">'+val.DbLabel+'</div>');
|
|
|
|
|
|
|
|
|
|
items.push('</div>'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join('')); |
|
|
|
|
//qtipify(divs, content, 'Notes');
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var queries = []; |
|
|
|
@ -66,12 +77,3 @@ Drupal.behaviors.roblib_search_eds_articles = {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*function edsArticlesPopulatePopupDivs(content, val, counter){ |
|
|
|
|
content[counter] = ''; |
|
|
|
|
jQuery.each(val.DetailedRecord, function(key, value){ |
|
|
|
|
if(value.Group == 'Note') { |
|
|
|
|
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>'; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} */ |
|
|
|
|