blob: cf765014a16d6960ffc88d2032d70c10a2e4333c [file] [log] [blame]
Akron5e1252e2022-12-19 17:57:56 +01001<!DOCTYPE html>
2<html>
3 <head>
Akronde331792023-01-10 11:36:15 +01004 <title>External Resources</title>
Akron773209f2023-03-10 16:55:11 +01005 <link href="https://korap.ids-mannheim.de/css/kalamar-plugin-latest.css" type="text/css" rel="stylesheet" />
6 <script data-server="{{ .korapServer }}" src="https://korap.ids-mannheim.de/js/korap-plugin-latest.js"></script>
Akron5e1252e2022-12-19 17:57:56 +01007 </head>
8 <body>
Akronb911f9e2022-12-21 12:23:27 +01009 <h1>Full Text</h1>
Akron9e769332022-12-21 11:25:38 +010010 <section style="background-color: #fefefe">
Akron9baa3eb2022-12-20 20:24:24 +010011 <p id="buy">...</p>
12 </section>
Akron8d25e1e2022-12-20 16:00:38 +010013 <script defer=""><!--
14 "use strict";
15
16 function pluginit(P) {
17
18 P.resize();
19
20 // Request metadata from the embedding match
21 P.requestMsg(
22 {
23 'action':'get',
24 'key':'textSigle'
25 }, function (d) {
26 var textSigle = d.value.value;
27 var xhttp = new XMLHttpRequest();
Akron8d25e1e2022-12-20 16:00:38 +010028 xhttp.onload = function() {
Akronc2d2d3b2022-12-21 11:29:59 +010029 if (this.status === 404) {
Akronb911f9e2022-12-21 12:23:27 +010030 document.getElementById("buy").innerHTML = "External provider unknown. No full text available."
Akronc2d2d3b2022-12-21 11:29:59 +010031 } else {
32 var ret = this.responseText.split(",");
Akronb911f9e2022-12-21 12:23:27 +010033 document.getElementById("buy").innerHTML = "You can access full text from <a target=\"_blank\" href=\"" + ret[1] + "\" class=\"external\">" + ret[0] + "</a>.";
Akronc2d2d3b2022-12-21 11:29:59 +010034 }
Akron8d25e1e2022-12-20 16:00:38 +010035 P.resize();
36 }
37 xhttp.open("GET", textSigle, true);
38 xhttp.send();
39 }
40 );
41
42 if (window.dynCall) {
43 window.dynCall(P)
44 };
45
46 // Set plugin object globally
47 window.Plugin = P;
48
49 };
50 -->
51 </script>
Akron5e1252e2022-12-19 17:57:56 +010052 </body>
53</html>