Changeset 99:199143c669e4 in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet
- Timestamp:
- Feb 11, 2015, 6:09:17 PM (10 years ago)
- Branch:
- default
- Location:
- src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java
r95 r99 54 54 public class AnnotationResource extends ServerResource { 55 55 56 public static Logger logger = Logger.getLogger( "de.mpiwg.itgroup.annotations.restlet.annotations_ui.AnnotationResource");56 public static Logger logger = Logger.getLogger(AnnotationResource.class.getCanonicalName()); 57 57 58 58 protected AnnotationStore store; … … 127 127 result += String.format("<tr><td><b>uri</b></td><td>%s</td></tr>\n", annotation.getUri()); 128 128 result += String.format("<tr><td><b>text</b></td><td>%s</td></tr>\n", annotation.getBodyText()); 129 result += String.format("<tr><td><b>target</b></td><td> %s</td></tr>\n", annotation.getTargetBaseUri());129 result += String.format("<tr><td><b>target</b></td><td><a href=\"%s\" target=\"_blank\">%s</a></td></tr>\n", annotation.getTargetBaseUri(), annotation.getTargetBaseUri()); 130 130 result += String.format("<tr><td><b>fragment</b></td><td>%s</td></tr>\n", annotation.getTargetFragment()); 131 131 result += String.format("<tr><td><b>quote</b></td><td>%s</td></tr>\n", annotation.getQuote()); -
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsResource.java
r94 r99 78 78 Reference url = this.getReference().clone(); 79 79 url.addSegment(annotation.getUrlId()); 80 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,81 annotation.getUri(), annotation.getBodyText(), annotation.getTargetBaseUri(), annotation.getTarget Fragment(),82 annotation.get CreatorName());80 result += String.format("<tr><td><a href=\"%s\">%s</a></td><td>%s</td><td><a href=\"%s\">%s</a></td><td>%s</td><td>%s</td></tr>\n", url, 81 annotation.getUri(), annotation.getBodyText(), annotation.getTargetBaseUri(), annotation.getTargetBaseUri(), 82 annotation.getTargetFragment(), annotation.getCreatorName()); 83 83 } 84 84 result += "</table>\n";
Note: See TracChangeset
for help on using the changeset viewer.