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 <h:panelGrid>
|
|
14 <h:panelGrid columns="2">
|
|
15 <h:outputLink value="#{CurrentPerson.displayUrl}"
|
|
16 title="Display this entity"
|
|
17 rendered="#{!empty CurrentPerson.displayUrl}">
|
|
18 <h:graphicImage url="#{ApplicationBean1.displayImage}" />
|
|
19 </h:outputLink>
|
|
20
|
|
21 <h:outputText value="Person - #{CurrentPerson.entity.ownValue}"
|
|
22 rendered="#{!empty CurrentPerson.entity.ownValue}"
|
|
23 style="font-size: 12pt;" styleClass="titlePanel" />
|
|
24 <h:outputText value="Person"
|
|
25 rendered="#{empty CurrentPerson.entity.ownValue}"
|
|
26 style="font-size: 12pt; " styleClass="titlePanel"/>
|
|
27 </h:panelGrid>
|
|
28 </h:panelGrid>
|
|
29
|
|
30 <h:panelGrid columns="3" styleClass="createPanel"
|
|
31 columnClasses="createPanelFirstColumn" id="personPanel">
|
|
32
|
|
33 <h:outputText value="Name" />
|
|
34 <h:inputText size="100" style="direction: rtl"
|
|
35 value="#{CurrentPerson.attributes['name']}" />
|
|
36 <h:outputText />
|
|
37
|
|
38 <h:outputText value="Name (translit)" />
|
|
39 <h:panelGrid columns="1">
|
|
40 <h:inputText size="100"
|
|
41 value="#{CurrentPerson.attributes['name_translit']}" >
|
|
42 <a4j:ajax event="keyup" render="romanized_author_name" listener="#{CurrentPerson.listenerRomanizeNameTranslit}" />
|
|
43 </h:inputText>
|
|
44 <h:outputText id="romanized_author_name" value="Romanization: #{CurrentPerson.romanizedNameTranslit}" />
|
|
45 </h:panelGrid>
|
|
46 <h:commandButton value="translit"
|
|
47 action="#{CurrentPerson.translitNameAction}" />
|
|
48
|
|
49 <h:outputText value="Prime Alias" />
|
|
50 <h:inputText
|
|
51 valueChangeListener="#{CurrentPerson.shortNameChangeListener}"
|
|
52 size="100" value="#{CurrentPerson.valueShortName}" />
|
|
53 <h:outputText />
|
|
54
|
|
55 <h:panelGrid>
|
|
56 <h:outputText value="Birth Date" />
|
|
57 </h:panelGrid>
|
|
58 <ismi:date date="#{CurrentPerson.calBirthDate}" />
|
|
59 <h:outputText />
|
|
60
|
|
61 <h:outputText value="Birth Date Text"
|
|
62 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
|
|
63 <h:inputText size="45"
|
|
64 value="#{CurrentPerson.attributes['birth_date_text']}"
|
|
65 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
|
|
66 <h:outputText
|
|
67 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
|
|
68
|
|
69 <h:outputText value="Death Date" />
|
|
70 <ismi:date date="#{CurrentPerson.calDeathDate}" />
|
|
71 <h:outputText />
|
|
72
|
|
73 <h:outputText value="Death Date Text"
|
|
74 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
|
|
75 <h:inputText size="45"
|
|
76 value="#{CurrentPerson.attributes['death_date_text']}"
|
|
77 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
|
|
78 <h:outputText
|
|
79 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
|
|
80
|
|
81 <h:outputText value="Num Death Date"
|
|
82 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
|
|
83 <h:inputText size="45"
|
|
84 value="#{CurrentPerson.attributes['num_death_date']}"
|
|
85 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
|
|
86 <h:outputText
|
|
87 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
|
|
88
|
|
89 <h:outputText value="Hijra Date Text"
|
|
90 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
|
|
91 <h:inputText size="45"
|
|
92 value="#{CurrentPerson.attributes['hijra_date']}"
|
|
93 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
|
|
94 <h:outputText
|
|
95 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
|
|
96
|
|
97
|
|
98 <h:outputText value="URL (to biography)" />
|
|
99 <h:panelGrid columns="1" id="urlPerson">
|
|
100 <h:inputText size="70" value="#{CurrentPerson.attributes['url']}">
|
|
101 <a4j:ajax event="change" render="urlPerson" />
|
|
102 </h:inputText>
|
|
103 <a href="#{CurrentPerson.attributes['url']}" target="_blank"> <h:outputText
|
|
104 value="#{CurrentPerson.attributes['url']}" />
|
|
105 </a>
|
|
106 </h:panelGrid>
|
|
107 <h:outputText />
|
|
108
|
|
109 <h:outputText value="Authority ID (LoC)" />
|
|
110 <h:inputText size="70"
|
|
111 value="#{CurrentPerson.attributes['authority_id']}" />
|
|
112 <h:outputText />
|
|
113
|
9
|
114 <h:outputText value="Notes"/>
|
7
|
115 <h:inputTextarea cols="70" rows="10"
|
9
|
116 value="#{CurrentPerson.attributes['notes']}"/>
|
|
117 <h:outputText />
|
|
118
|
|
119 <h:outputText value="Notes (old)"/>
|
|
120 <h:inputTextarea cols="70" rows="10"
|
|
121 value="#{CurrentPerson.attributes['notes_old']}"/>
|
7
|
122 <h:outputText />
|
|
123
|
|
124 <h:outputText value="Born in" />
|
|
125 <ismi:autocomplete lo="#{CurrentPerson.birthPlaceLo}" />
|
|
126 <h:outputText />
|
|
127
|
|
128 <h:outputText value="Died in" />
|
|
129 <ismi:autocomplete lo="#{CurrentPerson.deathPlaceLo}" />
|
|
130 <h:outputText />
|
|
131
|
|
132 <h:outputText value="Lived in (event)" />
|
|
133 <h:panelGrid columns="2" id="livedInEventPanel">
|
|
134 <rich:dataTable var="item"
|
|
135 value="#{CurrentPerson.livedInPlaces.entities}"
|
|
136 rendered="#{!empty CurrentPerson.livedInPlaces.entities}"
|
|
137 style="width: 100%;">
|
|
138 <h:column>
|
|
139 <f:facet name="header">
|
|
140 <h:outputText value="Place" style="width: 100px;" />
|
|
141 </f:facet>
|
|
142 <h:outputText value="[#{item.id}] #{item.ownValue}" />
|
|
143 </h:column>
|
|
144 <h:column>
|
|
145 <f:facet name="header">
|
|
146 <h:outputText value="Date" />
|
|
147 </f:facet>
|
|
148 <h:panelGrid columns="1">
|
|
149 <h:outputText
|
|
150 value="#{CurrentPerson.livedInPlaces.calendarMap[item.id].calendarAsHtml}"
|
|
151 escape="false" />
|
|
152 <a4j:commandButton image="#{ApplicationBean1.editImage}"
|
|
153 actionListener="#{CurrentPerson.listenerEditCalendarForLivedInPlaces}"
|
|
154 render="livedInEventPanel,currentCalendarPP" />
|
|
155 </h:panelGrid>
|
|
156 </h:column>
|
|
157 <h:column>
|
|
158 <h:selectBooleanCheckbox
|
|
159 value="#{CurrentPerson.livedInPlaces.selections[item.id]}" />
|
|
160 </h:column>
|
|
161 </rich:dataTable>
|
107
|
162 <a4j:commandButton value="Remove Selected"
|
7
|
163 actionListener="#{CurrentPerson.livedInPlaces.listenerRemoveSelection}"
|
|
164 rendered="#{!empty CurrentPerson.livedInPlaces.entities}"
|
|
165 render="livedInEventPanel" />
|
|
166
|
|
167 <ismi:autocomplete lo="#{CurrentPerson.livedInPlaces.lo}" />
|
|
168 <a4j:commandButton value="ADD"
|
|
169 actionListener="#{CurrentPerson.livedInPlaces.listenerAdd}"
|
|
170 render="livedInEventPanel" />
|
|
171
|
|
172 </h:panelGrid>
|
|
173 <h:outputText />
|
|
174
|
|
175 </h:panelGrid>
|
|
176
|
|
177 <ismi:entityList value="#{CurrentPerson.studentOfList}" />
|
|
178
|
|
179 <h:panelGrid columns="3" styleClass="createPanel"
|
|
180 columnClasses="createPanelFirstColumn">
|
|
181
|
|
182 <h:outputText value="Floruit Dates" />
|
|
183 <h:panelGrid columns="1" id="floruitPanel">
|
|
184 <h:panelGrid columns="2">
|
|
185 <h:dataTable value="#{CurrentPerson.floruitList.entities}" var="item"
|
|
186 rendered="#{!empty CurrentPerson.floruitList.entities}">
|
|
187 <h:column>
|
|
188 <h:panelGrid columns="1">
|
|
189 <h:outputText
|
|
190 value="#{CurrentPerson.floruitList.calendarMap[item.id].calendarAsHtml}"
|
|
191 escape="false" />
|
|
192 <a4j:commandButton image="#{ApplicationBean1.editImage}"
|
|
193 actionListener="#{CurrentPerson.listenerEditCalendarForFloruitDate}"
|
|
194 render="floruitPanel,currentCalendarPP" />
|
|
195 </h:panelGrid>
|
|
196 </h:column>
|
|
197 <h:column>
|
|
198 <h:selectBooleanCheckbox
|
|
199 value="#{CurrentPerson.floruitList.selections[item.id]}" />
|
|
200 </h:column>
|
|
201 </h:dataTable>
|
107
|
202 <h:commandButton value="Remove Selected"
|
7
|
203 actionListener="#{CurrentPerson.floruitList.listenerRemoveSelection}"
|
|
204 rendered="#{!empty CurrentPerson.floruitList.entities}" />
|
|
205 </h:panelGrid>
|
|
206 <h:commandButton value="New Floruit Date"
|
|
207 actionListener="#{CurrentPerson.floruitList.listenerCreateNoUnique}" />
|
|
208 </h:panelGrid>
|
|
209 <h:outputText />
|
|
210
|
|
211 <h:outputText value="Aliases" />
|
|
212 <h:panelGrid columns="1">
|
|
213 <h:panelGrid columns="2">
|
|
214 <h:dataTable value="#{CurrentPerson.aliasList.entities}" var="item"
|
|
215 rendered="#{!empty CurrentPerson.aliasList.entities}">
|
|
216 <h:column>
|
|
217 <h:outputText value="#{item.ownValue}" />
|
|
218 </h:column>
|
|
219 <h:column>
|
|
220 <h:selectBooleanCheckbox
|
|
221 value="#{CurrentPerson.aliasList.selections[item.id]}" />
|
|
222 </h:column>
|
|
223 </h:dataTable>
|
107
|
224 <h:commandButton value="Remove Selected"
|
7
|
225 actionListener="#{CurrentPerson.aliasList.listenerRemoveSelection}"
|
|
226 rendered="#{!empty CurrentPerson.aliasList.entities}" />
|
|
227 </h:panelGrid>
|
|
228
|
|
229 <h:panelGrid columns="2">
|
|
230 <h:inputText value="#{CurrentPerson.aliasList.input}" />
|
|
231 <h:commandButton value="CREATE"
|
|
232 actionListener="#{CurrentPerson.aliasList.listenerCreate}" />
|
|
233 </h:panelGrid>
|
|
234 </h:panelGrid>
|
|
235 <h:outputText />
|
|
236
|
|
237 <h:outputText value="Roles" />
|
|
238 <h:panelGrid columns="2">
|
|
239 <h:dataTable value="#{CurrentPerson.roleList.entities}" var="item"
|
|
240 rendered="#{!empty CurrentPerson.roleList.entities}">
|
|
241 <h:column>
|
|
242 <h:outputText value="#{item.ownValue}" />
|
|
243 </h:column>
|
|
244 <h:column>
|
|
245 <h:selectBooleanCheckbox
|
|
246 value="#{CurrentPerson.roleList.selections[item.id]}" />
|
|
247 </h:column>
|
|
248 </h:dataTable>
|
107
|
249 <h:commandButton value="Remove Selected"
|
7
|
250 rendered="#{!empty CurrentPerson.roleList.entities}"
|
|
251 actionListener="#{CurrentPerson.roleList.listenerRemoveSelection}" />
|
|
252
|
|
253 <h:selectOneMenu value="#{CurrentPerson.roleList.id}"
|
|
254 partialSubmit="true">
|
|
255 <f:selectItems value="#{ApplicationBean1.roleList}" />
|
|
256 </h:selectOneMenu>
|
|
257 <h:commandButton value="ADD"
|
|
258 actionListener="#{CurrentPerson.roleList.listenerAddRole}" />
|
|
259 </h:panelGrid>
|
|
260 <h:outputText />
|
|
261
|
|
262
|
|
263
|
|
264 </h:panelGrid>
|
|
265
|
|
266 <ismi:refWidget entityForm="#{CurrentPerson}" />
|
|
267
|
|
268
|
|
269 <h:panelGrid columns="4">
|
|
270 <h:outputText value="ID of the Person" />
|
|
271 <h:inputText value="#{CurrentPerson.currentId}" />
|
|
272 <h:commandButton value="Load Person By ID"
|
|
273 action="#{CurrentPerson.actionReloadEntity}"
|
|
274 onclick="confirm('Do you really want to reload the entity?');" />
|
|
275 <h:outputText value="#{CurrentPerson.currentIdMsg}"
|
|
276 style="color:red" />
|
|
277 </h:panelGrid>
|
|
278
|
|
279 <h:commandButton value="#{CurrentPerson.saveButtonLabel}"
|
|
280 rendered="#{CurrentPerson.renderSaveButton}"
|
|
281 action="#{CurrentPerson.save}"
|
|
282 onclick="#{ApplicationBean1.JSConfirmationSave}" />
|
|
283 <h:commandButton value="Clear Form"
|
|
284 action="#{CurrentPerson.clearAction}"
|
|
285 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
|
|
286
|
|
287 </ui:composition>
|
|
288 </body>
|
|
289 </html>
|