First attempt to create info columns next to kwic
Change-Id: Id9b3b37d2245e21fb42e32d11356855bce12de12
diff --git a/dev/js/src/match.js b/dev/js/src/match.js
index aba738c..b5f0d5a 100644
--- a/dev/js/src/match.js
+++ b/dev/js/src/match.js
@@ -210,7 +210,24 @@
*/
showMeta : function () {
this.metaInfo = this._element.getAttribute('data-info');
- console.log(JSON.parse(metaInfo));
+ if (metaInfo)
+ metaInfo = JSON.parse(metaInfo);
+ if (metaInfo) {
+
+ // TODO: Meta fields should be separated
+ for (i in metaInfo) {
+ if (i !== "UID" &&
+ i !== "corpusID" &&
+ i !== "docID" &&
+ i !== "textID" &&
+ i !== "corpusSigle" &&
+ i !== "docSigle" &&
+ i !== "textSigle" &&
+ i !== "layerInfos") {
+ console.log(i);
+ };
+ };
+ };
},
// Todo: Test toggle