');
if (typeof val.Items.Ti !== 'undefined') {
jQuery.each(val.Items.Ti, function(key2, val2){
items.push('
');
@@ -35,16 +39,6 @@ Drupal.behaviors.roblib_search_eds_articles = {
items.push('
'+source.Label+': '+source.Data+'
');
})
}
- //if (typeof val.Items.PubIrInfo !== 'undefined') {
- // jQuery.each(val.Items.PubIrInfo, function(key5, pubinfo){
- // items.push('
'+pubinfo.Data+'
');
- // })
- //}
- //if (typeof val.Items.TypPub !== 'undefined') {
- // jQuery.each(val.Items.TypPub, function(key6, typpub){
- // items.push('
'+typpub.Data+'
');
- // })
- //}
if (typeof val.PLink !== 'undefined'){
items.push('
');
}
@@ -52,9 +46,11 @@ Drupal.behaviors.roblib_search_eds_articles = {
items.push('
');
}
- });
+ });
+ jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join(''));
+ qtipify(divs, content, 'Notes');
}
- jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join(''));
+
var queries = [];
jQuery.each(data.queries, function(key7, 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] += '';
+ }
+ })
+} */
diff --git a/targets/eds/roblib_search_eds.module b/targets/eds/roblib_search_eds.module
index ed3055e..0addcf8 100644
--- a/targets/eds/roblib_search_eds.module
+++ b/targets/eds/roblib_search_eds.module
@@ -237,9 +237,21 @@ function roblib_search_eds_get_results($query = NULL, $type = NULL) {
$query = urlencode($query);
$params = "query=AND,$query&view=detailed&includefacets=n&$limiters&resultsperpage=$number_per_page";
$output = $eds_api->apiSearch($params);
+ $output = roblib_search_eds_get_detailed_result($output, $query, $eds_api);
return json_encode($output);
}
+function roblib_search_eds_get_detailed_result(&$output, $query, &$eds_api) {
+ $detailed_record = array();
+ foreach ($output['records'] as &$record) {
+ $db = $record['DbId'];
+ $an = $record['An'];
+ $arr = $eds_api->apiRetrieve($an, $db, $query);
+ $record['DetailedRecord'] = $arr['Items'];
+ }
+ return $output;
+}
+
function roblib_search_eds_get_query_limiters($type) {
$limiters = 'n';
switch ($type) {