w2v-server: add onclick to launch KorAP for collocators
diff --git a/templates/index.html.ep b/templates/index.html.ep
index 7927bd8..c4e0d9f 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -308,6 +308,10 @@
function queryKorAP() {
window.open('http://korap.ids-mannheim.de/kalamar/?q='+queryword.value, 'KorAP');
}
+
+ function queryKorAPCII(query) {
+ window.open('http://korap.ids-mannheim.de/kalamar/?ql=cosmas2&q='+query, 'KorAP');
+ }
</script>
</head>
<body onload="onload()">
@@ -404,7 +408,8 @@
</td>
-->
<td align="left">
- <a href="<%= url_with->query([word => $c->{word}]) =%>"
+<!-- <a href="<%= url_with->query([word => $c->{word}]) =%>" -->
+ <a onclick="<%= sprintf("queryKorAPCII('%s /w5 %s')", $c->{word}, $word) =%>"
title="freq. rank: <%= $c->{rank} =%>">
<%= $c->{word} %>
</td>