Mercurial > hg > ismi-richfaces
comparison src/main/webapp/search/displayAuthor.xhtml @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children | e07a1ae515b7 |
comparison
equal
deleted
inserted
replaced
6:ded3bccf2cf9 | 7:764f47286679 |
---|---|
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 | |
16 <div id="pageTitle"> | |
17 <h:outputText | |
18 value="Person [#{Session.displayAuthor.selectedAuthorId}]" /> | |
19 </div> | |
20 | |
21 <h:panelGrid columns="1" styleClass="mainPanel"> | |
22 | |
23 | |
24 | |
25 <h:commandButton title="Edit This Entity" value="Edit form" | |
26 image="#{ApplicationBean1.editImage}" | |
27 action="#{Session.displayAuthor.actionEditAuthor}" | |
28 rendered="#{Session.canEdit}" /> | |
29 | |
30 | |
31 <h:panelGrid columns="2" styleClass="displayPanel" | |
32 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
33 | |
34 <h:outputText value="Permission" /> | |
35 | |
36 <h:panelGrid columns="2"> | |
37 <h:outputText value="#{Session.displayAuthor.author.privacity} - " /> | |
38 <h:commandLink value="change" rendered="#{Session.user != null}" | |
39 actionListener="#{Session.displayAuthor.changePrivacity4Person}" | |
40 onclick="if(!confirm('Do you really want to change the privacity of this person?')){ return; };" /> | |
41 </h:panelGrid> | |
42 | |
43 <h:outputText value="Full name of author" /> | |
44 <h:panelGrid columns="1"> | |
45 <h:outputText value="#{Session.displayAuthor.author.name}" /> | |
46 <h:outputText value="#{Session.displayAuthor.author.nameTranslit}" /> | |
47 </h:panelGrid> | |
48 | |
49 <h:outputText value="Prime Alias" /> | |
50 <h:outputText value="#{Session.displayAuthor.author.primeAlias}" /> | |
51 | |
52 <h:outputText value="Aliases" /> | |
53 <h:dataTable var="alias" style="border:none;" | |
54 value="#{Session.displayAuthor.author.aliasList}"> | |
55 <h:column style="border:none;"> | |
56 <h:outputText value="#{alias}" /> | |
57 </h:column> | |
58 </h:dataTable> | |
59 | |
60 <h:outputText value="Date of birth" /> | |
61 <h:outputText value="#{Session.displayAuthor.author.birthDate}" | |
62 escape="false" /> | |
63 | |
64 <h:outputText value="Date of death" /> | |
65 <h:outputText value="#{Session.displayAuthor.author.deathDate}" | |
66 escape="false" /> | |
67 | |
68 <h:outputText value="Born in" /> | |
69 <h:outputText value="#{Session.displayAuthor.author.bornInPlace}" /> | |
70 | |
71 <h:outputText value="Died in" /> | |
72 <h:outputText value="#{Session.displayAuthor.author.diedInPlace}" /> | |
73 | |
74 <h:outputText value="Notes" /> | |
75 <h:outputText value="#{Session.displayAuthor.author.notes}" /> | |
76 | |
77 <h:outputText value="Biography" /> | |
78 <h:panelGrid> | |
79 <h:outputLink target="_blank" | |
80 value="#{Session.displayAuthor.author.url}"> | |
81 <h:outputText value="#{Session.displayAuthor.author.url}" /> | |
82 </h:outputLink> | |
83 </h:panelGrid> | |
84 | |
85 <h:outputText value="Lived in" | |
86 rendered="#{!empty Session.displayAuthor.author.livedInPlaceList}" /> | |
87 <h:dataTable var="item" style="border:none;" | |
88 value="#{Session.displayAuthor.author.livedInPlaceList}" | |
89 rendered="#{!empty Session.displayAuthor.author.livedInPlaceList}"> | |
90 <h:column style="border:none;"> | |
91 <f:facet name="header"> | |
92 <h:outputText value="Place" /> | |
93 </f:facet> | |
94 <h:outputText value="#{item}" /> | |
95 </h:column> | |
96 <h:column style="border:none;"> | |
97 <f:facet name="header"> | |
98 <h:outputText value="Date" /> | |
99 </f:facet> | |
100 <h:outputText | |
101 value="#{Session.displayAuthor.author.livedInPlaceMap[item]}" | |
102 escape="false" /> | |
103 </h:column> | |
104 </h:dataTable> | |
105 | |
106 | |
107 <h:outputText value="Bibliographical References" | |
108 rendered="#{!empty Session.displayAuthor.author.referenceList}" /> | |
109 <rich:dataTable var="item" style="border:none;width: 700px;" | |
110 value="#{Session.displayAuthor.author.referenceList}" | |
111 rendered="#{!empty Session.displayAuthor.author.referenceList}"> | |
112 <h:column> | |
113 <f:facet name="header"> | |
114 <h:outputText value="endnote-id" /> | |
115 </f:facet> | |
116 <h:outputText value="#{item.endnoteId}" /> | |
117 </h:column> | |
118 | |
119 <h:column> | |
120 <f:facet name="header"> | |
121 <h:outputText value="endnote-content" /> | |
122 </f:facet> | |
123 <h:outputText value="#{item.endnoteContent}" /> | |
124 </h:column> | |
125 | |
126 <h:column> | |
127 <f:facet name="header"> | |
128 <h:outputText value="escidoc label" /> | |
129 </f:facet> | |
130 <h:outputText value="#{item.escidocLabel}" escape="false" /> | |
131 </h:column> | |
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 --> | |
148 <h:panelGrid id="titlesPanel" style="width: 100%;"> | |
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 | |
185 <h:commandButton value="edit or view this title" | |
186 action="#{Session.displayAuthor.actionEditTitle}" | |
187 rendered="#{Session.canEdit}" /> | |
188 | |
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 | |
251 <h:outputText value="Bibliographical References" /> | |
252 <h:panelGrid columns="1"> | |
253 <rich:dataTable var="item" style="border:none;width: 700px;" | |
254 value="#{Session.displayAuthor.title.referenceList}" | |
255 rendered="#{!empty Session.displayAuthor.title.referenceList}"> | |
256 | |
257 <h:column> | |
258 <f:facet name="header"> | |
259 <h:outputText value="endnote-id" /> | |
260 </f:facet> | |
261 <h:outputText value="#{item.endnoteId}" /> | |
262 </h:column> | |
263 | |
264 <h:column> | |
265 <f:facet name="header"> | |
266 <h:outputText value="endnote-content" /> | |
267 </f:facet> | |
268 <h:outputText value="#{item.endnoteContent}" /> | |
269 </h:column> | |
270 | |
271 <h:column> | |
272 <f:facet name="header"> | |
273 <h:outputText value="escidoc label" /> | |
274 </f:facet> | |
275 <h:outputText value="#{item.escidocLabel}" escape="false" /> | |
276 </h:column> | |
277 | |
278 <h:column> | |
279 <f:facet name="header"> | |
280 <h:outputText value="additional_information" /> | |
281 </f:facet> | |
282 <h:outputText value="#{item.additionalInf}" /> | |
283 </h:column> | |
284 </rich:dataTable> | |
285 </h:panelGrid> | |
286 | |
287 </h:panelGrid> | |
288 | |
289 <!-- Titles --> | |
290 <h:panelGrid id="witnessesPanel"> | |
291 <a name="witnesses" /> | |
292 <h:outputText | |
293 value="Witnesses (#{Session.displayAuthor.witnessItemsSize})" | |
294 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
295 styleClass="titlePanel" /> | |
296 | |
297 <h:panelGrid columns="1" | |
298 rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}"> | |
299 <h:commandLink value="Make all public" | |
300 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPublic}" | |
301 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
302 <h:commandLink value="Make all private" | |
303 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPrivate}" | |
304 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
305 </h:panelGrid> | |
306 </h:panelGrid> | |
307 | |
308 <rich:dataTable | |
309 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
310 value="#{Session.displayAuthor.witnessItems}" var="witnessItem" | |
311 styleClass="select" rows="10"> | |
312 <rich:column> | |
313 <h:commandLink id="selectItem" | |
314 actionListener="#{Session.displayAuthor.listenerShowWitness0}" | |
315 style="text-decoration:none;"> | |
316 <div class="selectItem" style="#{witnessItem.style}">#{witnessItem.label}</div> | |
317 </h:commandLink> | |
318 </rich:column> | |
319 <f:facet name="footer"> | |
320 <rich:dataScroller id="scroller" rendered="#{Session.displayAuthor.witnessItemsSize > 10}"/> | |
321 </f:facet> | |
322 </rich:dataTable> | |
323 | |
324 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" | |
325 rendered="#{Session.displayAuthor.selectedWitnessId != null}"> | |
326 | |
327 <h:commandButton value="edit or view this witness" | |
328 action="#{Session.displayAuthor.actionEditWitness}" | |
329 rendered="#{Session.canEdit}" /> | |
330 | |
331 <h:panelGrid columns="2" styleClass="displayPanel" | |
332 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
333 | |
334 <h:outputText value="Permission" /> | |
335 <h:panelGrid columns="2"> | |
336 <h:outputText | |
337 value="#{Session.displayAuthor.witness.privacity} - " /> | |
338 <h:commandLink value="change" | |
339 rendered="#{Session.user != null}" | |
340 actionListener="#{Session.displayAuthor.changePrivacity4Witness}" | |
341 onclick="if(!confirm('Do you really want to change the privacity of this witness?')){ return; };" /> | |
342 </h:panelGrid> | |
343 | |
344 <h:outputText value="Witness ID" /> | |
345 <h:outputText value="#{Session.displayAuthor.selectedWitnessId}" /> | |
346 | |
347 <h:outputText value="State" /> | |
348 <h:outputText value="#{Session.displayAuthor.witness.status}" /> | |
349 | |
350 <h:outputText value="Country" /> | |
351 <h:outputText value="#{Session.displayAuthor.witness.country}" /> | |
352 | |
353 <h:outputText value="City" /> | |
354 <h:outputText value="#{Session.displayAuthor.witness.city}" /> | |
355 | |
356 <h:outputText value="Repository" /> | |
357 <h:outputText | |
358 value="#{Session.displayAuthor.witness.repository}" /> | |
359 | |
360 <h:outputText value="Collection" /> | |
361 <h:outputText | |
362 value="#{Session.displayAuthor.witness.collection}" /> | |
363 | |
364 <h:outputText value="Codex Identifier" /> | |
365 <h:outputText value="#{Session.displayAuthor.witness.codex}" /> | |
366 | |
367 <h:outputText value="Codex Owned by" /> | |
368 <h:panelGrid columns="1"> | |
369 <h:dataTable var="item" style="border:none;" | |
370 value="#{Session.displayAuthor.witness.ownedByList}" | |
371 rendered="#{!empty Session.displayAuthor.witness.ownedByList}"> | |
372 <h:column style="border:none;"> | |
373 <f:facet name="header"> | |
374 <h:outputText value="Owner" /> | |
375 </f:facet> | |
376 <h:outputText value="#{item}" /> | |
377 </h:column> | |
378 <h:column style="border:none;"> | |
379 <f:facet name="header"> | |
380 <h:outputText value="Date" /> | |
381 </f:facet> | |
382 <h:outputText | |
383 value="#{Session.displayAuthor.witness.ownedByMap[item]}" | |
384 escape="false" /> | |
385 </h:column> | |
386 </h:dataTable> | |
387 | |
388 </h:panelGrid> | |
389 | |
390 | |
391 <h:outputText value="Codex Read by" /> | |
392 <h:panelGrid columns="1"> | |
393 <h:dataTable var="item" style="border:none;" | |
394 value="#{Session.displayAuthor.witness.readByList}" | |
395 rendered="#{!empty Session.displayAuthor.witness.readByList}"> | |
396 <h:column style="border:none;"> | |
397 <f:facet name="header"> | |
398 <h:outputText value="Reader" /> | |
399 </f:facet> | |
400 <h:outputText value="#{item}" /> | |
401 </h:column> | |
402 <h:column style="border:none;"> | |
403 <f:facet name="header"> | |
404 <h:outputText value="Date" /> | |
405 </f:facet> | |
406 <h:outputText | |
407 value="#{Session.displayAuthor.witness.readByMap[item]}" | |
408 escape="false" /> | |
409 </h:column> | |
410 </h:dataTable> | |
411 </h:panelGrid> | |
412 | |
413 <h:outputText value="Notes on Title and Author" /> | |
414 <h:outputText | |
415 value="#{Session.displayAuthor.witness.notesOnTitleAuthor}" /> | |
416 | |
417 <h:outputText value="Notes on Collation and Corrections" /> | |
418 <h:outputText | |
419 value="#{Session.displayAuthor.witness.notesOnCollationAndCorrections}" /> | |
420 | |
421 <h:outputText value="Notes on Ownership" /> | |
422 <h:outputText | |
423 value="#{Session.displayAuthor.witness.notesOnOwnership}" /> | |
424 | |
425 <h:outputText value="Notes (general)" /> | |
426 <h:outputText value="#{Session.displayAuthor.witness.notes}" /> | |
427 | |
428 <h:outputText value="Table of Contents" /> | |
429 <h:outputText | |
430 value="#{Session.displayAuthor.witness.tableOfContents}" | |
431 escape="false" /> | |
432 | |
433 <h:outputText value="Bibliographical References" /> | |
434 <h:panelGrid columns="1"> | |
435 <rich:dataTable var="item" style="border:none;width: 700px;" | |
436 value="#{Session.displayAuthor.witness.referenceList}" | |
437 rendered="#{!empty Session.displayAuthor.title.referenceList}"> | |
438 | |
439 <h:column> | |
440 <f:facet name="header"> | |
441 <h:outputText value="endnote-id" /> | |
442 </f:facet> | |
443 <h:outputText value="#{item.endnoteId}" /> | |
444 </h:column> | |
445 | |
446 <h:column> | |
447 <f:facet name="header"> | |
448 <h:outputText value="endnote-content" /> | |
449 </f:facet> | |
450 <h:outputText value="#{item.endnoteContent}" /> | |
451 </h:column> | |
452 | |
453 <h:column> | |
454 <f:facet name="header"> | |
455 <h:outputText value="escidoc label" /> | |
456 </f:facet> | |
457 <h:outputText value="#{item.escidocLabel}" escape="false" /> | |
458 </h:column> | |
459 | |
460 <h:column> | |
461 <f:facet name="header"> | |
462 <h:outputText value="additional_information" /> | |
463 </f:facet> | |
464 <h:outputText value="#{item.additionalInf}" /> | |
465 </h:column> | |
466 </rich:dataTable> | |
467 </h:panelGrid> | |
468 | |
469 </h:panelGrid> | |
470 </h:panelGrid> | |
471 | |
472 | |
473 </h:panelGrid> | |
474 | |
475 | |
476 </h:panelGrid> | |
477 | |
478 | |
479 | |
480 | |
481 </h:panelGrid> | |
482 | |
483 | |
484 </ui:define> | |
485 | |
486 </ui:composition> | |
487 </body> | |
488 </html> |