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