Deprecated 'collection' parameter in favor of 'cq' - fixes #92
Change-Id: I51f0197da3a182fc4d4cd35f12ccb88cce3f8833
diff --git a/dev/demo/all.html b/dev/demo/all.html
index 8417903..bd7461c 100644
--- a/dev/demo/all.html
+++ b/dev/demo/all.html
@@ -37,12 +37,12 @@
<!-- <i class="fa fa-arrow-circle-down show-hint" onclick="hint.popUp()"></i> -->
</div>
- <!-- Search in the following virtual collection -->
+ <!-- Search in the following virtual corpus -->
<div id="vc-view"></div>
in
<input id="show" name="show" type="hidden" />
<!--<input id="collection-name" name="collection-name" type="hidden"> -->
- <input id="collection" name="collection" type="text" value="">
+ <input id="cq" name="cq" type="text" value="">
with <span class="menu select">
<select name="ql" id="ql-field">
<option value="poliqarp">Poliqarp</option>
@@ -111,7 +111,7 @@
KorAP.koralQuery = {
"matches":["..."],
- "collection":{
+ "corpus":{
"@type": "koral:docGroup",
"operation": "operation:or", "operands": [{
"@type": "koral:docGroup",
diff --git a/dev/demo/alldemo.js b/dev/demo/alldemo.js
index 6f9f60b..108bfe6 100644
--- a/dev/demo/alldemo.js
+++ b/dev/demo/alldemo.js
@@ -774,7 +774,7 @@
require(['app/en', 'init', 'hint/foundries/cnx'], function (lang) {
KorAP.hintArray = hintArray;
- // Set current virtual collection
+ // Set current virtual corpus
// KorAP.currentVC = vcExample;
// Parse and show the table
diff --git a/dev/demo/sidebar-login.html b/dev/demo/sidebar-login.html
index eb2f429..2b127f1 100644
--- a/dev/demo/sidebar-login.html
+++ b/dev/demo/sidebar-login.html
@@ -54,12 +54,12 @@
<!-- <i class="fa fa-arrow-circle-down show-hint" onclick="hint.popUp()"></i> -->
</div>
- <!-- Search in the following virtual collection -->
+ <!-- Search in the following virtual corpus -->
<div id="vc-view"></div>
in
<input id="show" name="show" type="hidden" />
- <input id="collection-name" name="collection-name" type="hidden">
- <input id="collection" name="collection" type="text" value="">
+ <!--<input id="collection-name" name="collection-name" type="hidden"> -->
+ <input id="cq" name="cq" type="text" value="">
with <span class="menu select">
<select name="ql" id="ql-field">
<option value="poliqarp">Poliqarp</option>
diff --git a/dev/demo/vcdemo.js b/dev/demo/vcdemo.js
index e0b9f16..75c7cf1 100644
--- a/dev/demo/vcdemo.js
+++ b/dev/demo/vcdemo.js
@@ -67,7 +67,7 @@
]
};
-var collections = [
+var corpora = [
{
"statistics":{
"paragraphs":2034752,
@@ -120,7 +120,7 @@
domReady(function() {
- // Create a new virtual collection by passing a based json object and
+ // Create a new virtual corpus by passing a based json object and
// field menu information
KorAP.vc = vcClass.create([
['title', 'string'],