diff --git a/targets/islandscholar/css/roblib_search_islandscholar.css b/targets/islandscholar/css/roblib_search_islandscholar.css new file mode 100644 index 0000000..370bcf5 --- /dev/null +++ b/targets/islandscholar/css/roblib_search_islandscholar.css @@ -0,0 +1,21 @@ +/* + Document : roblib_search_evergreen + Created on : Apr 11, 2013, 2:27:50 PM + Author : ppound + Description: + Purpose of the stylesheet follows. +*/ + + .islandscholar-citation{ + font-size: smaller; + } +.islandscholar-hostTitle{ + font-size: smaller; +} +.islandscholar-author, .islandscholar-genre, .islandscholar-volume{ + padding-left: 10px; font-size: smaller; +} + +.islandscholar-label { + padding-left: 10px; font-size: smaller; font-weight: bolder; +} \ No newline at end of file diff --git a/targets/islandscholar/js/islandscholar_results.js b/targets/islandscholar/js/islandscholar_results.js new file mode 100644 index 0000000..5cacdf6 --- /dev/null +++ b/targets/islandscholar/js/islandscholar_results.js @@ -0,0 +1,115 @@ +Drupal.behaviors.roblib_search_islandscholar = { + attach: function(context, settings) { + url = settings.roblib_search_islandscholar.search_url; + jQuery.getJSON(url, function(data) { + var items = []; + var numberOfDocs = 0; + try { + numberOfDocs = data.response.docs.length; + } catch (err) { + // do nothing leave docLength at 0 + } + if (numberOfDocs < 1) { + jQuery('#' + 'roblib-search-content-islandscholar').empty().append('No Results'); + jQuery('.' + 'pane-roblib-search-islandscholar-site-roblib-search-islandscholar-results').hide(); + } else { + jQuery.each(data.response.docs, function(key, val) { + items.push('
+provides an Islandscholar target for the Roblib search module +
' + ); + } +} + diff --git a/targets/islandscholar/theme/roblib-search-islandscholar.tpl.php b/targets/islandscholar/theme/roblib-search-islandscholar.tpl.php new file mode 100644 index 0000000..a00f761 --- /dev/null +++ b/targets/islandscholar/theme/roblib-search-islandscholar.tpl.php @@ -0,0 +1,24 @@ + + +