changeset 77:f2ff7de7b49d

show more fields in annotations_ui annotation view.
author casties
date Fri, 06 Jun 2014 19:19:11 +0200
parents 4e2dc67997a0
children e973cbf5d58f
files .hgignore src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Jun 06 09:26:21 2014 +0200
+++ b/.hgignore	Fri Jun 06 19:19:11 2014 +0200
@@ -15,4 +15,6 @@
 syntax: regexp
 ^src/main/webapp/WEB-INF/serverconfig\.property$
 syntax: regexp
-^src/main/webapp/WEB-INF/classes$
\ No newline at end of file
+^src/main/webapp/WEB-INF/classes$
+syntax: regexp
+^src/main/webapp/neo4j-annotation-db$
\ No newline at end of file
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java	Fri Jun 06 09:26:21 2014 +0200
+++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java	Fri Jun 06 19:19:11 2014 +0200
@@ -128,6 +128,8 @@
             result += String.format("<tr><td><b>text</b></td><td>%s</td></tr>\n", annotation.getBodyText());
             result += String.format("<tr><td><b>target</b></td><td>%s</td></tr>\n", annotation.getTargetBaseUri());
             result += String.format("<tr><td><b>fragment</b></td><td>%s</td></tr>\n", annotation.getTargetFragment());
+            result += String.format("<tr><td><b>quote</b></td><td>%s</td></tr>\n", annotation.getQuote());
+            result += String.format("<tr><td><b>resource</b></td><td>%s</td></tr>\n", annotation.getResourceUri());
             result += String.format("<tr><td><b>creator</b></td><td>%s</td></tr>\n", annotation.getCreatorName());
             result += "</table>\n";
             //result += "<p><a href=\"?form=edit\">Edit annotation</a></p>\n";