diff --git a/targets/cufts/css/roblib_search_cufts.base.css b/targets/cufts/css/roblib_search_cufts.base.css new file mode 100644 index 0000000..2277c3c --- /dev/null +++ b/targets/cufts/css/roblib_search_cufts.base.css @@ -0,0 +1,12 @@ +/* + Document : roblib_search_cufts + Created on : Jun 10, 2013, 3:07:56 PM + Author : yqjiang + Description: + Purpose of the stylesheet follows. +*/ + +.cufts-issns , .cufts-fulltext-coverages{ + padding-left: 10px; font-size: smaller; +} + diff --git a/targets/cufts/js/cufts_results.js b/targets/cufts/js/cufts_results.js index 4f7b63f..50c2b05 100644 --- a/targets/cufts/js/cufts_results.js +++ b/targets/cufts/js/cufts_results.js @@ -7,10 +7,33 @@ Drupal.behaviors.roblib_search_cufts = { jQuery('#' + 'roblib-search-content-cufts').empty().append('No Results'); } else { jQuery.each(data.journals, function(key, val) { - items.push('
'); - items.push('
'); - items.push('' + val.title + '
'); - items.push('
'); + var item_str = '
'; + item_str += '
'; + item_str += '' + val.title + ''; + item_str += '
'; + + item_str += '
'; + var issns=val.issns.toString(); + if(issns.length==8) + { + newIssns = issns.substr(0,4)+'-'+issns.substr(4,4); + } + else + { + newIssns = issns; + } + + item_str += newIssns; + item_str += '
'; + + item_str += '
'; + item_str += val.fulltext_coverages; + item_str += '
'; + + item_str += '
'; + items.push(item_str); + + }); } var originURL = settings.roblib_search_cufts.url;