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 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
|
|
9
|
|
10 <body>
|
|
11 <ui:composition>
|
|
12
|
|
13 <ui:include src="components/codexPopups.xhtml" />
|
|
14
|
|
15 <h:panelGrid>
|
|
16 <h:outputText value="Codex - #{CurrentCodex.entity.ownValue}"
|
|
17 rendered="#{!empty CurrentCodex.entity.ownValue}"
|
|
18 styleClass="titlePanel"/>
|
|
19 <h:outputText value="Codex"
|
|
20 rendered="#{empty CurrentCodex.entity.ownValue}"
|
|
21 styleClass="titlePanel"/>
|
|
22 </h:panelGrid>
|
|
23
|
|
24
|
|
25 <h:panelGrid columns="4" styleClass="createPanel"
|
|
26 columnClasses="createPanelFirstColumn" id="codexCollectionPanel">
|
|
27
|
|
28 <h:outputLabel value="Country" />
|
|
29 <ismi:autocomplete lo="#{CurrentCodex.countryLo}" />
|
|
30 <h:outputText />
|
|
31 <h:panelGrid>
|
|
32 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
33 rendered="#{!empty CurrentCodex.countryLo.entity.id}"
|
|
34 actionListener="#{CurrentCodex.editThisCountryAction}" />
|
|
35 </h:panelGrid>
|
|
36
|
|
37 <h:outputLabel value="Place/City" />
|
|
38 <ismi:autocomplete lo="#{CurrentCodex.cityLo}" />
|
|
39 <h:panelGrid>
|
|
40 <h:selectOneMenu
|
|
41 rendered="#{!empty CurrentCodex.citiesInCurrentCountry}"
|
|
42 valueChangeListener="#{CurrentCodex.inCurrentCountryListener}">
|
|
43 <f:selectItems value="#{CurrentCodex.citiesInCurrentCountry}" />
|
|
44 <a4j:ajax event="change" render="codexCollectionPanel" />
|
|
45 </h:selectOneMenu>
|
|
46 </h:panelGrid>
|
|
47 <h:panelGrid>
|
|
48 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
49 rendered="#{!empty CurrentCodex.cityLo.entity.id}"
|
|
50 actionListener="#{CurrentCodex.editThisCityAction}" />
|
|
51 </h:panelGrid>
|
|
52
|
|
53
|
|
54 <h:outputLabel value="Repository" />
|
|
55 <ismi:autocomplete lo="#{CurrentCodex.repositoryLo}" />
|
|
56 <h:panelGrid>
|
|
57 <h:selectOneMenu partialSubmit="true"
|
|
58 rendered="#{!empty CurrentCodex.repositoriesInCurrentCity}"
|
|
59 valueChangeListener="#{CurrentCodex.inCurrentCityListener}">
|
|
60 <f:selectItems value="#{CurrentCodex.repositoriesInCurrentCity}" />
|
|
61 <a4j:ajax event="change" render="codexCollectionPanel" />
|
|
62 </h:selectOneMenu>
|
|
63 <h:outputText
|
|
64 rendered="#{empty CurrentCodex.repositoriesInCurrentCity}" />
|
|
65 </h:panelGrid>
|
|
66 <h:panelGrid>
|
|
67 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
68 rendered="#{!empty CurrentCodex.repositoryLo.entity.id}"
|
|
69 actionListener="#{CurrentCodex.editThisRepositoryAction}" />
|
|
70 </h:panelGrid>
|
|
71
|
|
72
|
|
73 <h:outputLabel value="Collection" />
|
|
74 <ismi:autocomplete lo="#{CurrentCodex.collectionLo}" />
|
|
75 <h:panelGrid>
|
|
76 <h:selectOneMenu
|
|
77 rendered="#{!empty CurrentCodex.collectionsInCurrentRepository}"
|
|
78 valueChangeListener="#{CurrentCodex.inCurrentRepositoryListener}">
|
|
79 <f:selectItems
|
|
80 value="#{CurrentCodex.collectionsInCurrentRepository}" />
|
|
81 <a4j:ajax event="change" render="codexCollectionPanel" />
|
|
82 </h:selectOneMenu>
|
|
83 </h:panelGrid>
|
|
84 <h:panelGrid>
|
|
85 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
86 rendered="#{!empty CurrentCodex.collectionLo.entity.id}"
|
|
87 actionListener="#{CurrentCodex.editThisCollectionAction}" />
|
|
88 </h:panelGrid>
|
|
89
|
|
90 <h:outputText />
|
|
91 <h:commandButton
|
|
92 actionListener="#{CurrentCodex.checkConsistencyFromCountryToCodex}"
|
|
93 value="Check Consistency From Country To Codex" />
|
|
94 <h:outputText />
|
|
95 <h:outputText />
|
|
96
|
|
97 <h:outputLabel value="Shelf Mark / Identifier" />
|
|
98 <h:inputText rows="6" width="500"
|
|
99 value="#{CurrentCodex.attributes['identifier']}"
|
|
100 style="font-style:normal;
|
|
101 font-size:15px;
|
|
102 font-weight:bold;
|
|
103 font-family:sans-serif ;" />
|
|
104 <h:outputText />
|
|
105 <h:outputText />
|
|
106
|
|
107 </h:panelGrid>
|
|
108
|
|
109 <h:outputText value="Alias" styleClass="titlePanel"/>
|
|
110 <h:panelGrid columns="2" styleClass="createPanel"
|
|
111 columnClasses="createPanelFirstColumn">
|
|
112 <h:outputText value="Is this codex alias?" />
|
|
113 <h:selectBooleanCheckbox value="#{CurrentCodex.isAlias}">
|
|
114 <a4j:ajax event="click" render="codexAliasPanel" />
|
|
115 </h:selectBooleanCheckbox>
|
|
116 </h:panelGrid>
|
|
117
|
|
118 <h:panelGrid columns="2" styleClass="createPanel"
|
|
119 columnClasses="createPanelFirstColumn">
|
|
120 <h:outputText value="Public?"/>
|
|
121 <h:selectOneMenu value="#{CurrentCodex.attributes['public']}">
|
|
122 <f:selectItems value="#{ApplicationBean1.suggestedBoolean}" />
|
|
123 </h:selectOneMenu>
|
|
124 </h:panelGrid>
|
|
125
|
|
126
|
|
127 <h:panelGrid columns="1" id="codexAliasPanel">
|
|
128
|
|
129 <h:outputText value="Referenced Alias"
|
|
130 rendered="#{CurrentCodex.isAlias}"
|
|
131 styleClass="titlePanel"/>
|
|
132
|
|
133 <h:panelGrid columns="4" styleClass="createPanel"
|
|
134 columnClasses="createPanelFirstColumn"
|
|
135 rendered="#{CurrentCodex.isAlias}">
|
|
136
|
|
137 <h:outputLabel value="Country" />
|
|
138 <ismi:autocomplete
|
|
139 lo="#{CurrentCodex.referencedCodexTemplate.countryLo}" />
|
|
140 <h:outputText />
|
|
141 <h:panelGrid>
|
|
142 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
143 rendered="#{!empty CurrentCodex.referencedCodexTemplate.countryLo.entity.id}"
|
|
144 actionListener="#{CurrentCodex.referencedCodexTemplate.editThisCountryAction}" />
|
|
145 </h:panelGrid>
|
|
146
|
|
147 <h:outputLabel value="Place/City" />
|
|
148 <ismi:autocomplete
|
|
149 lo="#{CurrentCodex.referencedCodexTemplate.cityLo}" />
|
|
150 <h:panelGrid>
|
|
151 <h:selectOneMenu
|
|
152 rendered="#{!empty CurrentCodex.referencedCodexTemplate.citiesInCurrentCountry}"
|
|
153 valueChangeListener="#{CurrentCodex.referencedCodexTemplate.inCurrentCountryListener}">
|
|
154 <f:selectItems
|
|
155 value="#{CurrentCodex.referencedCodexTemplate.citiesInCurrentCountry}" />
|
|
156 <a4j:ajax event="change" render="codexAliasPanel" />
|
|
157 </h:selectOneMenu>
|
|
158 </h:panelGrid>
|
|
159 <h:panelGrid>
|
|
160 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
161 rendered="#{!empty CurrentCodex.referencedCodexTemplate.cityLo.entity.id}"
|
|
162 actionListener="#{CurrentCodex.referencedCodexTemplate.editThisCityAction}" />
|
|
163 </h:panelGrid>
|
|
164
|
|
165
|
|
166 <h:outputLabel value="Repository" />
|
|
167 <ismi:autocomplete
|
|
168 lo="#{CurrentCodex.referencedCodexTemplate.repositoryLo}" />
|
|
169 <h:panelGrid>
|
|
170 <h:selectOneMenu partialSubmit="true"
|
|
171 rendered="#{!empty CurrentCodex.referencedCodexTemplate.repositoriesInCurrentCity}"
|
|
172 valueChangeListener="#{CurrentCodex.referencedCodexTemplate.inCurrentCityListener}">
|
|
173 <f:selectItems
|
|
174 value="#{CurrentCodex.referencedCodexTemplate.repositoriesInCurrentCity}" />
|
|
175 <a4j:ajax event="change" render="codexAliasPanel" />
|
|
176 </h:selectOneMenu>
|
|
177 <h:outputText
|
|
178 rendered="#{empty CurrentCodex.referencedCodexTemplate.repositoriesInCurrentCity}" />
|
|
179 </h:panelGrid>
|
|
180 <h:panelGrid>
|
|
181 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
182 rendered="#{!empty CurrentCodex.referencedCodexTemplate.repositoryLo.entity.id}"
|
|
183 actionListener="#{CurrentCodex.referencedCodexTemplate.editThisRepositoryAction}" />
|
|
184 </h:panelGrid>
|
|
185
|
|
186
|
|
187 <h:outputLabel value="Collection" />
|
|
188 <ismi:autocomplete
|
|
189 lo="#{CurrentCodex.referencedCodexTemplate.collectionLo}" />
|
|
190 <h:panelGrid>
|
|
191 <h:selectOneMenu
|
|
192 rendered="#{!empty CurrentCodex.referencedCodexTemplate.collectionsInCurrentRepository}"
|
|
193 valueChangeListener="#{CurrentCodex.referencedCodexTemplate.inCurrentRepositoryListener}">
|
|
194 <f:selectItems
|
|
195 value="#{CurrentCodex.referencedCodexTemplate.collectionsInCurrentRepository}" />
|
|
196 <a4j:ajax event="change" render="codexAliasPanel" />
|
|
197 </h:selectOneMenu>
|
|
198 </h:panelGrid>
|
|
199 <h:panelGrid>
|
|
200 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
201 rendered="#{!empty CurrentCodex.referencedCodexTemplate.collectionLo.entity.id}"
|
|
202 actionListener="#{CurrentCodex.referencedCodexTemplate.editThisCollectionAction}" />
|
|
203 </h:panelGrid>
|
|
204
|
|
205 <h:outputLabel value="Shelf Mark / Identifier" />
|
|
206 <ismi:autocomplete
|
|
207 lo="#{CurrentCodex.referencedCodexTemplate.codexLo}" />
|
|
208 <h:panelGrid>
|
|
209 <h:selectOneMenu
|
|
210 rendered="#{!empty CurrentCodex.referencedCodexTemplate.shelfMarksInCurrentCollection}"
|
|
211 valueChangeListener="#{CurrentCodex.referencedCodexTemplate.identifierChangedListener}">
|
|
212 <f:selectItems
|
|
213 value="#{CurrentCodex.referencedCodexTemplate.shelfMarksInCurrentCollection}" />
|
|
214 <a4j:ajax event="change" render="codexAliasPanel" />
|
|
215 </h:selectOneMenu>
|
|
216 </h:panelGrid>
|
|
217 <h:panelGrid>
|
|
218 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
|
|
219 rendered="#{!empty CurrentCodex.referencedCodexTemplate.codexLo.entity.ownValue}"
|
|
220 actionListener="#{CurrentCodex.referencedCodexTemplate.editThisCodexAction}" />
|
|
221 </h:panelGrid>
|
|
222
|
|
223
|
|
224 <h:outputText />
|
|
225 <h:commandButton
|
|
226 actionListener="#{CurrentCodex.referencedCodexTemplate.checkConsistencyFromCountryToCodex}"
|
|
227 value="Check Consistency From Country To Codex" />
|
|
228 <h:outputText />
|
|
229 <h:outputText />
|
|
230 </h:panelGrid>
|
|
231 </h:panelGrid>
|
|
232
|
|
233 <h:panelGrid columns="2" styleClass="createPanel"
|
|
234 columnClasses="createPanelFirstColumn">
|
|
235
|
|
236 <h:outputText value="Owned By (event)" />
|
|
237
|
|
238 <h:panelGrid columns="2" id="ownedEventPanel">
|
|
239 <rich:dataTable value="#{CurrentCodex.ownedByPeople.entities}"
|
|
240 var="item" rendered="#{!empty CurrentCodex.ownedByPeople.entities}">
|
|
241 <h:column>
|
|
242 <f:facet name="header">
|
|
243 <h:outputText value="Owner" style="width: 100px;" />
|
|
244 </f:facet>
|
|
245 <h:outputText value="[#{item.id}] #{item.ownValue}" />
|
|
246 </h:column>
|
|
247 <h:column>
|
|
248 <f:facet name="header">
|
|
249 <h:outputText value="Date" />
|
|
250 </f:facet>
|
|
251 <h:panelGrid columns="1">
|
|
252 <h:outputText
|
|
253 value="#{CurrentCodex.ownedByPeople.calendarMap[item.id].calendarAsHtml}"
|
|
254 escape="false" />
|
|
255 <a4j:commandButton image="#{ApplicationBean1.editImage}"
|
|
256 actionListener="#{CurrentCodex.listenerEditCalendarOwnedBy}"
|
|
257 render="ownedEventPanel,currentCalendarPP" />
|
|
258 </h:panelGrid>
|
|
259 </h:column>
|
|
260 <h:column>
|
|
261 <h:selectBooleanCheckbox
|
|
262 value="#{CurrentCodex.ownedByPeople.selections[item.id]}" />
|
|
263 </h:column>
|
|
264 </rich:dataTable>
|
|
265 <a4j:commandButton value="Remove Selection"
|
|
266 rendered="#{!empty CurrentCodex.ownedByPeople.entities}"
|
|
267 actionListener="#{CurrentCodex.ownedByPeople.listenerRemoveSelection}"
|
|
268 render="ownedEventPanel" />
|
|
269
|
|
270
|
|
271 <ismi:autocomplete lo="#{CurrentCodex.ownedByPeople.lo}" />
|
|
272 <a4j:commandButton value="ADD"
|
|
273 actionListener="#{CurrentCodex.ownedByPeople.listenerAdd}"
|
|
274 render="ownedEventPanel" />
|
|
275 </h:panelGrid>
|
|
276
|
|
277
|
|
278 <h:outputText value="Read by (event)" />
|
|
279 <h:panelGrid columns="2" id="readByEventPanel">
|
|
280
|
|
281 <rich:dataTable value="#{CurrentCodex.readByPeople.entities}"
|
|
282 var="item" rendered="#{!empty CurrentCodex.readByPeople.entities}">
|
|
283 <h:column>
|
|
284 <f:facet name="header">
|
|
285 <h:outputText value="Reader" style="width: 100px;" />
|
|
286 </f:facet>
|
|
287 <h:outputText value="[#{item.id}] #{item.ownValue}" />
|
|
288 </h:column>
|
|
289 <h:column>
|
|
290 <f:facet name="header">
|
|
291 <h:outputText value="Date" />
|
|
292 </f:facet>
|
|
293 <h:panelGrid columns="1">
|
|
294 <h:outputText
|
|
295 value="#{CurrentCodex.readByPeople.calendarMap[item.id].calendarAsHtml}"
|
|
296 escape="false" />
|
|
297 <a4j:commandButton image="#{ApplicationBean1.editImage}"
|
|
298 actionListener="#{CurrentCodex.listenerEditCalendarReadBy}"
|
|
299 render="readByEventPanel,currentCalendarPP" />
|
|
300 </h:panelGrid>
|
|
301 </h:column>
|
|
302 <h:column>
|
|
303 <h:selectBooleanCheckbox
|
|
304 value="#{CurrentCodex.readByPeople.selections[item.id]}" />
|
|
305 </h:column>
|
|
306 </rich:dataTable>
|
|
307 <a4j:commandButton value="Remove Selection"
|
|
308 actionListener="#{CurrentCodex.readByPeople.listenerRemoveSelection}"
|
|
309 render="readByEventPanel"
|
|
310 rendered="#{!empty CurrentCodex.readByPeople.entities}" />
|
|
311
|
|
312 <ismi:autocomplete lo="#{CurrentCodex.readByPeople.lo}" />
|
|
313 <a4j:commandButton value="ADD"
|
|
314 actionListener="#{CurrentCodex.readByPeople.listenerAdd}"
|
|
315 render="readByEventPanel" />
|
|
316
|
|
317
|
|
318 </h:panelGrid>
|
|
319 </h:panelGrid>
|
|
320
|
|
321 <h:panelGrid columns="2" styleClass="createPanel"
|
|
322 columnClasses="createPanelFirstColumn">
|
|
323
|
|
324 <h:outputText value="URL Digitized Codex" />
|
|
325 <h:panelGrid columns="1" id="urlCodex">
|
|
326 <h:inputText size="100"
|
|
327 value="#{CurrentCodex.attributes['url_digitized_codex']}">
|
|
328 <a4j:ajax event="change" render="urlCodex" />
|
|
329 </h:inputText>
|
|
330 <a href="#{CurrentCodex.attributes['url_digitized_codex']}"
|
|
331 target="_blank"> <h:outputText
|
|
332 value="#{CurrentCodex.attributes['url_digitized_codex']}" />
|
|
333 </a>
|
|
334 </h:panelGrid>
|
|
335
|
|
336
|
|
337 <h:outputText value="Number of Folios" />
|
|
338 <h:inputText size="100"
|
|
339 value="#{CurrentCodex.attributes['number_of_folios']}" />
|
|
340
|
|
341 <h:outputText value="Dimensions" />
|
|
342 <h:inputText size="100"
|
|
343 value="#{CurrentCodex.attributes['dimensions']}" />
|
|
344
|
|
345 <h:outputText value="Binding" />
|
|
346 <h:panelGroup>
|
|
347 <h:selectOneMenu value="#{CurrentCodex.attributes['binding']}">
|
|
348 <f:selectItems value="#{CurrentCodex.suggestedBindingList}" />
|
|
349 </h:selectOneMenu>
|
|
350 <h:commandButton value="Refresh list"
|
|
351 actionListener="#{CurrentCodex.listenerRefreshBindingList}" />
|
|
352 </h:panelGroup>
|
|
353
|
|
354 <h:outputText value="Distinguishing Features" />
|
|
355 <h:inputTextarea cols="100" rows="10"
|
|
356 value="#{CurrentCodex.attributes['distinguishing_features']}" />
|
9
|
357
|
7
|
358 <h:outputText value="Notes" />
|
|
359 <h:inputTextarea cols="100" rows="10"
|
|
360 value="#{CurrentCodex.attributes['notes']}" />
|
|
361
|
9
|
362 <h:outputText value="Notes (old)" />
|
|
363 <h:inputTextarea cols="100" rows="10"
|
|
364 value="#{CurrentCodex.attributes['notes_old']}" />
|
|
365
|
|
366 <h:outputText value="Notes on ownership (old)" />
|
|
367 <h:inputTextarea cols="100" rows="10"
|
|
368 value="#{CurrentCodex.attributes['notes_on_ownership']}" />
|
7
|
369
|
|
370 </h:panelGrid>
|
|
371
|
|
372 <ismi:refWidget entityForm="#{CurrentCodex}" />
|
|
373
|
|
374 <h:panelGrid columns="4">
|
|
375 <h:outputText value="ID of the Codex" />
|
|
376 <h:inputText value="#{CurrentCodex.currentId}" />
|
|
377 <h:commandButton value="Load Codex By ID"
|
|
378 action="#{CurrentCodex.actionReloadEntity}"
|
|
379 onclick="confirm('Do you really want to reload the entity?');" />
|
|
380 <h:outputText value="#{CurrentCodex.currentIdMsg}"
|
|
381 style="color:red" />
|
|
382 </h:panelGrid>
|
|
383
|
|
384 <h:commandButton value="#{CurrentCodex.saveButtonLabel}"
|
|
385 rendered="#{CurrentCodex.renderSaveButton}"
|
|
386 action="#{CurrentCodex.save}"
|
|
387 onclick="#{ApplicationBean1.JSConfirmationSave}" />
|
|
388
|
|
389 <h:commandButton value="Clear Form"
|
|
390 action="#{CurrentCodex.clearAction}"
|
|
391 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
|
|
392
|
|
393 <h:commandButton value="Save as new Entity"
|
|
394 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"
|
|
395 rendered="#{(CurrentCodex.entity.id != null and Session.canCreate)}"
|
|
396 action="#{CurrentCodex.saveAsNewEntity}" />
|
|
397
|
|
398 <h:outputText rendered="#{CurrentCodex.create_error}"
|
|
399 value="City already exists - not saved!" />
|
|
400
|
|
401 <h:outputText rendered="#{CurrentCity.create_error}"
|
|
402 value="City already exists - not saved!" />
|
|
403
|
|
404
|
|
405 </ui:composition>
|
|
406 </body>
|
|
407 </html>
|