Mercurial > hg > ismi-richfaces
annotate src/main/webapp/search/displayAuthor.xhtml @ 74:a58e6b2fb87f
move "witnesses with scans" button.
author | casties |
---|---|
date | Thu, 07 Jan 2016 16:26:48 +0100 |
parents | 70207f24937e |
children | ca36b24a22f7 |
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> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
10 |
7 | 11 <ui:composition template="/templates/publicTemplate.xhtml"> |
12 | |
13 <ui:define name="publicContent"> | |
14 | |
15 <h:outputStylesheet name="/css/ismi-db/display.css" /> | |
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 |
20 <div id="pageTitle"> | |
21 <h:outputText | |
22 value="Person [#{Session.displayAuthor.selectedAuthorId}]" /> | |
23 </div> | |
24 | |
25 <h:panelGrid columns="1" styleClass="mainPanel"> | |
26 | |
27 | |
28 | |
29 <h:commandButton title="Edit This Entity" value="Edit form" | |
30 image="#{ApplicationBean1.editImage}" | |
31 action="#{Session.displayAuthor.actionEditAuthor}" | |
32 rendered="#{Session.canEdit}" /> | |
33 | |
34 | |
35 <h:panelGrid columns="2" styleClass="displayPanel" | |
36 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
37 | |
38 <h:outputText value="Permission" /> | |
39 | |
40 <h:panelGrid columns="2"> | |
41 <h:outputText value="#{Session.displayAuthor.author.privacity} - " /> | |
42 <h:commandLink value="change" rendered="#{Session.user != null}" | |
43 actionListener="#{Session.displayAuthor.changePrivacity4Person}" | |
44 onclick="if(!confirm('Do you really want to change the privacity of this person?')){ return; };" /> | |
45 </h:panelGrid> | |
46 | |
47 <h:outputText value="Full name of author" /> | |
48 <h:panelGrid columns="1"> | |
49 <h:outputText value="#{Session.displayAuthor.author.name}" /> | |
50 <h:outputText value="#{Session.displayAuthor.author.nameTranslit}" /> | |
51 </h:panelGrid> | |
52 | |
53 <h:outputText value="Prime Alias" /> | |
54 <h:outputText value="#{Session.displayAuthor.author.primeAlias}" /> | |
55 | |
56 <h:outputText value="Aliases" /> | |
57 <h:dataTable var="alias" style="border:none;" | |
58 value="#{Session.displayAuthor.author.aliasList}"> | |
59 <h:column style="border:none;"> | |
60 <h:outputText value="#{alias}" /> | |
61 </h:column> | |
62 </h:dataTable> | |
63 | |
64 <h:outputText value="Date of birth" /> | |
65 <h:outputText value="#{Session.displayAuthor.author.birthDate}" | |
66 escape="false" /> | |
67 | |
68 <h:outputText value="Date of death" /> | |
69 <h:outputText value="#{Session.displayAuthor.author.deathDate}" | |
70 escape="false" /> | |
71 | |
72 <h:outputText value="Born in" /> | |
73 <h:outputText value="#{Session.displayAuthor.author.bornInPlace}" /> | |
74 | |
75 <h:outputText value="Died in" /> | |
76 <h:outputText value="#{Session.displayAuthor.author.diedInPlace}" /> | |
77 | |
78 <h:outputText value="Notes" /> | |
79 <h:outputText value="#{Session.displayAuthor.author.notes}" /> | |
80 | |
81 <h:outputText value="Biography" /> | |
82 <h:panelGrid> | |
83 <h:outputLink target="_blank" | |
84 value="#{Session.displayAuthor.author.url}"> | |
85 <h:outputText value="#{Session.displayAuthor.author.url}" /> | |
86 </h:outputLink> | |
87 </h:panelGrid> | |
88 | |
89 <h:outputText value="Lived in" | |
90 rendered="#{!empty Session.displayAuthor.author.livedInPlaceList}" /> | |
91 <h:dataTable var="item" style="border:none;" | |
92 value="#{Session.displayAuthor.author.livedInPlaceList}" | |
93 rendered="#{!empty Session.displayAuthor.author.livedInPlaceList}"> | |
94 <h:column style="border:none;"> | |
95 <f:facet name="header"> | |
96 <h:outputText value="Place" /> | |
97 </f:facet> | |
98 <h:outputText value="#{item}" /> | |
99 </h:column> | |
100 <h:column style="border:none;"> | |
101 <f:facet name="header"> | |
102 <h:outputText value="Date" /> | |
103 </f:facet> | |
104 <h:outputText | |
105 value="#{Session.displayAuthor.author.livedInPlaceMap[item]}" | |
106 escape="false" /> | |
107 </h:column> | |
108 </h:dataTable> | |
109 | |
110 | |
111 <h:outputText value="Bibliographical References" | |
112 rendered="#{!empty Session.displayAuthor.author.referenceList}" /> | |
113 <rich:dataTable var="item" style="border:none;width: 700px;" | |
114 value="#{Session.displayAuthor.author.referenceList}" | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
115 rendered="#{!empty Session.displayAuthor.author.referenceList}" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
116 rowKeyVar="cnt"> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
117 |
7 | 118 <h:column> |
119 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
120 <h:outputText value="Reference id" /> |
7 | 121 </f:facet> |
122 <h:outputText value="#{item.endnoteId}" /> | |
123 </h:column> | |
124 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
125 <h:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
126 <f:facet name="header"> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
127 <h:outputText value="Reference display (Drupal)" /> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
128 </f:facet> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
129 <script>showBibliographyEntryFormatted("#{item.endnoteId}", null, "#bibl-entry-person-#{cnt}")</script> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
130 <span id="bibl-entry-person-#{cnt}">(loading reference...)</span> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
131 </h:column> |
7 | 132 |
133 <h:column> | |
134 <f:facet name="header"> | |
135 <h:outputText value="additional_information" /> | |
136 </f:facet> | |
137 <h:outputText value="#{item.additionalInf}" /> | |
138 </h:column> | |
139 | |
140 </rich:dataTable> | |
141 | |
142 | |
143 </h:panelGrid> | |
144 | |
145 | |
146 | |
147 <!-- Titles --> | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
148 <h:panelGrid id="titlesPanel" style="width:100%;"> |
7 | 149 |
150 <a name="titles" /> | |
151 <h:outputText | |
152 value="Titles (#{Session.displayAuthor.titleItemsSize})" | |
153 rendered="#{!empty Session.displayAuthor.titleItems}" | |
154 styleClass="titlePanel" /> | |
155 | |
156 <h:panelGrid columns="1" | |
157 rendered="#{(!empty Session.displayAuthor.titleItems) and Session.user != null }"> | |
158 <a4j:commandLink value="Make all public" | |
159 actionListener="#{Session.displayAuthor.listenerMakeAllTitlesPublic}" | |
160 onclick="if(!confirm('Do you really want to change the privacity these titles?\nThis action can take some minutes.')){ return; };" | |
161 render="titleSelectOneListBox,titlePanel" /> | |
162 <a4j:commandLink value="Make all private" | |
163 actionListener="#{Session.displayAuthor.listenerMakeAllTitlesPrivate}" | |
164 onclick="if(!confirm('Do you really want to change the privacity these titles?\nThis action can take some minutes.')){ return; };" | |
165 render="titleSelectOneListBox,titlePanel" /> | |
166 </h:panelGrid> | |
167 | |
168 | |
169 <rich:dataTable | |
170 rendered="#{!empty Session.displayAuthor.titleItems}" | |
171 value="#{Session.displayAuthor.titleItems}" var="titleItem" | |
172 styleClass="select"> | |
173 <rich:column> | |
174 <h:commandLink id="selectItem" style="text-decoration:none;" | |
175 actionListener="#{Session.displayAuthor.listenerShowTitle0}" | |
176 render="titlesPanel"> | |
177 <div class="selectItem" style="#{titleItem.style}">#{titleItem.label}</div> | |
178 </h:commandLink> | |
179 </rich:column> | |
180 </rich:dataTable> | |
181 | |
182 <h:panelGrid id="titlePanel" columns="1" style="width: 100%;" | |
183 rendered="#{Session.displayAuthor.selectedTitleId != null}"> | |
184 | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
185 <h:outputText |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
186 value="Title [#{Session.displayAuthor.selectedTitleId}]: #{Session.displayAuthor.title.ov}" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
187 styleClass="titlePanel" /> |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
188 |
7 | 189 <h:panelGrid columns="2" styleClass="displayPanel" |
190 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
191 | |
192 <h:outputText value="Permission" /> | |
193 <h:panelGrid columns="2"> | |
194 <h:outputText | |
195 value="#{Session.displayAuthor.title.privacity} - " /> | |
196 <h:commandLink value="change" rendered="#{Session.user != null}" | |
197 actionListener="#{Session.displayAuthor.changePrivacity4Title}" | |
198 onclick="if(!confirm('Do you really want to change the privacity of this title?')){ return; };" /> | |
199 </h:panelGrid> | |
200 | |
201 <h:outputText value="Title ID" /> | |
202 <h:outputText value="#{Session.displayAuthor.selectedTitleId}" /> | |
203 | |
204 <h:outputText value="Full title" /> | |
205 <h:outputText value="#{Session.displayAuthor.title.fullTitle}" /> | |
206 | |
207 <h:outputText value="Full title (translit)" /> | |
208 <h:outputText | |
209 value="#{Session.displayAuthor.title.fullTitleTranslit}" /> | |
210 | |
211 <h:outputText value="Aliases" /> | |
212 <h:dataTable var="aliasTitle" style="border:none;" | |
213 value="#{Session.displayAuthor.title.aliasList}"> | |
214 <h:column style="border:none;"> | |
215 <h:outputText value="#{aliasTitle}" /> | |
216 </h:column> | |
217 </h:dataTable> | |
218 | |
219 <h:outputText value="Date" /> | |
220 <h:outputText value="#{Session.displayAuthor.title.creationDate}" | |
221 escape="false" /> | |
222 | |
223 <h:outputText value="Create in" /> | |
224 <h:outputText value="#{Session.displayAuthor.title.createIn}" /> | |
225 | |
226 <h:outputText value="Language" /> | |
227 <h:outputText value="#{Session.displayAuthor.title.language}" /> | |
228 | |
229 <h:outputText value="Subject" /> | |
230 <h:outputText value="#{Session.displayAuthor.title.category}" /> | |
231 | |
232 <h:outputText value="Notes" /> | |
233 <h:outputText value="#{Session.displayAuthor.title.notes}" /> | |
234 | |
235 <h:outputText value="Incipit" /> | |
236 <h:outputText value="#{Session.displayAuthor.title.incipit}" /> | |
237 | |
238 <h:outputText value="Explicit" /> | |
239 <h:outputText value="#{Session.displayAuthor.title.explicit}" | |
240 dir="RTL" /> | |
241 | |
242 <h:outputText value="Dedication" /> | |
243 <h:outputText value="#{Session.displayAuthor.title.dedication}" | |
244 dir="RTL" /> | |
245 | |
246 <h:outputText value="Table of Contents" /> | |
247 <h:outputText | |
248 value="#{Session.displayAuthor.title.tableOfContents}" | |
249 escape="false" /> | |
250 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
251 <h:outputText value="Bibliographical References" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
252 rendered="#{!empty Session.displayAuthor.title.referenceList}"/> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
253 <h:panelGrid columns="1" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
254 rendered="#{!empty Session.displayAuthor.title.referenceList}" > |
7 | 255 <rich:dataTable var="item" style="border:none;width: 700px;" |
256 value="#{Session.displayAuthor.title.referenceList}" | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
257 rendered="#{!empty Session.displayAuthor.title.referenceList}" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
258 rowKeyVar="cnt"> |
7 | 259 |
260 <h:column> | |
261 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
262 <h:outputText value="Reference id" /> |
7 | 263 </f:facet> |
264 <h:outputText value="#{item.endnoteId}" /> | |
265 </h:column> | |
266 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
267 <h:column> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
268 <f:facet name="header"> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
269 <h:outputText value="Reference display (Drupal)" /> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
270 </f:facet> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
271 <script>showBibliographyEntryFormatted("#{item.endnoteId}", null, "#bibl-entry-text-#{cnt}")</script> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
272 <span id="bibl-entry-text-#{cnt}">(loading reference...)</span> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
273 </h:column> |
7 | 274 |
275 <h:column> | |
276 <f:facet name="header"> | |
277 <h:outputText value="additional_information" /> | |
278 </f:facet> | |
279 <h:outputText value="#{item.additionalInf}" /> | |
280 </h:column> | |
281 </rich:dataTable> | |
282 </h:panelGrid> | |
283 | |
284 </h:panelGrid> | |
285 | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
286 <h:commandButton value="edit this title" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
287 action="#{Session.displayAuthor.actionEditTitle}" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
288 rendered="#{Session.canEdit}" /> |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
289 |
74 | 290 <!-- WITNESS with scans --> |
291 <h:panelGrid columns="3"> | |
292 <h:selectBooleanCheckbox value="#{Session.displayAuthor.showWitnessesWithScans}"/> | |
293 <h:outputText value="Show only witnesses with scans"/> | |
294 <h:commandButton value="Change" | |
295 action="#{Session.displayAuthor.changeShowWitnessesWithScans}"/> | |
296 </h:panelGrid> | |
297 | |
298 <!-- no WITNESS --> | |
299 <h:outputText value="No known witnesses" | |
300 rendered="#{empty Session.displayAuthor.witnessItems}" | |
301 styleClass="titlePanel" /> | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
302 |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
303 <!-- WITNESS --> |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
304 <h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayAuthor.witnessItems}"> |
7 | 305 <a name="witnesses" /> |
306 <h:outputText | |
307 value="Witnesses (#{Session.displayAuthor.witnessItemsSize})" | |
308 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
309 styleClass="titlePanel" /> | |
310 | |
311 <h:panelGrid columns="1" | |
312 rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}"> | |
313 <h:commandLink value="Make all public" | |
314 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPublic}" | |
315 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
316 <h:commandLink value="Make all private" | |
317 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPrivate}" | |
318 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
319 </h:panelGrid> | |
320 </h:panelGrid> | |
321 | |
322 <rich:dataTable | |
323 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
324 value="#{Session.displayAuthor.witnessItems}" var="witnessItem" | |
325 styleClass="select" rows="10"> | |
326 <rich:column> | |
327 <h:commandLink id="selectItem" | |
328 actionListener="#{Session.displayAuthor.listenerShowWitness0}" | |
329 style="text-decoration:none;"> | |
330 <div class="selectItem" style="#{witnessItem.style}">#{witnessItem.label}</div> | |
331 </h:commandLink> | |
332 </rich:column> | |
333 <f:facet name="footer"> | |
334 <rich:dataScroller id="scroller" rendered="#{Session.displayAuthor.witnessItemsSize > 10}"/> | |
335 </f:facet> | |
336 </rich:dataTable> | |
337 | |
338 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" | |
339 rendered="#{Session.displayAuthor.selectedWitnessId != null}"> | |
340 | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
341 <h:outputText |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
342 value="Witness [#{Session.displayAuthor.selectedWitnessId}]: #{Session.displayAuthor.witness.ov}" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
343 styleClass="titlePanel" /> |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
344 |
7 | 345 <h:panelGrid columns="2" styleClass="displayPanel" |
346 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
347 | |
348 <h:outputText value="Permission" /> | |
349 <h:panelGrid columns="2"> | |
350 <h:outputText | |
351 value="#{Session.displayAuthor.witness.privacity} - " /> | |
352 <h:commandLink value="change" | |
353 rendered="#{Session.user != null}" | |
354 actionListener="#{Session.displayAuthor.changePrivacity4Witness}" | |
355 onclick="if(!confirm('Do you really want to change the privacity of this witness?')){ return; };" /> | |
356 </h:panelGrid> | |
357 | |
358 <h:outputText value="Witness ID" /> | |
359 <h:outputText value="#{Session.displayAuthor.selectedWitnessId}" /> | |
360 | |
361 <h:outputText value="State" /> | |
362 <h:outputText value="#{Session.displayAuthor.witness.status}" /> | |
363 | |
364 <h:outputText value="Country" /> | |
365 <h:outputText value="#{Session.displayAuthor.witness.country}" /> | |
366 | |
367 <h:outputText value="City" /> | |
368 <h:outputText value="#{Session.displayAuthor.witness.city}" /> | |
369 | |
370 <h:outputText value="Repository" /> | |
371 <h:outputText | |
372 value="#{Session.displayAuthor.witness.repository}" /> | |
373 | |
374 <h:outputText value="Collection" /> | |
375 <h:outputText | |
376 value="#{Session.displayAuthor.witness.collection}" /> | |
377 | |
378 <h:outputText value="Codex Identifier" /> | |
379 <h:outputText value="#{Session.displayAuthor.witness.codex}" /> | |
380 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
381 <h:outputText value="Witness Owned by" /> |
7 | 382 <h:panelGrid columns="1"> |
383 <h:dataTable var="item" style="border:none;" | |
384 value="#{Session.displayAuthor.witness.ownedByList}" | |
385 rendered="#{!empty Session.displayAuthor.witness.ownedByList}"> | |
386 <h:column style="border:none;"> | |
387 <f:facet name="header"> | |
388 <h:outputText value="Owner" /> | |
389 </f:facet> | |
390 <h:outputText value="#{item}" /> | |
391 </h:column> | |
392 <h:column style="border:none;"> | |
393 <f:facet name="header"> | |
394 <h:outputText value="Date" /> | |
395 </f:facet> | |
396 <h:outputText | |
397 value="#{Session.displayAuthor.witness.ownedByMap[item]}" | |
398 escape="false" /> | |
399 </h:column> | |
400 </h:dataTable> | |
401 </h:panelGrid> | |
402 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
403 <h:outputText value="Witness Read by" /> |
7 | 404 <h:panelGrid columns="1"> |
405 <h:dataTable var="item" style="border:none;" | |
406 value="#{Session.displayAuthor.witness.readByList}" | |
407 rendered="#{!empty Session.displayAuthor.witness.readByList}"> | |
408 <h:column style="border:none;"> | |
409 <f:facet name="header"> | |
410 <h:outputText value="Reader" /> | |
411 </f:facet> | |
412 <h:outputText value="#{item}" /> | |
413 </h:column> | |
414 <h:column style="border:none;"> | |
415 <f:facet name="header"> | |
416 <h:outputText value="Date" /> | |
417 </f:facet> | |
418 <h:outputText | |
419 value="#{Session.displayAuthor.witness.readByMap[item]}" | |
420 escape="false" /> | |
421 </h:column> | |
422 </h:dataTable> | |
423 </h:panelGrid> | |
424 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
9
diff
changeset
|
425 <h:outputText value="Scans" /> |
54 | 426 <h:outputLink rendered="#{!empty Session.displayAuthor.witness.scanViewer}" |
427 value="#{request.contextPath}#{Session.displayAuthor.witness.scanViewer}" | |
428 target="_blank"> | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
9
diff
changeset
|
429 See witness scans |
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
9
diff
changeset
|
430 </h:outputLink> |
54 | 431 <h:outputText rendered="#{empty Session.displayAuthor.witness.scanViewer}"/> |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
9
diff
changeset
|
432 |
9 | 433 <h:outputText value="Notes" /> |
7 | 434 <h:outputText value="#{Session.displayAuthor.witness.notes}" /> |
435 | |
436 <h:outputText value="Table of Contents" /> | |
437 <h:outputText | |
438 value="#{Session.displayAuthor.witness.tableOfContents}" | |
439 escape="false" /> | |
440 | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
441 <h:outputText value="Bibliographical References" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
442 rendered="#{!empty Session.displayAuthor.witness.referenceList}" /> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
443 <h:panelGrid columns="1" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
444 rendered="#{!empty Session.displayAuthor.witness.referenceList}"> |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
445 <rich:dataTable var="item" style="border:none; width:700px;" |
7 | 446 value="#{Session.displayAuthor.witness.referenceList}" |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
447 rendered="#{!empty Session.displayAuthor.witness.referenceList}" |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
448 rowKeyVar="cnt"> |
7 | 449 |
450 <h:column> | |
451 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
452 <h:outputText value="Reference id" /> |
7 | 453 </f:facet> |
454 <h:outputText value="#{item.endnoteId}" /> | |
455 </h:column> | |
456 | |
457 <h:column> | |
458 <f:facet name="header"> | |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
459 <h:outputText value="Reference display (Drupal)" /> |
7 | 460 </f:facet> |
70
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
461 <script>showBibliographyEntryFormatted("#{item.endnoteId}", null, "#bibl-entry-witness-#{cnt}")</script> |
954d6200336d
display live reference from Drupal in edit form (ticket #71).
casties
parents:
60
diff
changeset
|
462 <span id="bibl-entry-witness-#{cnt}">(loading reference...)</span> |
7 | 463 </h:column> |
464 | |
465 <h:column> | |
466 <f:facet name="header"> | |
467 <h:outputText value="additional_information" /> | |
468 </f:facet> | |
469 <h:outputText value="#{item.additionalInf}" /> | |
470 </h:column> | |
471 </rich:dataTable> | |
472 </h:panelGrid> | |
473 | |
474 </h:panelGrid> | |
72
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
475 |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
476 <h:commandButton value="edit this witness" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
477 action="#{Session.displayAuthor.actionEditWitness}" |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
478 rendered="#{Session.canEdit}" /> |
70207f24937e
cleaned displayAuthor. added filter for witnesses with scans.
casties
parents:
70
diff
changeset
|
479 |
7 | 480 </h:panelGrid> |
481 | |
482 | |
483 </h:panelGrid> | |
484 | |
485 | |
486 </h:panelGrid> | |
487 | |
488 | |
489 | |
490 | |
491 </h:panelGrid> | |
492 | |
493 | |
494 </ui:define> | |
495 | |
496 </ui:composition> | |
497 </body> | |
498 </html> |