Institut Laue Langevin et Synchrotron Européen
<span id="istex-button-hook">
<script type="text/javascript">
var xhr = new XMLHttpRequest();
if (xhr) {
xhr.onreadystatechange = alertXHR;
xhr.open('GET', 'https://api.istex.fr/document/openurl?rft_id=info:doi/{value}&noredirect=1&sid=epn');
xhr.send();
}
function alertXHR() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
var istexResponse = JSON.parse(xhr.responseText);
var btn = document.createElement('a');
btn.setAttribute('href', istexResponse.resourceUrl);
btn.setAttribute('target', '_blank');
btn.setAttribute('style', 'margin-top:0px;margin-right:8px;margin-bottom:0px;margin-left:8px;');
var img = document.createElement('img');
img.setAttribute('src', 'https://epn-library.esrf.fr/flora/icons/css/flora2/visual/ISTEX.GIF');
img.setAttribute('style', 'width:50px;vertical-align:middle');
img.setAttribute('alt', 'ISTEX');
btn.appendChild(img);
var istexButtonElement = document.getElementById('istex-button-hook');
istexButtonElement.textContent = 'Direct link to the PDF via';
istexButtonElement.appendChild(btn);
}
}
}
</script>
</span>