Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
Akron | de33179 | 2023-01-10 11:36:15 +0100 | [diff] [blame] | 4 | <title>External Resources</title> |
Akron | 773209f | 2023-03-10 16:55:11 +0100 | [diff] [blame] | 5 | <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> |
Akron | 5fcb475 | 2023-03-10 19:35:10 +0100 | [diff] [blame^] | 7 | <style><!-- |
| 8 | @font-face { |
| 9 | font-family: 'FontAwesome'; |
| 10 | src: url('https://korap.ids-mannheim.de/font/fontawesome-webfont.eot?v=4.3.0'); |
| 11 | src: url('https://korap.ids-mannheim.de/font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); |
| 12 | font-weight: normal; |
| 13 | font-style: normal; |
| 14 | } |
| 15 | --></style> |
Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 16 | </head> |
| 17 | <body> |
Akron | b911f9e | 2022-12-21 12:23:27 +0100 | [diff] [blame] | 18 | <h1>Full Text</h1> |
Akron | 9e76933 | 2022-12-21 11:25:38 +0100 | [diff] [blame] | 19 | <section style="background-color: #fefefe"> |
Akron | 9baa3eb | 2022-12-20 20:24:24 +0100 | [diff] [blame] | 20 | <p id="buy">...</p> |
| 21 | </section> |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 22 | <script defer=""><!-- |
| 23 | "use strict"; |
| 24 | |
| 25 | function pluginit(P) { |
| 26 | |
| 27 | P.resize(); |
| 28 | |
| 29 | // Request metadata from the embedding match |
| 30 | P.requestMsg( |
| 31 | { |
| 32 | 'action':'get', |
| 33 | 'key':'textSigle' |
| 34 | }, function (d) { |
| 35 | var textSigle = d.value.value; |
| 36 | var xhttp = new XMLHttpRequest(); |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 37 | xhttp.onload = function() { |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 38 | if (this.status === 404) { |
Akron | b911f9e | 2022-12-21 12:23:27 +0100 | [diff] [blame] | 39 | document.getElementById("buy").innerHTML = "External provider unknown. No full text available." |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 40 | } else { |
| 41 | var ret = this.responseText.split(","); |
Akron | b911f9e | 2022-12-21 12:23:27 +0100 | [diff] [blame] | 42 | document.getElementById("buy").innerHTML = "You can access full text from <a target=\"_blank\" href=\"" + ret[1] + "\" class=\"external\">" + ret[0] + "</a>."; |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 43 | } |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 44 | P.resize(); |
| 45 | } |
| 46 | xhttp.open("GET", textSigle, true); |
| 47 | xhttp.send(); |
| 48 | } |
| 49 | ); |
| 50 | |
| 51 | if (window.dynCall) { |
| 52 | window.dynCall(P) |
| 53 | }; |
| 54 | |
| 55 | // Set plugin object globally |
| 56 | window.Plugin = P; |
| 57 | |
| 58 | }; |
| 59 | --> |
| 60 | </script> |
Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 61 | </body> |
| 62 | </html> |