- Timestamp:
- 06/05/09 18:03:39 (15 months ago)
- Files:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
head/ambra/webapp/src/main/webapp/admin/manageAnnotation.ftl
r7716 r7724 21 21 <head> 22 22 <title>Ambra: Administration: Edit Annotation</title> 23 24 <script type="text/javascript"> 25 function confirmToDeleteAuthor(authorIndex) { 26 if (confirm('Are you sure you want to delete this author?')) { 27 document.manageAnnotationSave.citationAuthorDeleteIndex.value = authorIndex; 28 document.manageAnnotationSave.submit(); 29 } 30 } 31 function confirmToDeleteCollaborativeAuthor(authorIndex) { 32 if (confirm('Are you sure you want to delete this collaborative author?')) { 33 document.manageAnnotationSave.citationCollaborativeAuthorDeleteIndex.value = authorIndex; 34 document.manageAnnotationSave.submit(); 35 } 36 } 37 </script> 38 23 39 </head> 24 40 <body> … … 30 46 <fieldset> 31 47 <legend><b>Load Annotation</b></legend> 32 <@s.form name=" editOneAnnotationLoad" action="editOneAnnotationLoad" namespace="/admin" method="post">48 <@s.form name="manageAnnotationLoad" action="manageAnnotationLoad" namespace="/admin" method="post"> 33 49 <table> 34 <#if annotation??> 35 <tr><td><b>Annotation ID</b></td><td><@s.textfield name="annotationId" value="${annotation.id}" required="true" size="60"/></td></tr> 36 <#else> 37 <tr><td><b>Annotation ID</b></td><td><@s.textfield name="annotationId" value="" size="60"/></td></tr> 38 </#if> 50 <tr><td><b>Annotation ID</b></td><td><@s.textfield name="annotationId" value="${annotationId!}" size="60"/></td></tr> 39 51 <tr><td colspan="2"><@s.submit value="Load Annotation" /></td></tr> 40 52 </table> … … 44 56 45 57 <#if annotation??> 46 <@s.form name=" editOneAnnotationSave" action="editOneAnnotationSave" namespace="/admin" method="post">47 58 <@s.form name="manageAnnotationSave" action="manageAnnotationSave" namespace="/admin" method="post"> 59 48 60 <fieldset> 49 61 <legend><b>Annotation Details</b></legend> 50 <@s.hidden name="annotationId" label=" Id" required="true" value="${annotation.id}"/>62 <@s.hidden name="annotationId" label="hiddenAnnotationId" required="true" value="${annotationId!}"/> 51 63 <table> 52 64 <tr><td><b>Title</b></td> 53 65 <td>${annotation.title!"No Title for this Annotation"}</td></tr> 54 <tr><td><b>Content</b></td> 55 <td>${annotation.escapedComment!"No Content for this Annotation"}</td></tr> 66 <tr><td valign="top"><b>Body</b></td> 67 <td><@s.textarea name="annotationBody" value="${annotationBody!}" rows="9" cols="100"/></td></tr> 68 <tr><td><b>Context</b></td> 69 <td><@s.textarea name="annotationContext" value="${annotationContext!}" rows="3" cols="100"/></td></tr> 56 70 <tr><td><b>Id</b></td> 57 <td><a href="${freemarker_config.context}/annotation/listThread.action?inReplyTo=${annotation .id}&root=${annotation.id}">${annotation.id}</a></td></tr>71 <td><a href="${freemarker_config.context}/annotation/listThread.action?inReplyTo=${annotationId!}&root=${annotationId!}">${annotationId!}</a></td></tr> 58 72 <tr><td><b>Type</b></td> 59 73 <td>${annotation.type!"No Type"}</td></tr> 60 74 <tr><td><b>Created</b></td> 61 <td>${annotation.created !"No Created value"}</td></tr>75 <td>${annotation.createdAsDate?string("EEEE, MMMM dd, yyyy, hh:mm:ss a '('zzz')'")!"No Creation Date"}</td></tr> 62 76 <tr><td><b>Creator</b></td> 63 <@s.url id="showUser" namespace="/user" action="showUser" userId="${annotation.creator }"/>77 <@s.url id="showUser" namespace="/user" action="showUser" userId="${annotation.creator!}"/> 64 78 <td><@s.a href="${showUser}">${annotation.creator!"No Creator"}</@s.a></td></tr> 65 79 <tr><td><b>Annotates</b></td> 66 <td><a href="${freemarker_config.context}/article/${annotation.annotates}">${annotation.annotates!"No Annotates value"}</a></td></tr> 67 <tr><td><b>Supersedes</b></td> 68 <td>${annotation.supersedes!"No Supersedes value"}</td></tr> 69 <tr><td><b>Superseded By</b></td> 70 <td>${annotation.supersededBy!"No Superseded By value"}</td></tr> 80 <td><a href="${freemarker_config.context}/article/${annotation.annotates!}">${annotation.annotates!"No Annotates value"}</a></td></tr> 71 81 <tr><td><b>Conflict of Interest</b></td> 72 82 <td>${annotation.cIStatement!"No Conflict of Interest Statement"}</td></tr> 73 <tr><td><b>Context</b></td>74 <td><@s.textarea name="annotationContext" value="${annotationContext!annotation.context}" rows="4" cols="100"/></td></tr>75 83 </table> 76 <@s.submit value="Save Annotation" />77 84 </fieldset> 78 85 86 <br/> 87 <@s.submit value="Save Annotation" /> 88 <br/> 89 79 90 <#if annotation.formalCorrection || annotation.retraction> 91 <#if ! annotation.citation??> 92 <b>No Citation for this Annotation<b> 93 <#else> 94 <@s.hidden name="citationId" label="hiddenCitationId" required="true" value="${citationId!}"/> 80 95 <fieldset> 81 96 <legend><b>Annotation Citation</b></legend> 82 97 <table> 83 <tr><td><b>Citation</b></td> 84 <td>${annotation.citation!"No Citation for this Annotation"}</td></tr> 98 <tr><td><b>Citation Title</b></td> 99 <td><@s.textfield name="citationTitle" value="${citationTitle!}" size="40"/></td></tr> 100 <tr><td><b>Year</b></td> 101 <td><@s.textfield name="citationDisplayYear" value="${citationDisplayYear!}" size="10"/></td></tr> 102 <tr><td><b>Volume</b></td> 103 <td><@s.textfield name="citationVolumeNumber" value="${citationVolumeNumber!}" size="10"/></td></tr> 104 <tr><td><b>Issue</b></td> 105 <td><@s.textfield name="citationIssue" value="${citationIssue!}" size="10"/></td></tr> 106 <tr><td><b>Journal</b></td> 107 <td><@s.textfield name="citationJournal" value="${citationJournal!}" size="20"/></td></tr> 108 <tr><td><b>eLocationId</b></td> 109 <td><@s.textfield name="citationELocationId" value="${citationELocationId!}" size="40"/></td></tr> 110 <tr><td><b>DOI</b></td> 111 <td><@s.textfield name="citationDoi" value="${citationDoi!}" size="40"/></td></tr> 112 <tr><td><b>URL</b></td> 113 <td>${annotation.citation.url!"No URL"}</td></tr> 114 <tr><td><b>Note</b></td> 115 <td>${annotation.citation.note!"No Note"}</td></tr> 116 <tr><td><b>Summary</b></td> 117 <td>${annotation.citation.summary!"No Summary"}</td></tr> 118 <tr><td colspan="2"> 119 <fieldset> 120 <legend><b>Citation Authors</b></legend> 121 <table> 122 <#if citationAuthorIds?? && (citationAuthorIds?size > 0)> 123 <tr><td><b>Given Names</b></td><td><b>Surnames</b></td><td><b>Suffixes</b></td></tr> 124 <@s.hidden name="citationAuthorDeleteIndex" label="citationAuthorDeleteIndex" required="true" value="-1"/> 125 <#list citationAuthorIds as authorId> 126 <@s.hidden name="citationAuthorIds" label="hiddenCitationAuthorIds" required="true" value="${authorId!}"/> 127 <tr><td><@s.textfield name="citationAuthorGivenNames" value="${citationAuthorGivenNames[authorId_index]!}" size="20"/></td> 128 <td><@s.textfield name="citationAuthorSurnames" value="${citationAuthorSurnames[authorId_index]!}" size="20"/></td> 129 <td><@s.textfield name="citationAuthorSuffixes" value="${citationAuthorSuffixes[authorId_index]!}" size="20"/></td> 130 <td><a href="#" onClick="confirmToDeleteAuthor(${authorId_index});return false;">Delete Author</a></td></tr> 131 </#list> 132 <tr><td><@s.textfield name="citationAuthorGivenNames" value="" size="20"/></td> 133 <td><@s.textfield name="citationAuthorSurnames" value="" size="20"/></td> 134 <td><@s.textfield name="citationAuthorSuffixes" value="" size="20"/></td> 135 <td><a href="#" onClick="document.manageAnnotationSave.submit()">Add Author</a></td></tr> 136 <#else> 137 There are currently no Authors associated to this Citation. 138 <@s.hidden name="citationAuthorDeleteIndex" label="citationAuthorDeleteIndex" required="true" value="-1"/> 139 <tr><td><@s.textfield name="citationAuthorGivenNames" value="" size="20"/></td> 140 <td><@s.textfield name="citationAuthorSurnames" value="" size="20"/></td> 141 <td><@s.textfield name="citationAuthorSuffixes" value="" size="20"/></td> 142 <td><a href="#" onClick="document.manageAnnotationSave.submit()">Add Author</a></td></tr> 143 </#if> 144 </table> 145 </fieldset> 146 </td></tr> 147 148 <tr><td colspan="2"> 149 <fieldset> 150 <legend><b>Citation Collaborative Authors</b></legend> 151 <table> 152 <#if citationCollaborativeAuthorNames?? && (citationCollaborativeAuthorNames?size > 0)> 153 <@s.hidden name="citationCollaborativeAuthorDeleteIndex" label="citationCollaborativeAuthorDeleteIndex" required="true" value="-1"/> 154 <#list citationCollaborativeAuthorNames as authorName> 155 <tr><td><@s.textfield name="citationCollaborativeAuthorNames" value="${authorName!}" size="20"/></td> 156 <td><a href="#" onClick="confirmToDeleteCollaborativeAuthor(${authorName_index});return false;">Delete Collaborative Author</a></td></tr> 157 </#list> 158 <tr><td><@s.textfield name="citationCollaborativeAuthorNames" value="" size="20"/></td> 159 <td><a href="#" onClick="document.manageAnnotationSave.submit()">Add Collaborative Author</a></td></tr> 160 <#else> 161 There are currently no Collaborative Authors associated to this Citation. 162 <@s.hidden name="citationCollaborativeAuthorDeleteIndex" label="citationCollaborativeAuthorDeleteIndex" required="true" value="-1"/> 163 <tr><td><@s.textfield name="citationCollaborativeAuthorNames" value="" size="20"/></td> 164 <td><a href="#" onClick="document.manageAnnotationSave.submit()">Add Collaborative Author</a></td></tr> 165 </#if> 166 </table> 167 </fieldset> 168 </td></tr> 169 85 170 </table> 86 <@s.submit value="Save Annotation" />87 171 </fieldset> 172 <@s.submit value="Save Annotation" /> 88 173 </#if> 89 174 </#if> 90 175 </@s.form> 91 176 </#if>
