Add new criterions using menus
diff --git a/dev/js/src/vc/doc.js b/dev/js/src/vc/doc.js
index 700f410..436f9ef 100644
--- a/dev/js/src/vc/doc.js
+++ b/dev/js/src/vc/doc.js
@@ -2,20 +2,10 @@
* Document criterion
*/
-/**
- * Criterion in a KorAP.Doc
- */
-function _changeKey () {
- var doc = this.parentNode.refTo;
- var key = doc.element().firstChild;
- key.appendChild(fieldMenu.element());
- fieldMenu.show();
- fieldMenu.focus();
- // key, matchop, type, value
-};
-
define([
- 'vc/jsonld', 'vc/menu', 'vc/rewritelist'], function (jsonldClass, menuClass, rewriteListClass) {
+ 'vc/jsonld', 'vc/rewritelist'], function (jsonldClass, rewriteListClass) {
+
+/*
var fieldMenu = menuClass.create([
['Titel', 'title', 'string'],
['Untertitel', 'subTitle', 'string'],
@@ -24,9 +14,22 @@
]);
fieldMenu.limit(5);
+*/
_validRegexMatchRE = new RegExp("^(?:eq|ne)$");
+ /**
+ * Criterion in a KorAP.Doc
+ */
+ function _changeKey () {
+ var doc = this.parentNode.refTo;
+ var key = doc.element().firstChild;
+ key.appendChild(fieldMenu.element());
+ fieldMenu.show();
+ fieldMenu.focus();
+ // key, matchop, type, value
+ };
+
return {
_ldType : "doc",
_obj : function () { return '???'; /*KorAP.Doc*/ },