You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
806 B
24 lines
806 B
12 years ago
|
Drupal.behaviors.roblib_search_cufts = {
|
||
|
attach: function(context, settings) {
|
||
|
$url = settings.roblib_search_eds.search_url;
|
||
|
jQuery.getJSON($url, function(data) {
|
||
|
var items = [];
|
||
|
if(data.length < 1){
|
||
|
jQuery('#' + 'roblib-search-content-eds').empty().append('No Results');
|
||
|
} else {
|
||
|
jQuery.each(data.journals, function(key, val) {
|
||
|
items.push('<div class ="roblib-search-row">');
|
||
|
items.push('<div class="roblib-title eds">');
|
||
|
items.push('<a href = "'+val.url+'">'+val.title+'</a></div>');
|
||
|
items.push('</div>');
|
||
|
});
|
||
|
}
|
||
|
jQuery('#' + 'roblib-search-content-eds').empty().append(items.join(''));
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|