Add textSigle as a fetchable value for plugins
Change-Id: I53d25f153f159efed9863c575e8e6fa668618403
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index 589263f..ecf436c 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -503,6 +503,16 @@
};
}
+ // Get text sigle from match
+ else if (d.key == 'textSigle') {
+ if (service.panel.type != "match") {
+ KorAP.log(0, "Service can only be called on matches", service.src);
+ return;
+ };
+ let v = d["value"] = {};
+ v["value"] = service.panel._match.textSigle;
+ }
+
// Get Query information from parameters
else if (d.key == 'QueryParam') {