comparison src/main/webapp/entry/witness.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 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
9
10 <body>
11 <ui:composition>
12
13 <ui:include src="components/witnessPopups.xhtml" />
14
15 <h:panelGroup>
16 <h:panelGrid columns="2">
17
18 <h:outputLink value="#{CurrentWitness.displayUrl}"
19 title="Display this entity"
20 rendered="#{!empty CurrentWitness.displayUrl}">
21 <h:graphicImage url="#{ApplicationBean1.displayImage}" />
22 </h:outputLink>
23
24 <h:outputText value="Witness - #{CurrentWitness.entity.ownValue}"
25 rendered="#{!empty CurrentWitness.entity.ownValue}"
26 styleClass="titlePanel"/>
27 <h:outputText value="Witness"
28 rendered="#{empty CurrentWitness.entity.ownValue}"
29 styleClass="titlePanel"/>
30 </h:panelGrid>
31
32 </h:panelGroup>
33
34
35 <h:panelGrid columns="3" styleClass="createPanel"
36 columnClasses="createPanelFirstColumn,createPanelColumn02">
37
38 <h:outputText value="State" />
39 <h:selectOneMenu value="#{CurrentWitness.entity.status}">
40 <f:selectItems value="#{ApplicationBean1.suggestedStatus}" />
41 </h:selectOneMenu>
42 <h:outputText />
43
44
45 <h:outputText value="Title" />
46 <h:panelGrid id="witnessTitlePanel">
47 <ismi:autocomplete lo="#{CurrentWitness.titleLo}" />
48 </h:panelGrid>
49 <h:panelGrid columns="1">
50 <h:commandButton value="Show all texts"
51 action="#{CurrentWitness.showAllTextsAction}" />
52 <h:commandButton value="Search (other) texts by this author"
53 action="#{CurrentWitness.showOtherTextsByAuthorAction}" />
54 </h:panelGrid>
55
56 <h:outputText value="Full Name of Person" />
57 <h:panelGrid id="witnessAuthorPanel">
58 <ismi:autocomplete lo="#{CurrentWitness.authorLo}" />
59 </h:panelGrid>
60 <h:panelGrid columns="1">
61 <h:commandButton value="Show all authors"
62 action="#{CurrentWitness.showAllAuthorsAction}" />
63 </h:panelGrid>
64
65 </h:panelGrid>
66
67 <ismi:entityList value="#{CurrentWitness.possibleExamplerOfList}"
68 deploy="#{CurrentWitness.textUnknown}" />
69
70
71 <h:panelGrid columns="1" style="width:100%;"
72 rendered="#{!CurrentWitness.textUnknown}" id="witnessAliasPanel">
73
74 <h:panelGrid columns="2" styleClass="createPanel"
75 columnClasses="createPanelFirstColumn,createPanelColumn02">
76
77 <h:panelGrid columns="1">
78 <h:outputLabel value="Full Title" />
79 <h:outputText value="as written in" />
80 <h:outputText value="the manuscript (arabic)" />
81 </h:panelGrid>
82 <h:panelGrid columns="1">
83 <h:inputText value="#{CurrentWitness.valueTextWritten}"
84 valueChangeListener="#{CurrentWitness.listenerCreateTitleAlias}"
85 size="100" style="direction: rtl;" />
86 <h:selectOneListbox partialSubmit="true"
87 style="direction: rtl;width: 500px;" size="5"
88 rendered="#{!empty CurrentWitness.suggestedTitlesWritten}"
89 valueChangeListener="#{CurrentWitness.listenerChooseTitleAlias}"
90 value="#{CurrentWitness.valueTitleSelectedId}">
91 <f:selectItems value="#{CurrentWitness.suggestedTitlesWritten}" />
92 <a4j:ajax event="click" render="witnessAliasPanel" />
93 </h:selectOneListbox>
94 </h:panelGrid>
95
96 <h:panelGrid columns="1">
97 <h:outputText value="Full Author" />
98 <h:outputText value="as written in" />
99 <h:outputText value="the manuscript (arabic)" />
100 </h:panelGrid>
101 <h:panelGrid columns="1">
102 <h:inputText value="#{CurrentWitness.valueAuthorWritten}"
103 valueChangeListener="#{CurrentWitness.listenerCreateAuthorAlias}"
104 size="100" style="direction: rtl;" />
105 <h:selectOneListbox style="direction: rtl;width: 500px;" size="5"
106 rendered="#{!empty CurrentWitness.suggestedAuthorsWritten}"
107 valueChangeListener="#{CurrentWitness.listenerChooseAuthorAlias}"
108 value="#{CurrentWitness.valueAuthorSelectedId}">
109 <f:selectItems value="#{CurrentWitness.suggestedAuthorsWritten}" />
110 <a4j:ajax event="click" render="witnessAliasPanel" />
111 </h:selectOneListbox>
112 </h:panelGrid>
113 </h:panelGrid>
114
115 </h:panelGrid>
116
117 <h:panelGrid columns="2" styleClass="createPanel"
118 columnClasses="createPanelFirstColumn,createPanelColumn02">
119
120 <h:outputText value="Ahlwardt No." />
121 <h:inputText value="#{CurrentWitness.attributes['ahlwardt_no']}"
122 style="width: 300px;" />
123 </h:panelGrid>
124
125
126 <h:outputText value="Codex" styleClass="titlePanel"/>
127 <h:panelGrid columns="4" styleClass="createPanel"
128 columnClasses="createPanelFirstColumn" id="witnessCodexPanel">
129
130 <h:outputLabel value="Country" />
131 <ismi:autocomplete lo="#{CurrentWitness.countryLo}" />
132 <h:outputText />
133 <h:panelGrid>
134 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
135 rendered="#{!empty CurrentWitness.countryLo.entity.id}"
136 actionListener="#{CurrentWitness.editThisCountryAction}" />
137 </h:panelGrid>
138
139 <h:outputLabel value="Place/City" />
140 <ismi:autocomplete lo="#{CurrentWitness.cityLo}" />
141 <h:panelGrid>
142 <h:selectOneMenu
143 rendered="#{!empty CurrentWitness.citiesInCurrentCountry}"
144 valueChangeListener="#{CurrentWitness.inCurrentCountryListener}">
145 <f:selectItems value="#{CurrentWitness.citiesInCurrentCountry}" />
146 <a4j:ajax event="change" render="witnessCodexPanel" />
147 </h:selectOneMenu>
148 </h:panelGrid>
149 <h:panelGrid>
150 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
151 rendered="#{!empty CurrentWitness.cityLo.entity.id}"
152 actionListener="#{CurrentWitness.editThisCityAction}" />
153 </h:panelGrid>
154
155
156 <h:outputLabel value="Repository" />
157 <ismi:autocomplete lo="#{CurrentWitness.repositoryLo}" />
158 <h:panelGrid>
159 <h:selectOneMenu partialSubmit="true"
160 rendered="#{!empty CurrentWitness.repositoriesInCurrentCity}"
161 valueChangeListener="#{CurrentWitness.inCurrentCityListener}">
162 <f:selectItems value="#{CurrentWitness.repositoriesInCurrentCity}" />
163 <a4j:ajax event="change" render="witnessCodexPanel" />
164 </h:selectOneMenu>
165 <h:outputText
166 rendered="#{empty CurrentWitness.repositoriesInCurrentCity}" />
167 </h:panelGrid>
168 <h:panelGrid>
169 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
170 rendered="#{!empty CurrentWitness.repositoryLo.entity.id}"
171 actionListener="#{CurrentWitness.editThisRepositoryAction}" />
172 </h:panelGrid>
173
174
175 <h:outputLabel value="Collection" />
176 <ismi:autocomplete lo="#{CurrentWitness.collectionLo}" />
177 <h:panelGrid>
178 <h:selectOneMenu
179 rendered="#{!empty CurrentWitness.collectionsInCurrentRepository}"
180 valueChangeListener="#{CurrentWitness.inCurrentRepositoryListener}">
181 <f:selectItems
182 value="#{CurrentWitness.collectionsInCurrentRepository}" />
183 <a4j:ajax event="change" render="witnessCodexPanel" />
184 </h:selectOneMenu>
185 </h:panelGrid>
186 <h:panelGrid>
187 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
188 rendered="#{!empty CurrentWitness.collectionLo.entity.id}"
189 actionListener="#{CurrentWitness.editThisCollectionAction}" />
190 </h:panelGrid>
191
192 <h:outputLabel value="Shelf Mark / Identifier" />
193 <h:panelGroup>
194 <h:outputText
195 rendered="#{!empty CurrentWitness.codexLo.attribute.ownValue}"
196 value="#{CurrentWitness.codexLo.term}"
197 style="font-style:normal;
198 font-size:15px;
199 font-weight:bold;
200 font-family:sans-serif;" />
201
202 <h:inputText
203 rendered="#{empty CurrentWitness.codexLo.attribute.ownValue}"
204 value="#{CurrentWitness.newIdentifier}" />
205 </h:panelGroup>
206 <h:panelGrid>
207 <h:selectOneMenu
208 rendered="#{!empty CurrentWitness.shelfMarksInCurrentCollection}"
209 valueChangeListener="#{CurrentWitness.identifierChangedListener}">
210 <f:selectItems
211 value="#{CurrentWitness.shelfMarksInCurrentCollection}" />
212 <a4j:ajax event="change" render="witnessCodexPanel" />
213 </h:selectOneMenu>
214 </h:panelGrid>
215 <h:panelGrid>
216 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
217 rendered="#{!empty CurrentWitness.codexLo.entity.ownValue}"
218 actionListener="#{CurrentWitness.editThisCodexAction}" />
219 </h:panelGrid>
220
221
222 <h:outputText />
223 <h:commandButton
224 actionListener="#{CurrentWitness.checkConsistencyFromCountryToCodex}"
225 value="Check Consistency From Country To Codex" />
226 <h:outputText />
227 <h:outputText />
228 </h:panelGrid>
229
230 <h:outputText value="Copy" styleClass="titlePanel"/>
231 <h:panelGrid columns="3" styleClass="createPanel"
232 columnClasses="createPanelFirstColumn" id="witnessCopyPanel">
233
234 <h:outputText value="Copyist" />
235 <ismi:autocomplete lo="#{CurrentWitness.copyistLo}" />
236 <h:commandButton value="Show all"
237 action="#{CurrentWitness.showAllCopyistsAction}" />
238
239
240 <h:outputText value="Copy (place)" />
241 <ismi:autocomplete lo="#{CurrentWitness.copyPlaceLo}" />
242 <h:outputLabel />
243
244 <h:outputText value="Copy Date (hijra)" />
245 <ismi:date date="#{CurrentWitness.copyDate}" />
246 <h:outputLabel />
247
248 <h:outputText value="Patronage of Witness" />
249 <ismi:autocomplete lo="#{CurrentWitness.patronageLo}" />
250 <h:commandButton value="Show all"
251 action="#{CurrentWitness.showAllPatronsAction}" />
252 </h:panelGrid>
253
254 <ismi:entityList value="#{CurrentWitness.studiedByList}" />
255
256 <h:outputText value="Identification information" styleClass="titlePanel"/>
257 <h:panelGrid columns="2" styleClass="createPanel"
258 columnClasses="createPanelFirstColumn">
259
260 <h:outputText value="Table of Contents" />
261 <rich:editor
262 value="#{CurrentWitness.attributes['table_of_contents']}"
263 style="direction: rtl;" />
264
265 <h:outputText value="Incipit" />
266 <h:inputTextarea cols="80" rows="10" dir="rtl"
267 value="#{CurrentWitness.attributes['incipit']}" />
268
269 <h:outputText value="Explicit" />
270 <h:inputTextarea cols="80" rows="10" dir="rtl"
271 value="#{CurrentWitness.attributes['explicit']}" />
272
273 <h:outputText value="Colophon" />
274 <h:inputTextarea cols="80" rows="10" dir="rtl"
275 value="#{CurrentWitness.attributes['colophon']}" />
276
277 <h:outputText value="Folios" />
278 <h:inputText size="100"
279 value="#{CurrentWitness.attributes['folios']}" />
280
281 <h:outputText value="Is autograph" />
282 <h:selectOneMenu partialSubmit="true"
283 value="#{CurrentWitness.attributes['is_autograph']}">
284 <f:selectItems value="#{ApplicationBean1.yes_no}" />
285 </h:selectOneMenu>
286
287 <h:outputText value="Page dimensions" />
288 <h:inputText size="100"
289 value="#{CurrentWitness.attributes['page_dimensions']}" />
290
291 <h:outputText value="Written area dimensions" />
292 <h:inputText size="100"
293 value="#{CurrentWitness.attributes['written_area_dimensions']}" />
294
295 <h:outputText value="Lines per page" />
296 <h:inputText size="100"
297 value="#{CurrentWitness.attributes['lines_per_page']}" />
298
299
300 <h:outputText value="Writing surface" />
301 <h:selectOneMenu
302 value="#{CurrentWitness.attributes['writing_surface']}">
303 <f:selectItems value="#{ApplicationBean1.writingSurfaces}" />
304 </h:selectOneMenu>
305
306 <h:outputText value="Page layout" />
307 <h:selectOneMenu value="#{CurrentWitness.attributes['page_layout']}">
308 <f:selectItems value="#{ApplicationBean1.pageLayout}" />
309 </h:selectOneMenu>
310
311 <h:outputText value="Script" />
312 <h:selectOneMenu value="#{CurrentWitness.attributes['script']}">
313 <f:selectItems value="#{ApplicationBean1.scripts}" />
314 </h:selectOneMenu>
315
316 <h:outputText value="Other Features" />
317 <h:inputTextarea cols="80" rows="10"
318 value="#{CurrentWitness.attributes['other_features']}" />
319
320 <h:outputText value="Diagrams and Illustrations" />
321 <h:inputTextarea cols="80" rows="10"
322 value="#{CurrentWitness.attributes['diagrams_and_illustrations']}" />
323
324 <h:outputText value="Scans" />
325 <h:inputText size="100" value="#{CurrentWitness.attributes['scans']}" />
326
327 </h:panelGrid>
328
329
330 <h:outputText value="Notes" styleClass="titlePanel"/>
331 <h:panelGrid columns="2" styleClass="createPanel"
332 columnClasses="createPanelFirstColumn">
333
334 <h:outputText value="Notes on Title and Author" />
335 <h:inputTextarea cols="80" rows="10"
336 value="#{CurrentWitness.attributes['notes_on_title_author']}" />
337 <h:outputText value="Notes on Collation and Corrections" />
338 <h:inputTextarea cols="80" rows="10"
339 value="#{CurrentWitness.attributes['notes_on_collation_and_corrections']}" />
340 <h:outputText value="Notes on Ownership" />
341 <h:inputTextarea cols="80" rows="10"
342 value="#{CurrentWitness.attributes['notes_on_ownership']}" />
343 <h:outputText value="Notes (general)" />
344 <h:inputTextarea cols="80" rows="10"
345 value="#{CurrentWitness.attributes['notes']}" />
346
347 </h:panelGrid>
348
349 <h:panelGrid columns="2" styleClass="createPanel"
350 columnClasses="createPanelFirstColumn">
351 <h:outputText value="Source of Information" />
352 <h:selectOneMenu
353 value="#{CurrentWitness.attributes['source_of_information']}">
354 <f:selectItems value="#{ApplicationBean1.sourcesOfInformation}" />
355 </h:selectOneMenu>
356 </h:panelGrid>
357
358 <ismi:refWidget entityForm="#{CurrentWitness}" />
359
360 <h:panelGrid columns="4">
361 <h:outputText value="ID of the Witness" />
362 <h:inputText value="#{CurrentWitness.currentId}" />
363 <h:commandButton value="Load Witness By ID"
364 action="#{CurrentWitness.actionReloadEntity}"
365 onclick="confirm('Do you really want to reload the entity?');" />
366 <h:outputText value="#{CurrentWitness.currentIdMsg}"
367 style="color:red" />
368 </h:panelGrid>
369
370 <h:commandButton value="#{CurrentWitness.saveButtonLabel}"
371 rendered="#{CurrentWitness.renderSaveButton}"
372 action="#{CurrentWitness.save}"
373 onclick="#{ApplicationBean1.JSConfirmationSave}" />
374
375 <h:commandButton value="Clear Form"
376 action="#{CurrentWitness.clearAction}"
377 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
378
379 <h:commandButton value="Save as new Entity"
380 rendered="#{(CurrentWitness.entity.id != null and Session.canCreate)}"
381 action="#{CurrentWitness.saveAsNewEntity}"
382 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}" />
383
384 </ui:composition>
385 </body>
386 </html>