From fcd6eec89d262b108c9292d16cc39cd017622e73 Mon Sep 17 00:00:00 2001 From: Steffen Remus Date: Sun, 11 Jun 2017 21:03:55 +0200 Subject: [PATCH] fix feature ui name --- .../webanno/api/dao/ProjectInitializationServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webanno-plugin-exmaralda/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/ProjectInitializationServiceImpl.java b/webanno-plugin-exmaralda/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/ProjectInitializationServiceImpl.java index f9bdd1f..5270c16 100644 --- a/webanno-plugin-exmaralda/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/ProjectInitializationServiceImpl.java +++ b/webanno-plugin-exmaralda/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/ProjectInitializationServiceImpl.java @@ -72,9 +72,9 @@ private void createTranscriptLayer(Project aProject) AnnotationFeature playbuttonSegmentLayerInfoFeature = new AnnotationFeature(); playbuttonSegmentLayerInfoFeature.setDescription("Anchor description."); playbuttonSegmentLayerInfoFeature.setName("Info"); + playbuttonSegmentLayerInfoFeature.setUiName("Info"); playbuttonSegmentLayerInfoFeature.setType(CAS.TYPE_NAME_STRING); playbuttonSegmentLayerInfoFeature.setProject(aProject); - playbuttonSegmentLayerInfoFeature.setUiName("Info"); playbuttonSegmentLayerInfoFeature.setLayer(playbuttonSegmentLayer); annotationService.createFeature(playbuttonSegmentLayerInfoFeature); @@ -92,15 +92,15 @@ private void createTranscriptLayer(Project aProject) playbuttonLayer.setReadonly(true); playbuttonLayer.setMultipleTokens(false); // playbuttonLayer.setZeroWidthOnly(true); - playbuttonLayer.setOnClickJavascriptAction("window.open('http://bing.com')"); + playbuttonLayer.setOnClickJavascriptAction("window.open('partitur/${PID}/${DOCID}#${AnchorID}', 'partitur')"); annotationService.createLayer(playbuttonLayer); AnnotationFeature playbuttonLayerInfoFeature = new AnnotationFeature(); playbuttonLayerInfoFeature.setDescription("Anchor description."); playbuttonLayerInfoFeature.setName("Info"); + playbuttonLayerInfoFeature.setUiName("Info"); playbuttonLayerInfoFeature.setType(CAS.TYPE_NAME_STRING); playbuttonLayerInfoFeature.setProject(aProject); - playbuttonLayerInfoFeature.setUiName("window.open('partitur/${PID}/${DOCID}#${AnchorID}', 'partitur')"); playbuttonLayerInfoFeature.setLayer(playbuttonLayer); annotationService.createFeature(playbuttonLayerInfoFeature); /* END: add play buttons */