Changeset 93:3d1a00418b42 in AnnotationManagerN4J
- Timestamp:
- Feb 9, 2015, 11:55:51 AM (10 years ago)
- Branch:
- admin_ui_rel_links
- Location:
- src/main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationResource.java
r78 r93 123 123 // output person content 124 124 result = "<html><body>\n<h1>Annotation</h1>\n"; 125 result += String.format("<p><a href=\"%s\">All annotations</a></p>", this.getReference().getParentRef());125 result += "<p><a href=\"./\">All annotations</a></p>"; 126 126 result += "<table>"; 127 127 result += String.format("<tr><td><b>uri</b></td><td>%s</td></tr>\n", annotation.getUri()); … … 142 142 //result += "<p><a href=\"?form=edit\">Edit annotation</a></p>\n"; 143 143 // tunnel POST as DELETE 144 result += String.format( 145 "<form method=\"post\" action=\"%s?method=DELETE\"><input type=\"submit\" value=\"Delete annotation\"/></form>\n", 146 this.getReference().getHierarchicalPart()); 144 result += "<form method=\"post\" action=\"?method=DELETE\"><input type=\"submit\" value=\"Delete annotation\"/></form>\n"; 147 145 result += "</body>\n</html>"; 148 146 } -
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsResource.java
r75 r93 76 76 List<Annotation> annotations = store.getAnnotations("id", "*"); 77 77 for (Annotation annotation : annotations) { 78 Reference url = this.getReference().clone(); 79 url.addSegment(annotation.getUrlId()); 78 String url = annotation.getUrlId(); 80 79 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 80 annotation.getUri(), annotation.getBodyText(), annotation.getTargetBaseUri(), annotation.getTargetFragment(), -
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsUiRestlet.java
r75 r93 1 /**2 *3 */4 1 package de.mpiwg.itgroup.annotations.restlet.annotations_ui; 5 2 … … 42 39 public class AnnotationsUiRestlet extends BaseRestlet { 43 40 44 public final String version = "AnnotationManagerN4J/AnnotationsUI 0. 3";41 public final String version = "AnnotationManagerN4J/AnnotationsUI 0.4"; 45 42 46 43 public static Logger logger = Logger.getLogger("de.mpiwg.itgroup.annotations.restlet.annotations_ui.AnnotationsUiRestlet"); … … 84 81 } 85 82 // Create a Guard 86 ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext(), ChallengeScheme.HTTP_BASIC, " Tutorial");83 ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext(), ChallengeScheme.HTTP_BASIC, "Annotation Server"); 87 84 guard.setVerifier(verifier); 88 85 // put everything through guard -
src/main/webapp/index.html
r54 r93 25 25 <h2>Admin</h2> 26 26 <ul> 27 <li><a href="annotations/groups ">View and edit groups</a></li>28 <li><a href="annotations/persons ">View and edit persons</a></li>29 <li><a href="annotations/annotations ">View and edit annotations</a></li>27 <li><a href="annotations/groups/">View and edit groups</a></li> 28 <li><a href="annotations/persons/">View and edit persons</a></li> 29 <li><a href="annotations/annotations/">View and edit annotations</a></li> 30 30 </ul> 31 31 </body>
Note: See TracChangeset
for help on using the changeset viewer.