| <title>External Resources</title> |
| <link href="https://korap.ids-mannheim.de/instance/test/css/kalamar-plugin-latest.css" type="text/css" rel="stylesheet" /> |
| <script data-server="{{ .korapServer }}" src="https://korap.ids-mannheim.de/instance/test/js/korap-plugin-latest.js"></script> |
| <section style="background-color: #fefefe"> |
| // Request metadata from the embedding match |
| var textSigle = d.value.value; |
| var xhttp = new XMLHttpRequest(); |
| xhttp.onload = function() { |
| if (this.status === 404) { |
| document.getElementById("buy").innerHTML = "External provider unknown. No full text available." |
| var ret = this.responseText.split(","); |
| document.getElementById("buy").innerHTML = "You can access full text from <a target=\"_blank\" href=\"" + ret[1] + "\" class=\"external\">" + ret[0] + "</a>."; |
| xhttp.open("GET", textSigle, true); |
| // Set plugin object globally |