Added serialization for Annis "lemma" keyword

Change-Id: I956c02ab514960670176a2236e7200db170b2e6a


Change-Id: I956c02ab514960670176a2236e7200db170b2e6a
diff --git a/Changes b/Changes
index cfe5a6f..d545ba6 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
-0.28 2017-11-17 
-	- Added some enums of koral:operation (margaretha)
+0.28 2017-11-21 
+	- Added some enums for koral:operation (margaretha)
 	- Fixed node serialization of Annis QL containing lemma (margaretha)
+	- Added serialization for Annis keyword "lemma" (margaretha)
 	
 0.27 2017-09-12
 	- Changed Cosmas2 wildcards serialization as regex (margaretha)  
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/AnnisQueryProcessor.java b/src/main/java/de/ids_mannheim/korap/query/serialize/AnnisQueryProcessor.java
index 0c22c1b..660235c 100644
--- a/src/main/java/de/ids_mannheim/korap/query/serialize/AnnisQueryProcessor.java
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/AnnisQueryProcessor.java
@@ -1249,10 +1249,15 @@
         if (foundryNode != null)
             fields.put("foundry", foundryNode.getChild(0).toStringTree(parser));
         String layer = layerNode.getChild(0).toStringTree(parser);
-        if (layer.equals("pos"))
+        if (layer.equals("pos")){
             layer = "p";
-        if (layer.equals("cat"))
+        }
+        else if (layer.equals("lemma")){
+            layer = "l";
+        }
+        else if (layer.equals("cat")){
             layer = "c";
+        }
         fields.put("layer", layer);
         return fields;
     }