Mercurial > hg > ismi-richfaces
annotate src/main/webapp/search/displayTitle.xhtml @ 74:a58e6b2fb87f
move "witnesses with scans" button.
| author | casties |
|---|---|
| date | Thu, 07 Jan 2016 16:26:48 +0100 |
| parents | ebd008b2e6ba |
| children | 985dcecba904 |
| rev | line source |
|---|---|
| 7 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml" | |
| 3 xmlns:h="http://java.sun.com/jsf/html" | |
| 4 xmlns:f="http://java.sun.com/jsf/core" | |
| 5 xmlns:ui="http://java.sun.com/jsf/facelets" | |
| 6 xmlns:a4j="http://richfaces.org/a4j" | |
| 7 xmlns:rich="http://richfaces.org/rich"> | |
| 8 | |
| 9 <body> | |
| 10 <ui:composition template="/templates/publicTemplate.xhtml"> | |
| 11 | |
| 12 <ui:define name="publicContent"> | |
| 13 | |
| 14 <h:outputStylesheet name="/css/ismi-db/display.css" /> | |
| 15 | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
16 <!-- TODO: fix this! --> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
17 <script type="text/javascript" src="../imageServer/resources/js/diva4ismi.js"></script> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
18 |
| 7 | 19 <div id="pageTitle"> |
| 20 <h:outputText | |
| 21 value="Title [#{Session.displayTitle.selectedTitleId}]" /> | |
| 22 </div> | |
| 23 | |
| 24 <h:panelGrid columns="1" styleClass="mainPanel"> | |
| 25 | |
| 26 <h:commandButton value="Edit form" | |
| 27 image="#{ApplicationBean1.editImage}" title="Edit This Entity" | |
| 28 action="#{Session.displayTitle.actionEditTitle}" | |
| 29 rendered="#{Session.user != null}" /> | |
| 30 | |
| 31 | |
| 32 <h:panelGrid columns="2" styleClass="displayPanel" | |
| 33 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
| 34 | |
| 35 <h:outputText value="Permission" /> | |
| 36 <h:panelGrid columns="2"> | |
| 37 <h:outputText value="#{Session.displayTitle.title.privacity} - " /> | |
| 38 <h:commandLink value="change" rendered="#{Session.user != null}" | |
| 39 actionListener="#{Session.displayTitle.changePrivacity4Title}" | |
| 40 onclick="if(!confirm('Do you really want to change the privacity of this title?')){ return; };" /> | |
| 41 </h:panelGrid> | |
| 42 | |
| 43 <h:outputText value="Title ID" /> | |
| 44 <h:outputText value="#{Session.displayTitle.selectedTitleId}" /> | |
| 45 | |
| 46 <h:outputText value="Full title" /> | |
| 47 <h:outputText value="#{Session.displayTitle.title.fullTitle}" /> | |
| 48 | |
| 49 <h:outputText value="Full title (translit)" /> | |
| 50 <h:outputText | |
| 51 value="#{Session.displayTitle.title.fullTitleTranslit}" /> | |
| 52 | |
| 53 <h:outputText value="Aliases" /> | |
| 54 <h:dataTable var="aliasTitle" style="border:none;" | |
| 55 value="#{Session.displayTitle.title.aliasList}"> | |
| 56 <h:column style="border:none;"> | |
| 57 <h:outputText value="#{aliasTitle}" /> | |
| 58 </h:column> | |
| 59 </h:dataTable> | |
| 60 | |
| 61 <h:outputText value="Author"/> | |
| 62 <h:panelGroup rendered="#{Session.displayTitle.title.hasAuthor}"> | |
| 63 <h:outputText value="#{Session.displayTitle.title.author}" /> | |
| 64 <h:outputLink | |
| 65 target="_blank" | |
| 66 value="#{ApplicationBean1.root}/search/displayAuthor.xhtml?personId=#{Session.displayTitle.title.authorId}" title="Person viewer" | |
| 67 styleClass="displayButton"> | |
| 68 <h:graphicImage | |
| 69 value="#{ApplicationBean1.displayImage}" | |
| 70 width="20" height="20"/> | |
| 71 </h:outputLink> | |
| 72 <h:outputLink | |
| 73 target="_blank" | |
| 74 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{Session.displayTitle.title.authorId}" title="Metadata of the entity" | |
| 75 styleClass="displayButton"> | |
| 76 <h:graphicImage | |
| 77 value="#{ApplicationBean1.imgNetwork32}" | |
| 78 width="20" height="20"/> | |
| 79 </h:outputLink> | |
| 80 | |
| 81 </h:panelGroup> | |
| 82 <h:outputText rendered="#{!Session.displayTitle.title.hasAuthor}"/> | |
| 83 | |
| 84 <h:outputText value="Date" /> | |
| 85 <h:outputText value="#{Session.displayTitle.title.creationDate}" | |
| 86 escape="false" /> | |
| 87 | |
| 88 <h:outputText value="Create in" /> | |
| 89 <h:outputText value="#{Session.displayTitle.title.createIn}" /> | |
| 90 | |
| 91 <h:outputText value="Language" /> | |
| 92 <h:outputText value="#{Session.displayTitle.title.language}" /> | |
| 93 | |
| 94 <h:outputText value="Subject" /> | |
| 95 <h:outputText value="#{Session.displayTitle.title.category}" /> | |
| 96 | |
| 97 <h:outputText value="Notes" /> | |
| 98 <h:outputText value="#{Session.displayTitle.title.notes}" /> | |
| 99 | |
| 100 <h:outputText value="Incipit" /> | |
| 101 <h:outputText value="#{Session.displayTitle.title.incipit}" /> | |
| 102 | |
| 103 <h:outputText value="Explicit" /> | |
| 104 <h:outputText value="#{Session.displayTitle.title.explicit}" | |
| 105 dir="RTL" /> | |
| 106 | |
| 107 <h:outputText value="Dedication" /> | |
| 108 <h:outputText value="#{Session.displayTitle.title.dedication}" | |
| 109 dir="RTL" /> | |
| 110 | |
| 111 <h:outputText value="Table of Contents" /> | |
| 112 <h:outputText value="#{Session.displayTitle.title.tableOfContents}" | |
| 113 escape="false" /> | |
| 114 | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
115 <h:outputText value="Bibliographical References" |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
116 rendered="#{!empty Session.displayTitle.title.referenceList}" /> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
117 <h:panelGrid columns="1" |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
118 rendered="#{!empty Session.displayTitle.title.referenceList}"> |
| 7 | 119 <rich:dataTable var="item" style="border:none;width: 700px;" |
| 120 value="#{Session.displayTitle.title.referenceList}" | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
121 rendered="#{!empty Session.displayTitle.title.referenceList}" |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
122 rowKeyVar="cnt"> |
| 7 | 123 |
| 124 <h:column> | |
| 125 <f:facet name="header"> | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
126 <h:outputText value="Reference id" /> |
| 7 | 127 </f:facet> |
| 128 <h:outputText value="#{item.endnoteId}" /> | |
| 129 </h:column> | |
| 130 | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
131 <h:column> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
132 <f:facet name="header"> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
133 <h:outputText value="Reference display (Drupal)" /> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
134 </f:facet> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
135 <script>showBibliographyEntryFormatted("#{item.endnoteId}", null, "#bibl-entry-title-#{cnt}")</script> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
136 <span id="bibl-entry-title-#{cnt}">(loading reference...)</span> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
137 </h:column> |
| 7 | 138 |
| 139 <h:column> | |
| 140 <f:facet name="header"> | |
| 141 <h:outputText value="additional_information" /> | |
| 142 </f:facet> | |
| 143 <h:outputText value="#{item.additionalInf}" /> | |
| 144 </h:column> | |
| 145 </rich:dataTable> | |
| 146 </h:panelGrid> | |
| 147 | |
|
73
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
148 </h:panelGrid> |
| 7 | 149 |
| 74 | 150 <h:panelGrid columns="3"> |
| 151 <h:selectBooleanCheckbox value="#{Session.displayTitle.showWitnessesWithScans}"/> | |
| 152 <h:outputText value="Show only witnesses with scans"/> | |
| 153 <h:commandButton value="Change" | |
| 154 action="#{Session.displayTitle.changeShowWitnessesWithScans}"/> | |
| 155 </h:panelGrid> | |
| 156 | |
|
73
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
157 <!-- no WITNESS --> |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
158 <h:outputText value="No known witnesses" |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
159 rendered="#{empty Session.displayTitle.witnessItems}" |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
160 styleClass="titlePanel" /> |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
161 |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
162 <!-- WITNESSes --> |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
163 <h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayTitle.witnessItems}"> |
| 7 | 164 <a name="witnesses" /> |
| 165 <h:outputText | |
| 166 value="Witnesses (#{Session.displayTitle.witnessItemsSize})" | |
| 167 rendered="#{!empty Session.displayTitle.witnessItems}" | |
| 168 styleClass="titlePanel" /> | |
| 169 | |
| 170 <h:panelGrid columns="1" | |
| 171 rendered="#{(!empty Session.displayTitle.witnessItems) and Session.user != null}"> | |
| 172 <h:commandLink value="Make all public" | |
| 173 actionListener="#{Session.displayTitle.listenerMakeAllWitnessesPublic}" | |
| 174 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
| 175 <h:commandLink value="Make all private" | |
| 176 actionListener="#{Session.displayTitle.listenerMakeAllWitnessesPrivate}" | |
| 177 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
| 178 </h:panelGrid> | |
| 179 </h:panelGrid> | |
| 180 | |
| 181 <rich:dataTable | |
| 182 rendered="#{!empty Session.displayTitle.witnessItems}" | |
| 183 value="#{Session.displayTitle.witnessItems}" var="witnessItem" | |
| 184 styleClass="select" | |
| 185 rows="10"> | |
| 186 <rich:column> | |
| 187 <h:commandLink id="selectItem" | |
| 188 actionListener="#{Session.displayTitle.listenerShowWitness0}" | |
| 189 style="text-decoration:none;"> | |
| 190 <div class="selectItem" style="#{witnessItem.style}">#{witnessItem.label}</div> | |
| 191 </h:commandLink> | |
| 192 </rich:column> | |
| 193 <f:facet name="footer"> | |
| 194 <rich:dataScroller id="scroller" rendered="#{Session.displayTitle.witnessItemsSize > 10}"/> | |
| 195 </f:facet> | |
| 196 </rich:dataTable> | |
| 197 | |
| 198 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" | |
| 199 rendered="#{Session.displayTitle.selectedWitnessId != null}"> | |
| 200 | |
|
73
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
201 <h:outputText |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
202 value="Witness [#{Session.displayTitle.selectedWitnessId}]: #{Session.displayTitle.witness.ov}" |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
203 styleClass="titlePanel" /> |
| 7 | 204 |
| 205 <h:panelGrid columns="2" styleClass="displayPanel" | |
| 206 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
| 207 | |
| 208 <h:outputText value="Permission" /> | |
| 209 <h:panelGrid columns="2"> | |
| 210 <h:outputText | |
| 211 value="#{Session.displayTitle.witness.privacity} - " /> | |
| 212 <h:commandLink value="change" rendered="#{Session.user != null}" | |
| 213 actionListener="#{Session.displayTitle.changePrivacity4Witness}" | |
| 214 onclick="if(!confirm('Do you really want to change the privacity of this witness?')){ return; };" /> | |
| 215 </h:panelGrid> | |
| 216 | |
| 217 <h:outputText value="Witness ID" /> | |
| 218 <h:outputText value="#{Session.displayTitle.selectedWitnessId}" /> | |
| 219 | |
| 220 <h:outputText value="State" /> | |
| 221 <h:outputText value="#{Session.displayTitle.witness.status}" /> | |
| 222 | |
| 223 <h:outputText value="Country" /> | |
| 224 <h:outputText value="#{Session.displayTitle.witness.country}" /> | |
| 225 | |
| 226 <h:outputText value="City" /> | |
| 227 <h:outputText value="#{Session.displayTitle.witness.city}" /> | |
| 228 | |
| 229 <h:outputText value="Repository" /> | |
| 230 <h:outputText value="#{Session.displayTitle.witness.repository}" /> | |
| 231 | |
| 232 <h:outputText value="Collection" /> | |
| 233 <h:outputText value="#{Session.displayTitle.witness.collection}" /> | |
| 234 | |
| 235 <h:outputText value="Codex Identifier" /> | |
| 236 <h:outputText value="#{Session.displayTitle.witness.codex}" /> | |
| 237 | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
238 <h:outputText value="Witness Owned by" /> |
| 7 | 239 <h:panelGrid columns="1"> |
| 240 <h:dataTable var="item" style="border:none;" | |
| 241 value="#{Session.displayTitle.witness.ownedByList}" | |
| 242 rendered="#{!empty Session.displayTitle.witness.ownedByList}"> | |
| 243 <h:column style="border:none;"> | |
| 244 <f:facet name="header"> | |
| 245 <h:outputText value="Owner" /> | |
| 246 </f:facet> | |
| 247 <h:outputText value="#{item}" /> | |
| 248 </h:column> | |
| 249 <h:column style="border:none;"> | |
| 250 <f:facet name="header"> | |
| 251 <h:outputText value="Date" /> | |
| 252 </f:facet> | |
| 253 <h:outputText | |
| 254 value="#{Session.displayTitle.witness.ownedByMap[item]}" | |
| 255 escape="false" /> | |
| 256 </h:column> | |
| 257 </h:dataTable> | |
| 258 | |
| 259 </h:panelGrid> | |
| 260 | |
| 261 | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
262 <h:outputText value="Witness Read by" /> |
| 7 | 263 <h:panelGrid columns="1"> |
| 264 <h:dataTable var="item" style="border:none;" | |
| 265 value="#{Session.displayTitle.witness.readByList}" | |
| 266 rendered="#{!empty Session.displayTitle.witness.readByList}"> | |
| 267 <h:column style="border:none;"> | |
| 268 <f:facet name="header"> | |
| 269 <h:outputText value="Reader" /> | |
| 270 </f:facet> | |
| 271 <h:outputText value="#{item}" /> | |
| 272 </h:column> | |
| 273 <h:column style="border:none;"> | |
| 274 <f:facet name="header"> | |
| 275 <h:outputText value="Date" /> | |
| 276 </f:facet> | |
| 277 <h:outputText | |
| 278 value="#{Session.displayTitle.witness.readByMap[item]}" | |
| 279 escape="false" /> | |
| 280 </h:column> | |
| 281 </h:dataTable> | |
| 282 </h:panelGrid> | |
| 283 | |
| 9 | 284 <h:outputText value="Notes" /> |
| 7 | 285 <h:outputText value="#{Session.displayTitle.witness.notes}" /> |
| 286 | |
| 287 <h:outputText value="Table of Contents" /> | |
| 288 <h:outputText | |
| 289 value="#{Session.displayTitle.witness.tableOfContents}" | |
| 290 escape="false" /> | |
| 291 | |
| 292 <h:outputText value="Bibliographical References" /> | |
| 293 <h:panelGrid columns="1"> | |
| 294 <rich:dataTable var="item" style="border:none;width: 700px;" | |
| 295 value="#{Session.displayTitle.witness.referenceList}" | |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
296 rendered="#{!empty Session.displayTitle.witness.referenceList}" |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
297 rowKeyVar="cnt"> |
| 7 | 298 |
|
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
299 <h:column> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
300 <f:facet name="header"> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
301 <h:outputText value="Reference id" /> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
302 </f:facet> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
303 <h:outputText value="#{item.endnoteId}" /> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
304 </h:column> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
305 |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
306 <h:column> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
307 <f:facet name="header"> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
308 <h:outputText value="Reference display (Drupal)" /> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
309 </f:facet> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
310 <script>showBibliographyEntryFormatted("#{item.endnoteId}", null, "#bibl-entry-title-#{cnt}")</script> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
311 <span id="bibl-entry-title-#{cnt}">(loading reference...)</span> |
|
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
312 </h:column> |
| 7 | 313 |
| 314 <h:column> | |
| 315 <f:facet name="header"> | |
| 316 <h:outputText value="additional_information" /> | |
| 317 </f:facet> | |
| 318 <h:outputText value="#{item.additionalInf}" /> | |
| 319 </h:column> | |
| 320 </rich:dataTable> | |
| 321 </h:panelGrid> | |
| 322 | |
| 323 </h:panelGrid> | |
| 324 | |
|
73
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
325 <h:commandButton value="edit this witness" |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
326 action="#{Session.displayTitle.actionEditWitness}" |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
327 rendered="#{Session.canEdit}" /> |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
328 |
|
ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
329 |
| 7 | 330 </h:panelGrid> |
| 331 </h:panelGrid> | |
| 332 </ui:define> | |
| 333 </ui:composition> | |
| 334 </body> | |
| 335 | |
| 336 </html> |
