Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/witness.xhtml @ 120:71638720fe2f
working on MISIDENTIFICATION for witnesses.
author | casties |
---|---|
date | Fri, 06 Jan 2017 20:41:35 +0100 |
parents | 22a18bfc66b0 |
children | 9cd25e1a58f0 |
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 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 | |
111
22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
casties
parents:
79
diff
changeset
|
56 <h:outputText value="Full Name of Author" /> |
7 | 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"> | |
120 | 119 |
120 <h:outputText value="Misidentified as" /> | |
121 <ui:include src="components/misidentification.xhtml" /> | |
122 | |
123 </h:panelGrid> | |
124 | |
125 | |
126 <h:panelGrid columns="2" styleClass="createPanel" | |
127 columnClasses="createPanelFirstColumn,createPanelColumn02"> | |
7 | 128 |
129 <h:outputText value="Ahlwardt No." /> | |
130 <h:inputText value="#{CurrentWitness.attributes['ahlwardt_no']}" | |
131 style="width: 300px;" /> | |
132 </h:panelGrid> | |
133 | |
134 | |
135 <h:outputText value="Codex" styleClass="titlePanel"/> | |
136 <h:panelGrid columns="4" styleClass="createPanel" | |
137 columnClasses="createPanelFirstColumn" id="witnessCodexPanel"> | |
138 | |
139 <h:outputLabel value="Country" /> | |
140 <ismi:autocomplete lo="#{CurrentWitness.countryLo}" /> | |
141 <h:outputText /> | |
142 <h:panelGrid> | |
143 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
144 rendered="#{!empty CurrentWitness.countryLo.entity.id}" | |
145 actionListener="#{CurrentWitness.editThisCountryAction}" /> | |
146 </h:panelGrid> | |
147 | |
148 <h:outputLabel value="Place/City" /> | |
149 <ismi:autocomplete lo="#{CurrentWitness.cityLo}" /> | |
150 <h:panelGrid> | |
151 <h:selectOneMenu | |
152 rendered="#{!empty CurrentWitness.citiesInCurrentCountry}" | |
153 valueChangeListener="#{CurrentWitness.inCurrentCountryListener}"> | |
154 <f:selectItems value="#{CurrentWitness.citiesInCurrentCountry}" /> | |
155 <a4j:ajax event="change" render="witnessCodexPanel" /> | |
156 </h:selectOneMenu> | |
157 </h:panelGrid> | |
158 <h:panelGrid> | |
159 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
160 rendered="#{!empty CurrentWitness.cityLo.entity.id}" | |
161 actionListener="#{CurrentWitness.editThisCityAction}" /> | |
162 </h:panelGrid> | |
163 | |
164 | |
165 <h:outputLabel value="Repository" /> | |
166 <ismi:autocomplete lo="#{CurrentWitness.repositoryLo}" /> | |
167 <h:panelGrid> | |
168 <h:selectOneMenu partialSubmit="true" | |
169 rendered="#{!empty CurrentWitness.repositoriesInCurrentCity}" | |
170 valueChangeListener="#{CurrentWitness.inCurrentCityListener}"> | |
171 <f:selectItems value="#{CurrentWitness.repositoriesInCurrentCity}" /> | |
172 <a4j:ajax event="change" render="witnessCodexPanel" /> | |
173 </h:selectOneMenu> | |
174 <h:outputText | |
175 rendered="#{empty CurrentWitness.repositoriesInCurrentCity}" /> | |
176 </h:panelGrid> | |
177 <h:panelGrid> | |
178 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
179 rendered="#{!empty CurrentWitness.repositoryLo.entity.id}" | |
180 actionListener="#{CurrentWitness.editThisRepositoryAction}" /> | |
181 </h:panelGrid> | |
182 | |
183 | |
184 <h:outputLabel value="Collection" /> | |
185 <ismi:autocomplete lo="#{CurrentWitness.collectionLo}" /> | |
186 <h:panelGrid> | |
187 <h:selectOneMenu | |
188 rendered="#{!empty CurrentWitness.collectionsInCurrentRepository}" | |
189 valueChangeListener="#{CurrentWitness.inCurrentRepositoryListener}"> | |
190 <f:selectItems | |
191 value="#{CurrentWitness.collectionsInCurrentRepository}" /> | |
192 <a4j:ajax event="change" render="witnessCodexPanel" /> | |
193 </h:selectOneMenu> | |
194 </h:panelGrid> | |
195 <h:panelGrid> | |
196 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
197 rendered="#{!empty CurrentWitness.collectionLo.entity.id}" | |
198 actionListener="#{CurrentWitness.editThisCollectionAction}" /> | |
199 </h:panelGrid> | |
200 | |
201 <h:outputLabel value="Shelf Mark / Identifier" /> | |
202 <h:panelGroup> | |
203 <h:outputText | |
204 rendered="#{!empty CurrentWitness.codexLo.attribute.ownValue}" | |
205 value="#{CurrentWitness.codexLo.term}" | |
206 style="font-style:normal; | |
207 font-size:15px; | |
208 font-weight:bold; | |
209 font-family:sans-serif;" /> | |
210 | |
211 <h:inputText | |
212 rendered="#{empty CurrentWitness.codexLo.attribute.ownValue}" | |
213 value="#{CurrentWitness.newIdentifier}" /> | |
214 </h:panelGroup> | |
215 <h:panelGrid> | |
216 <h:selectOneMenu | |
217 rendered="#{!empty CurrentWitness.shelfMarksInCurrentCollection}" | |
218 valueChangeListener="#{CurrentWitness.identifierChangedListener}"> | |
219 <f:selectItems | |
220 value="#{CurrentWitness.shelfMarksInCurrentCollection}" /> | |
221 <a4j:ajax event="change" render="witnessCodexPanel" /> | |
222 </h:selectOneMenu> | |
223 </h:panelGrid> | |
224 <h:panelGrid> | |
225 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
226 rendered="#{!empty CurrentWitness.codexLo.entity.ownValue}" | |
227 actionListener="#{CurrentWitness.editThisCodexAction}" /> | |
228 </h:panelGrid> | |
229 | |
230 | |
231 <h:outputText /> | |
232 <h:commandButton | |
233 actionListener="#{CurrentWitness.checkConsistencyFromCountryToCodex}" | |
234 value="Check Consistency From Country To Codex" /> | |
235 <h:outputText /> | |
236 <h:outputText /> | |
237 </h:panelGrid> | |
238 | |
239 <h:outputText value="Copy" styleClass="titlePanel"/> | |
240 <h:panelGrid columns="3" styleClass="createPanel" | |
241 columnClasses="createPanelFirstColumn" id="witnessCopyPanel"> | |
242 | |
243 <h:outputText value="Copyist" /> | |
244 <ismi:autocomplete lo="#{CurrentWitness.copyistLo}" /> | |
245 <h:commandButton value="Show all" | |
246 action="#{CurrentWitness.showAllCopyistsAction}" /> | |
247 | |
248 | |
111
22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
casties
parents:
79
diff
changeset
|
249 <h:outputText value="Copied in (place)" /> |
7 | 250 <ismi:autocomplete lo="#{CurrentWitness.copyPlaceLo}" /> |
251 <h:outputLabel /> | |
252 | |
253 <h:outputText value="Copy Date (hijra)" /> | |
254 <ismi:date date="#{CurrentWitness.copyDate}" /> | |
255 <h:outputLabel /> | |
256 | |
111
22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
casties
parents:
79
diff
changeset
|
257 <h:outputText value="Patron of Witness" /> |
7 | 258 <ismi:autocomplete lo="#{CurrentWitness.patronageLo}" /> |
259 <h:commandButton value="Show all" | |
260 action="#{CurrentWitness.showAllPatronsAction}" /> | |
261 </h:panelGrid> | |
262 | |
263 <ismi:entityList value="#{CurrentWitness.studiedByList}" /> | |
264 | |
265 <h:outputText value="Identification information" styleClass="titlePanel"/> | |
266 <h:panelGrid columns="2" styleClass="createPanel" | |
267 columnClasses="createPanelFirstColumn"> | |
268 | |
269 <h:outputText value="Table of Contents" /> | |
270 <rich:editor | |
271 value="#{CurrentWitness.attributes['table_of_contents']}" | |
272 style="direction: rtl;" /> | |
273 | |
274 <h:outputText value="Incipit" /> | |
275 <h:inputTextarea cols="80" rows="10" dir="rtl" | |
276 value="#{CurrentWitness.attributes['incipit']}" /> | |
277 | |
278 <h:outputText value="Explicit" /> | |
279 <h:inputTextarea cols="80" rows="10" dir="rtl" | |
280 value="#{CurrentWitness.attributes['explicit']}" /> | |
281 | |
282 <h:outputText value="Colophon" /> | |
283 <h:inputTextarea cols="80" rows="10" dir="rtl" | |
284 value="#{CurrentWitness.attributes['colophon']}" /> | |
285 | |
286 <h:outputText value="Folios" /> | |
287 <h:inputText size="100" | |
288 value="#{CurrentWitness.attributes['folios']}" /> | |
289 | |
290 <h:outputText value="Is autograph" /> | |
291 <h:selectOneMenu partialSubmit="true" | |
292 value="#{CurrentWitness.attributes['is_autograph']}"> | |
293 <f:selectItems value="#{ApplicationBean1.yes_no}" /> | |
294 </h:selectOneMenu> | |
295 | |
296 <h:outputText value="Page dimensions" /> | |
297 <h:inputText size="100" | |
298 value="#{CurrentWitness.attributes['page_dimensions']}" /> | |
299 | |
300 <h:outputText value="Written area dimensions" /> | |
301 <h:inputText size="100" | |
302 value="#{CurrentWitness.attributes['written_area_dimensions']}" /> | |
303 | |
304 <h:outputText value="Lines per page" /> | |
305 <h:inputText size="100" | |
306 value="#{CurrentWitness.attributes['lines_per_page']}" /> | |
307 | |
308 | |
309 <h:outputText value="Writing surface" /> | |
310 <h:selectOneMenu | |
311 value="#{CurrentWitness.attributes['writing_surface']}"> | |
312 <f:selectItems value="#{ApplicationBean1.writingSurfaces}" /> | |
313 </h:selectOneMenu> | |
314 | |
315 <h:outputText value="Page layout" /> | |
316 <h:selectOneMenu value="#{CurrentWitness.attributes['page_layout']}"> | |
317 <f:selectItems value="#{ApplicationBean1.pageLayout}" /> | |
318 </h:selectOneMenu> | |
319 | |
320 <h:outputText value="Script" /> | |
321 <h:selectOneMenu value="#{CurrentWitness.attributes['script']}"> | |
322 <f:selectItems value="#{ApplicationBean1.scripts}" /> | |
323 </h:selectOneMenu> | |
324 | |
325 <h:outputText value="Other Features" /> | |
326 <h:inputTextarea cols="80" rows="10" | |
327 value="#{CurrentWitness.attributes['other_features']}" /> | |
328 | |
329 <h:outputText value="Diagrams and Illustrations" /> | |
330 <h:inputTextarea cols="80" rows="10" | |
331 value="#{CurrentWitness.attributes['diagrams_and_illustrations']}" /> | |
332 | |
333 <h:outputText value="Scans" /> | |
334 <h:inputText size="100" value="#{CurrentWitness.attributes['scans']}" /> | |
335 | |
336 </h:panelGrid> | |
337 | |
338 | |
339 <h:outputText value="Notes" styleClass="titlePanel"/> | |
340 <h:panelGrid columns="2" styleClass="createPanel" | |
341 columnClasses="createPanelFirstColumn"> | |
342 | |
9 | 343 <h:outputText value="Notes" /> |
344 <h:inputTextarea cols="80" rows="10" | |
345 value="#{CurrentWitness.attributes['notes']}" /> | |
346 | |
347 <h:outputText value="Notes (old)" /> | |
348 <h:inputTextarea cols="80" rows="10" | |
349 value="#{CurrentWitness.attributes['notes_old']}" /> | |
350 | |
351 <h:outputText value="Notes on Title and Author (old)" /> | |
7 | 352 <h:inputTextarea cols="80" rows="10" |
353 value="#{CurrentWitness.attributes['notes_on_title_author']}" /> | |
9 | 354 <h:outputText value="Notes on Collation and Corrections (old)" /> |
7 | 355 <h:inputTextarea cols="80" rows="10" |
356 value="#{CurrentWitness.attributes['notes_on_collation_and_corrections']}" /> | |
9 | 357 <h:outputText value="Notes on Ownership (old)" /> |
7 | 358 <h:inputTextarea cols="80" rows="10" |
359 value="#{CurrentWitness.attributes['notes_on_ownership']}" /> | |
9 | 360 |
7 | 361 |
362 </h:panelGrid> | |
363 | |
364 <h:panelGrid columns="2" styleClass="createPanel" | |
365 columnClasses="createPanelFirstColumn"> | |
366 <h:outputText value="Source of Information" /> | |
367 <h:selectOneMenu | |
368 value="#{CurrentWitness.attributes['source_of_information']}"> | |
369 <f:selectItems value="#{ApplicationBean1.sourcesOfInformation}" /> | |
370 </h:selectOneMenu> | |
371 </h:panelGrid> | |
372 | |
373 <ismi:refWidget entityForm="#{CurrentWitness}" /> | |
374 | |
375 <h:panelGrid columns="4"> | |
376 <h:outputText value="ID of the Witness" /> | |
377 <h:inputText value="#{CurrentWitness.currentId}" /> | |
378 <h:commandButton value="Load Witness By ID" | |
379 action="#{CurrentWitness.actionReloadEntity}" | |
380 onclick="confirm('Do you really want to reload the entity?');" /> | |
381 <h:outputText value="#{CurrentWitness.currentIdMsg}" | |
382 style="color:red" /> | |
383 </h:panelGrid> | |
384 | |
385 <h:commandButton value="#{CurrentWitness.saveButtonLabel}" | |
386 rendered="#{CurrentWitness.renderSaveButton}" | |
387 action="#{CurrentWitness.save}" | |
388 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
389 | |
390 <h:commandButton value="Clear Form" | |
391 action="#{CurrentWitness.clearAction}" | |
392 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
393 | |
394 </ui:composition> | |
395 </body> | |
396 </html> |