Mercurial > hg > ismi-richfaces
annotate src/main/webapp/search/displayAuthor.xhtml @ 60:4ec8d4cfad26 remove_escidoc
remove old PubMan/escidoc code.
author | casties |
---|---|
date | Mon, 30 Nov 2015 15:38:09 +0100 |
parents | 2e7447712fd1 |
children | 954d6200336d |
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 | |
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="additional_information" /> | |
129 </f:facet> | |
130 <h:outputText value="#{item.additionalInf}" /> | |
131 </h:column> | |
132 | |
133 </rich:dataTable> | |
134 | |
135 | |
136 </h:panelGrid> | |
137 | |
138 | |
139 | |
140 <!-- Titles --> | |
141 <h:panelGrid id="titlesPanel" style="width: 100%;"> | |
142 | |
143 <a name="titles" /> | |
144 <h:outputText | |
145 value="Titles (#{Session.displayAuthor.titleItemsSize})" | |
146 rendered="#{!empty Session.displayAuthor.titleItems}" | |
147 styleClass="titlePanel" /> | |
148 | |
149 <h:panelGrid columns="1" | |
150 rendered="#{(!empty Session.displayAuthor.titleItems) and Session.user != null }"> | |
151 <a4j:commandLink value="Make all public" | |
152 actionListener="#{Session.displayAuthor.listenerMakeAllTitlesPublic}" | |
153 onclick="if(!confirm('Do you really want to change the privacity these titles?\nThis action can take some minutes.')){ return; };" | |
154 render="titleSelectOneListBox,titlePanel" /> | |
155 <a4j:commandLink value="Make all private" | |
156 actionListener="#{Session.displayAuthor.listenerMakeAllTitlesPrivate}" | |
157 onclick="if(!confirm('Do you really want to change the privacity these titles?\nThis action can take some minutes.')){ return; };" | |
158 render="titleSelectOneListBox,titlePanel" /> | |
159 </h:panelGrid> | |
160 | |
161 | |
162 <rich:dataTable | |
163 rendered="#{!empty Session.displayAuthor.titleItems}" | |
164 value="#{Session.displayAuthor.titleItems}" var="titleItem" | |
165 styleClass="select"> | |
166 <rich:column> | |
167 <h:commandLink id="selectItem" style="text-decoration:none;" | |
168 actionListener="#{Session.displayAuthor.listenerShowTitle0}" | |
169 render="titlesPanel"> | |
170 <div class="selectItem" style="#{titleItem.style}">#{titleItem.label}</div> | |
171 </h:commandLink> | |
172 </rich:column> | |
173 </rich:dataTable> | |
174 | |
175 <h:panelGrid id="titlePanel" columns="1" style="width: 100%;" | |
176 rendered="#{Session.displayAuthor.selectedTitleId != null}"> | |
177 | |
178 <h:commandButton value="edit or view this title" | |
179 action="#{Session.displayAuthor.actionEditTitle}" | |
180 rendered="#{Session.canEdit}" /> | |
181 | |
182 <h:panelGrid columns="2" styleClass="displayPanel" | |
183 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
184 | |
185 <h:outputText value="Permission" /> | |
186 <h:panelGrid columns="2"> | |
187 <h:outputText | |
188 value="#{Session.displayAuthor.title.privacity} - " /> | |
189 <h:commandLink value="change" rendered="#{Session.user != null}" | |
190 actionListener="#{Session.displayAuthor.changePrivacity4Title}" | |
191 onclick="if(!confirm('Do you really want to change the privacity of this title?')){ return; };" /> | |
192 </h:panelGrid> | |
193 | |
194 <h:outputText value="Title ID" /> | |
195 <h:outputText value="#{Session.displayAuthor.selectedTitleId}" /> | |
196 | |
197 <h:outputText value="Full title" /> | |
198 <h:outputText value="#{Session.displayAuthor.title.fullTitle}" /> | |
199 | |
200 <h:outputText value="Full title (translit)" /> | |
201 <h:outputText | |
202 value="#{Session.displayAuthor.title.fullTitleTranslit}" /> | |
203 | |
204 <h:outputText value="Aliases" /> | |
205 <h:dataTable var="aliasTitle" style="border:none;" | |
206 value="#{Session.displayAuthor.title.aliasList}"> | |
207 <h:column style="border:none;"> | |
208 <h:outputText value="#{aliasTitle}" /> | |
209 </h:column> | |
210 </h:dataTable> | |
211 | |
212 <h:outputText value="Date" /> | |
213 <h:outputText value="#{Session.displayAuthor.title.creationDate}" | |
214 escape="false" /> | |
215 | |
216 <h:outputText value="Create in" /> | |
217 <h:outputText value="#{Session.displayAuthor.title.createIn}" /> | |
218 | |
219 <h:outputText value="Language" /> | |
220 <h:outputText value="#{Session.displayAuthor.title.language}" /> | |
221 | |
222 <h:outputText value="Subject" /> | |
223 <h:outputText value="#{Session.displayAuthor.title.category}" /> | |
224 | |
225 <h:outputText value="Notes" /> | |
226 <h:outputText value="#{Session.displayAuthor.title.notes}" /> | |
227 | |
228 <h:outputText value="Incipit" /> | |
229 <h:outputText value="#{Session.displayAuthor.title.incipit}" /> | |
230 | |
231 <h:outputText value="Explicit" /> | |
232 <h:outputText value="#{Session.displayAuthor.title.explicit}" | |
233 dir="RTL" /> | |
234 | |
235 <h:outputText value="Dedication" /> | |
236 <h:outputText value="#{Session.displayAuthor.title.dedication}" | |
237 dir="RTL" /> | |
238 | |
239 <h:outputText value="Table of Contents" /> | |
240 <h:outputText | |
241 value="#{Session.displayAuthor.title.tableOfContents}" | |
242 escape="false" /> | |
243 | |
244 <h:outputText value="Bibliographical References" /> | |
245 <h:panelGrid columns="1"> | |
246 <rich:dataTable var="item" style="border:none;width: 700px;" | |
247 value="#{Session.displayAuthor.title.referenceList}" | |
248 rendered="#{!empty Session.displayAuthor.title.referenceList}"> | |
249 | |
250 <h:column> | |
251 <f:facet name="header"> | |
252 <h:outputText value="endnote-id" /> | |
253 </f:facet> | |
254 <h:outputText value="#{item.endnoteId}" /> | |
255 </h:column> | |
256 | |
257 <h:column> | |
258 <f:facet name="header"> | |
259 <h:outputText value="endnote-content" /> | |
260 </f:facet> | |
261 <h:outputText value="#{item.endnoteContent}" /> | |
262 </h:column> | |
263 | |
264 <h:column> | |
265 <f:facet name="header"> | |
266 <h:outputText value="additional_information" /> | |
267 </f:facet> | |
268 <h:outputText value="#{item.additionalInf}" /> | |
269 </h:column> | |
270 </rich:dataTable> | |
271 </h:panelGrid> | |
272 | |
273 </h:panelGrid> | |
274 | |
275 <!-- Titles --> | |
276 <h:panelGrid id="witnessesPanel"> | |
277 <a name="witnesses" /> | |
278 <h:outputText | |
279 value="Witnesses (#{Session.displayAuthor.witnessItemsSize})" | |
280 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
281 styleClass="titlePanel" /> | |
282 | |
283 <h:panelGrid columns="1" | |
284 rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}"> | |
285 <h:commandLink value="Make all public" | |
286 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPublic}" | |
287 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
288 <h:commandLink value="Make all private" | |
289 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPrivate}" | |
290 onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" /> | |
291 </h:panelGrid> | |
292 </h:panelGrid> | |
293 | |
294 <rich:dataTable | |
295 rendered="#{!empty Session.displayAuthor.witnessItems}" | |
296 value="#{Session.displayAuthor.witnessItems}" var="witnessItem" | |
297 styleClass="select" rows="10"> | |
298 <rich:column> | |
299 <h:commandLink id="selectItem" | |
300 actionListener="#{Session.displayAuthor.listenerShowWitness0}" | |
301 style="text-decoration:none;"> | |
302 <div class="selectItem" style="#{witnessItem.style}">#{witnessItem.label}</div> | |
303 </h:commandLink> | |
304 </rich:column> | |
305 <f:facet name="footer"> | |
306 <rich:dataScroller id="scroller" rendered="#{Session.displayAuthor.witnessItemsSize > 10}"/> | |
307 </f:facet> | |
308 </rich:dataTable> | |
309 | |
310 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" | |
311 rendered="#{Session.displayAuthor.selectedWitnessId != null}"> | |
312 | |
313 <h:commandButton value="edit or view this witness" | |
314 action="#{Session.displayAuthor.actionEditWitness}" | |
315 rendered="#{Session.canEdit}" /> | |
316 | |
317 <h:panelGrid columns="2" styleClass="displayPanel" | |
318 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
319 | |
320 <h:outputText value="Permission" /> | |
321 <h:panelGrid columns="2"> | |
322 <h:outputText | |
323 value="#{Session.displayAuthor.witness.privacity} - " /> | |
324 <h:commandLink value="change" | |
325 rendered="#{Session.user != null}" | |
326 actionListener="#{Session.displayAuthor.changePrivacity4Witness}" | |
327 onclick="if(!confirm('Do you really want to change the privacity of this witness?')){ return; };" /> | |
328 </h:panelGrid> | |
329 | |
330 <h:outputText value="Witness ID" /> | |
331 <h:outputText value="#{Session.displayAuthor.selectedWitnessId}" /> | |
332 | |
333 <h:outputText value="State" /> | |
334 <h:outputText value="#{Session.displayAuthor.witness.status}" /> | |
335 | |
336 <h:outputText value="Country" /> | |
337 <h:outputText value="#{Session.displayAuthor.witness.country}" /> | |
338 | |
339 <h:outputText value="City" /> | |
340 <h:outputText value="#{Session.displayAuthor.witness.city}" /> | |
341 | |
342 <h:outputText value="Repository" /> | |
343 <h:outputText | |
344 value="#{Session.displayAuthor.witness.repository}" /> | |
345 | |
346 <h:outputText value="Collection" /> | |
347 <h:outputText | |
348 value="#{Session.displayAuthor.witness.collection}" /> | |
349 | |
350 <h:outputText value="Codex Identifier" /> | |
351 <h:outputText value="#{Session.displayAuthor.witness.codex}" /> | |
352 | |
353 <h:outputText value="Codex Owned by" /> | |
354 <h:panelGrid columns="1"> | |
355 <h:dataTable var="item" style="border:none;" | |
356 value="#{Session.displayAuthor.witness.ownedByList}" | |
357 rendered="#{!empty Session.displayAuthor.witness.ownedByList}"> | |
358 <h:column style="border:none;"> | |
359 <f:facet name="header"> | |
360 <h:outputText value="Owner" /> | |
361 </f:facet> | |
362 <h:outputText value="#{item}" /> | |
363 </h:column> | |
364 <h:column style="border:none;"> | |
365 <f:facet name="header"> | |
366 <h:outputText value="Date" /> | |
367 </f:facet> | |
368 <h:outputText | |
369 value="#{Session.displayAuthor.witness.ownedByMap[item]}" | |
370 escape="false" /> | |
371 </h:column> | |
372 </h:dataTable> | |
373 | |
374 </h:panelGrid> | |
375 | |
376 | |
377 <h:outputText value="Codex Read by" /> | |
378 <h:panelGrid columns="1"> | |
379 <h:dataTable var="item" style="border:none;" | |
380 value="#{Session.displayAuthor.witness.readByList}" | |
381 rendered="#{!empty Session.displayAuthor.witness.readByList}"> | |
382 <h:column style="border:none;"> | |
383 <f:facet name="header"> | |
384 <h:outputText value="Reader" /> | |
385 </f:facet> | |
386 <h:outputText value="#{item}" /> | |
387 </h:column> | |
388 <h:column style="border:none;"> | |
389 <f:facet name="header"> | |
390 <h:outputText value="Date" /> | |
391 </f:facet> | |
392 <h:outputText | |
393 value="#{Session.displayAuthor.witness.readByMap[item]}" | |
394 escape="false" /> | |
395 </h:column> | |
396 </h:dataTable> | |
397 </h:panelGrid> | |
398 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
9
diff
changeset
|
399 <h:outputText value="Scans" /> |
54 | 400 <h:outputLink rendered="#{!empty Session.displayAuthor.witness.scanViewer}" |
401 value="#{request.contextPath}#{Session.displayAuthor.witness.scanViewer}" | |
402 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
|
403 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
|
404 </h:outputLink> |
54 | 405 <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
|
406 |
9 | 407 <h:outputText value="Notes" /> |
7 | 408 <h:outputText value="#{Session.displayAuthor.witness.notes}" /> |
409 | |
410 <h:outputText value="Table of Contents" /> | |
411 <h:outputText | |
412 value="#{Session.displayAuthor.witness.tableOfContents}" | |
413 escape="false" /> | |
414 | |
415 <h:outputText value="Bibliographical References" /> | |
416 <h:panelGrid columns="1"> | |
417 <rich:dataTable var="item" style="border:none;width: 700px;" | |
418 value="#{Session.displayAuthor.witness.referenceList}" | |
419 rendered="#{!empty Session.displayAuthor.title.referenceList}"> | |
420 | |
421 <h:column> | |
422 <f:facet name="header"> | |
423 <h:outputText value="endnote-id" /> | |
424 </f:facet> | |
425 <h:outputText value="#{item.endnoteId}" /> | |
426 </h:column> | |
427 | |
428 <h:column> | |
429 <f:facet name="header"> | |
430 <h:outputText value="endnote-content" /> | |
431 </f:facet> | |
432 <h:outputText value="#{item.endnoteContent}" /> | |
433 </h:column> | |
434 | |
435 <h:column> | |
436 <f:facet name="header"> | |
437 <h:outputText value="additional_information" /> | |
438 </f:facet> | |
439 <h:outputText value="#{item.additionalInf}" /> | |
440 </h:column> | |
441 </rich:dataTable> | |
442 </h:panelGrid> | |
443 | |
444 </h:panelGrid> | |
445 </h:panelGrid> | |
446 | |
447 | |
448 </h:panelGrid> | |
449 | |
450 | |
451 </h:panelGrid> | |
452 | |
453 | |
454 | |
455 | |
456 </h:panelGrid> | |
457 | |
458 | |
459 </ui:define> | |
460 | |
461 </ui:composition> | |
462 </body> | |
463 </html> |