Mercurial > hg > AnnotationManagerN4J
diff src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsResource.java @ 93:3d1a00418b42 admin_ui_rel_links
starting web admin ui with relative links. doesn't fully work yet.
author | casties |
---|---|
date | Mon, 09 Feb 2015 12:55:51 +0100 |
parents | 25eb2e1df106 |
children |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsResource.java Mon Feb 09 12:50:47 2015 +0100 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsResource.java Mon Feb 09 12:55:51 2015 +0100 @@ -75,8 +75,7 @@ result += "<tr><th>uri</th><th>text</th><th>target</th><th>fragment</th><th>creator</th></tr>"; List<Annotation> annotations = store.getAnnotations("id", "*"); for (Annotation annotation : annotations) { - Reference url = this.getReference().clone(); - url.addSegment(annotation.getUrlId()); + String url = annotation.getUrlId(); result += String.format("<tr><td><a href=\"%s\">%s</a></td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", url, annotation.getUri(), annotation.getBodyText(), annotation.getTargetBaseUri(), annotation.getTargetFragment(), annotation.getCreatorName());