Changeset 99:199143c669e4 in AnnotationManagerN4J for src


Ignore:
Timestamp:
Feb 11, 2015, 6:09:17 PM (9 years ago)
Author:
casties
Branch:
default
Message:

added links to admin interface.

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  
    5454public class AnnotationResource extends ServerResource {
    5555
    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());
    5757
    5858    protected AnnotationStore store;
     
    127127            result += String.format("<tr><td><b>uri</b></td><td>%s</td></tr>\n", annotation.getUri());
    128128            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());
    130130            result += String.format("<tr><td><b>fragment</b></td><td>%s</td></tr>\n", annotation.getTargetFragment());
    131131            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  
    7878            Reference url = this.getReference().clone();
    7979            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.getTargetFragment(),
    82                     annotation.getCreatorName());
     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());
    8383        }
    8484        result += "</table>\n";
Note: See TracChangeset for help on using the changeset viewer.