Created
February 19, 2014 15:38
-
-
Save jsicot/9094528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function resolveBasesearch(openurl){ | |
var url = "http://catalogue.bu.univ-rennes2.fr/opac-tmpl/rennes2/svc/getBasesearch.php"+openurl; | |
console.log(url); | |
jQuery.ajax({ | |
url : url, | |
dataType: 'jsonp', | |
success : function(data) { | |
if (data['response']['numFound'] !== '0') { | |
jQuery(".details").after("<div id='OA' class='details row span10'></div>"); | |
jQuery("#OA").makeAppear("<div class='alert alert-block alert-success'><p><strong><i class='icon-plus'></i> <a href='http://www.base-search.net/Search/Results?lookfor=" + data['response']['docs'][0]['dcdocid'] +"&type=id' class='article-button'>Document également disponible en Open Access sur "+ data['response']['docs'][0]['dcprovider'] +"</strong></a>.</p></div>"); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment