diff --git a/targets/eds/js/eds_results.js b/targets/eds/js/eds_results.js index ce0109e..91388cf 100644 --- a/targets/eds/js/eds_results.js +++ b/targets/eds/js/eds_results.js @@ -1,5 +1,5 @@ Drupal.behaviors.roblib_search_eds = { - attach: function(context, settings) { + attach: function(context, settings) { $url = settings.roblib_search_eds.search_url; profile = 'eds'; //settings.roblib_search_eds.eds_profile; jQuery.getJSON($url, function(data) { @@ -27,7 +27,7 @@ Drupal.behaviors.roblib_search_eds = { jQuery.each(val.Items.Ti, function(key2, val2){ items.push('
'); items.push(''+val2.Data+'
'); - }) + }) } items.push('
'); jQuery.each(val.RecordInfo.BibRelationships.HasContributorRelationships, function(key3, authors){ @@ -35,34 +35,34 @@ Drupal.behaviors.roblib_search_eds = { }) items.push('
'); if (typeof val.Items.Src !== 'undefined') { - jQuery.each(val.Items.Src, function(key4, source){ - items.push('
'+source.Data+'
'); - }) + jQuery.each(val.Items.Src, function(key4, source){ + items.push('
'+source.Data+'
'); + }) } if (typeof val.Items.PubIrInfo !== 'undefined') { - jQuery.each(val.Items.PubIrInfo, function(key5, pubinfo){ - items.push('
'+pubinfo.Data+'
'); - }) + 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){ + jQuery.each(val.Items.TypPub, function(key6, typpub){ items.push('
'+typpub.Label+': '+typpub.Data+'
'); - }) - } - + }) + } + items.push('
'+val.DbLabel+'
'); - + items.push(''); } }); jQuery('#' + 'roblib-search-content-eds').empty().append(items.join('')); - qtipify(divs, content, 'Notes'); - } + //qtipify(divs, content, 'Notes'); + } var queries = []; jQuery.each(data.queries, function(key7, query){ queries.push(query.query); - }) + }) var query_str = data.queries[0].query; //var host = "http://eds-api.ebscohost.com"; //var get = "/edsapi/rest/Search?query=history&searchmode=all&resultsperpage=20&pagenumber=1&sort=relevance&highlight=y&includefacets=y&facetfilter=1%2cSourceType%3aMagazines%2cSourceType%3aNews%2cSourceType%3aAcademic+Journals%2cSourceType%3aConference+Materials&view=detailed"; @@ -70,7 +70,7 @@ Drupal.behaviors.roblib_search_eds = { jQuery('#roblib-search-eds-more').empty().append('See all results'); }); - } + } } function edsPopulatePopupDivs(content, val, counter){ diff --git a/targets/eds/js/eds_results_article.js b/targets/eds/js/eds_results_article.js index 416b98a..89b6a40 100644 --- a/targets/eds/js/eds_results_article.js +++ b/targets/eds/js/eds_results_article.js @@ -1,5 +1,5 @@ Drupal.behaviors.roblib_search_eds_articles = { - attach: function(context, settings) { + attach: function(context, settings) { $url = settings.roblib_search_eds_articles.search_url; profile = 'eds'; //settings.roblib_search_eds.eds_profile; jQuery.getJSON($url, function(data) { @@ -28,7 +28,7 @@ Drupal.behaviors.roblib_search_eds_articles = { jQuery.each(val.Items.Ti, function(key2, val2){ items.push('
'); items.push(''+val2.Data+'
'); - }) + }) } items.push('
'); jQuery.each(val.RecordInfo.BibRelationships.HasContributorRelationships, function(key3, authors){ @@ -38,7 +38,7 @@ Drupal.behaviors.roblib_search_eds_articles = { if (typeof val.Items.Src !== 'undefined') { jQuery.each(val.Items.Src, function(key4, source){ items.push('
'+source.Label+': '+source.Data+'
'); - }) + }) } if (typeof val.PLink !== 'undefined' && typeof val.PDF !== 'undefined' && val.PDF == 'pdflink'){ items.push(''); @@ -47,24 +47,24 @@ Drupal.behaviors.roblib_search_eds_articles = { items.push(''); } //items.push('
'+val.DbLabel+'
'); - + items.push('
'); } }); jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join('')); - qtipify(divs, content, 'Notes'); - } + //qtipify(divs, content, 'Notes'); + } var queries = []; jQuery.each(data.queries, function(key7, query){ queries.push(query.query); - }) + }) var query_str = data.queries[0].query; var href_str = 'http://search.ebscohost.com/login.aspx?direct=true&site=ehost-live&scope=site&type=1&custid=uprince&groupid=main&profid=' + profile +'&mode=bool&lang=en&bquery='; jQuery('#roblib-search-eds-article-more').empty().append('See all results'); }); - } + } } /*function edsArticlesPopulatePopupDivs(content, val, counter){ diff --git a/targets/solr_site/js/solr_site_bestbet.js b/targets/solr_site/js/solr_site_bestbet.js index 033eab9..30a4f66 100755 --- a/targets/solr_site/js/solr_site_bestbet.js +++ b/targets/solr_site/js/solr_site_bestbet.js @@ -28,7 +28,7 @@ Drupal.behaviors.roblib_search_solr_site_bestbet = { }); jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty().append(items.join('')); - qtipify(divs, content, 'Best Bet'); + //qtipify(divs, content, 'Best Bet'); } }); } diff --git a/targets/solr_site/js/solr_site_databases.js b/targets/solr_site/js/solr_site_databases.js index 77b87ee..b4e7f09 100644 --- a/targets/solr_site/js/solr_site_databases.js +++ b/targets/solr_site/js/solr_site_databases.js @@ -31,7 +31,7 @@ Drupal.behaviors.roblib_search_solr_site_databases = { }); jQuery('#' + 'roblib-search-content-solr-site-databases').empty().append(items.join('')); - qtipify(divs, content, 'Description'); + //qtipify(divs, content, 'Description'); } if (numberOfDocs > 0) diff --git a/targets/solr_site/js/solr_site_guides.js b/targets/solr_site/js/solr_site_guides.js index d69281b..59cf05b 100644 --- a/targets/solr_site/js/solr_site_guides.js +++ b/targets/solr_site/js/solr_site_guides.js @@ -30,7 +30,7 @@ Drupal.behaviors.roblib_search_solr_site_guides = { ' + val.label + ''); }); jQuery('#' + 'roblib-search-content-solr-site-guides').empty().append(items.join('')); - qtipify(divs, content, 'Description'); + //qtipify(divs, content, 'Description'); } if (numberOfDocs > 0) { diff --git a/targets/solr_site/js/solr_site_reserves.js b/targets/solr_site/js/solr_site_reserves.js index 9d81b59..0208f11 100644 --- a/targets/solr_site/js/solr_site_reserves.js +++ b/targets/solr_site/js/solr_site_reserves.js @@ -30,7 +30,7 @@ Drupal.behaviors.roblib_search_solr_site_reserves = { ' + val.label + ''); }); jQuery('#' + 'roblib-search-content-solr-site-reserves').empty().append(items.join('')); - qtipify(divs, content, 'Description'); + //qtipify(divs, content, 'Description'); } if (numberOfDocs > 0) { diff --git a/targets/solr_site/js/solr_site_results.js b/targets/solr_site/js/solr_site_results.js index 677e8b2..fa39cdd 100644 --- a/targets/solr_site/js/solr_site_results.js +++ b/targets/solr_site/js/solr_site_results.js @@ -31,7 +31,7 @@ Drupal.behaviors.roblib_search_solr_site_results = { }); jQuery('#' + 'roblib-search-content-solr-site-results').empty().append(items.join('')); - qtipify(divs, content, 'Summary'); + //qtipify(divs, content, 'Summary'); } if (numberOfDocs > 0) diff --git a/targets/solr_site/roblib_search_solr_site.module b/targets/solr_site/roblib_search_solr_site.module index 6a19919..771b5db 100755 --- a/targets/solr_site/roblib_search_solr_site.module +++ b/targets/solr_site/roblib_search_solr_site.module @@ -253,7 +253,7 @@ function roblib_search_solr_site_block_view($delta = '') { * The solr search string. */ function roblib_search_solr_site_results($query) { - print roblib_search_solr_site_get_results($query, '-bundle:course_reserve OR -bundle:bestbet OR -im_field_keywords:627 OR -bundle:database'); + print roblib_search_solr_site_get_results($query, ''); exit(); }