Browse Source

added row class to unauthorized result

2.x-ebsco
Paul Pound 7 years ago
parent
commit
4da6676ac0
  1. 2
      targets/eds/js/eds_results.js
  2. 3
      targets/eds/js/eds_results_article.js

2
targets/eds/js/eds_results.js

@ -66,7 +66,7 @@ Drupal.behaviors.roblib_search_eds = {
}
items.push('</div>');
} else {
items.push('<div class="roblib-eds-unauthorized">You must login to view this result, <a href="http://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );
items.push('<div class ="roblib-search-row roblib-eds-unauthorized" id="\' + id + \'">You must login to view this result, <a href="http://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );
}
});
jQuery('#' + 'roblib-search-content-eds').empty().append(items.join(''));

3
targets/eds/js/eds_results_article.js

@ -64,8 +64,7 @@ Drupal.behaviors.roblib_search_eds_articles = {
items.push('</div>');
} else {
items.push('<div class="roblib-eds-unauthorized">You must login to view this result, <a href="http://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );
}
items.push('<div class ="roblib-search-row roblib-eds-unauthorized" id="\' + id + \'">You must login to view this result, <a href="http://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );}
});
jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join(''));
}

Loading…
Cancel
Save