|
|
@ -13,12 +13,16 @@ Drupal.behaviors.roblib_search_eds_articles = { |
|
|
|
jQuery('#' + 'roblib-search-content-eds').empty().append('No Results'); |
|
|
|
jQuery('#' + 'roblib-search-content-eds').empty().append('No Results'); |
|
|
|
jQuery('.' + 'pane-roblib-search-eds-roblib-search-eds-articles').hide(); |
|
|
|
jQuery('.' + 'pane-roblib-search-eds-roblib-search-eds-articles').hide(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
var counter = 0; |
|
|
|
|
|
|
|
var divs = new Array(); |
|
|
|
|
|
|
|
var content = new Array(); |
|
|
|
jQuery.each(data.records, function(key, val) { |
|
|
|
jQuery.each(data.records, function(key, val) { |
|
|
|
|
|
|
|
id = 'roblib-search-eds-article-' + counter; |
|
|
|
|
|
|
|
edsPopulatePopupDivs(content, val, counter); |
|
|
|
|
|
|
|
divs[counter++] = id; |
|
|
|
|
|
|
|
|
|
|
|
//items.push('<a class="roblib-search-eds-tn" href="'+val.ImageInfo.thumb+'"/>');
|
|
|
|
|
|
|
|
//jQuery.each(val.RecordInfo.BibEntity.Titles, function(key2, val2){
|
|
|
|
|
|
|
|
if (typeof val.Items !== 'undefined') { |
|
|
|
if (typeof val.Items !== 'undefined') { |
|
|
|
items.push('<div class ="roblib-search-row">');
|
|
|
|
items.push('<div class ="roblib-search-row" id="' + id +'">'); |
|
|
|
if (typeof val.Items.Ti !== 'undefined') { |
|
|
|
if (typeof val.Items.Ti !== 'undefined') { |
|
|
|
jQuery.each(val.Items.Ti, function(key2, val2){ |
|
|
|
jQuery.each(val.Items.Ti, function(key2, val2){ |
|
|
|
items.push('<div class="roblib-title eds">'); |
|
|
|
items.push('<div class="roblib-title eds">'); |
|
|
@ -35,16 +39,6 @@ Drupal.behaviors.roblib_search_eds_articles = { |
|
|
|
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">'+source.Label+':</span> '+source.Data+'</div>'); |
|
|
|
})
|
|
|
|
})
|
|
|
|
} |
|
|
|
} |
|
|
|
//if (typeof val.Items.PubIrInfo !== 'undefined') {
|
|
|
|
|
|
|
|
// jQuery.each(val.Items.PubIrInfo, function(key5, pubinfo){
|
|
|
|
|
|
|
|
// items.push('<div class="eds-pubinfo">'+pubinfo.Data+'</div>');
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
//if (typeof val.Items.TypPub !== 'undefined') {
|
|
|
|
|
|
|
|
// jQuery.each(val.Items.TypPub, function(key6, typpub){
|
|
|
|
|
|
|
|
// items.push('<div class="eds-type">'+typpub.Data+'</div>');
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
if (typeof val.PLink !== 'undefined'){ |
|
|
|
if (typeof val.PLink !== 'undefined'){ |
|
|
|
items.push('<div class="eds-db eds-pdf-link"><a href="'+val.PLink+'">Full Text</a></div>'); |
|
|
|
items.push('<div class="eds-db eds-pdf-link"><a href="'+val.PLink+'">Full Text</a></div>'); |
|
|
|
} |
|
|
|
} |
|
|
@ -53,8 +47,10 @@ Drupal.behaviors.roblib_search_eds_articles = { |
|
|
|
items.push('</div>'); |
|
|
|
items.push('</div>'); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join('')); |
|
|
|
jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join('')); |
|
|
|
|
|
|
|
qtipify(divs, content, 'Notes'); |
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var queries = []; |
|
|
|
var queries = []; |
|
|
|
jQuery.each(data.queries, function(key7, query){ |
|
|
|
jQuery.each(data.queries, function(key7, query){ |
|
|
|
queries.push(query.query); |
|
|
|
queries.push(query.query); |
|
|
@ -66,3 +62,13 @@ 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>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} */ |
|
|
|