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