Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/person.xhtml @ 161:8049becb05ca
New ALIAS is_alias_identifier_of CODEX/WITNESS for diverse catalog numbers.
| author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 19 Apr 2018 20:35:12 +0200 |
| parents | 29c4b64caad0 |
| children | 0aa8975784d9 |
| 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 <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 | |
| 130 | 49 <h:outputText value="Prime Alias (deprecated)" /> |
| 7 | 50 <h:inputText |
| 51 valueChangeListener="#{CurrentPerson.shortNameChangeListener}" | |
| 125 | 52 size="80" value="#{CurrentPerson.valueShortName}" /> |
| 53 <h:outputText /> | |
| 54 | |
| 55 <h:outputText value="Aliases" /> | |
| 56 <h:panelGrid columns="1"> | |
| 57 <h:panelGrid columns="2"> | |
| 58 <h:dataTable value="#{CurrentPerson.aliasList.entities}" var="item" | |
| 59 rendered="#{!empty CurrentPerson.aliasList.entities}"> | |
| 60 <h:column> | |
| 61 <h:outputText value="#{item.ownValue}" /> | |
| 62 </h:column> | |
| 63 <h:column> | |
| 64 <h:selectBooleanCheckbox | |
| 65 value="#{CurrentPerson.aliasList.selections[item.id]}" /> | |
| 66 </h:column> | |
| 67 </h:dataTable> | |
| 68 <h:commandButton value="Remove Selected" | |
| 69 actionListener="#{CurrentPerson.aliasList.listenerRemoveSelection}" | |
| 70 rendered="#{!empty CurrentPerson.aliasList.entities}" /> | |
| 71 </h:panelGrid> | |
| 72 | |
| 73 <h:panelGrid columns="2"> | |
| 74 <h:inputText value="#{CurrentPerson.aliasList.input}" size="80"/> | |
| 75 <h:commandButton value="CREATE" | |
| 76 actionListener="#{CurrentPerson.aliasList.listenerCreate}" /> | |
| 77 </h:panelGrid> | |
| 78 </h:panelGrid> | |
| 7 | 79 <h:outputText /> |
| 80 | |
| 81 <h:panelGrid> | |
| 82 <h:outputText value="Birth Date" /> | |
| 83 </h:panelGrid> | |
| 84 <ismi:date date="#{CurrentPerson.calBirthDate}" /> | |
| 85 <h:outputText /> | |
| 86 | |
| 87 <h:outputText value="Birth Date Text" | |
| 88 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" /> | |
| 89 <h:inputText size="45" | |
| 90 value="#{CurrentPerson.attributes['birth_date_text']}" | |
| 91 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" /> | |
| 92 <h:outputText | |
| 93 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" /> | |
| 94 | |
| 95 <h:outputText value="Death Date" /> | |
| 96 <ismi:date date="#{CurrentPerson.calDeathDate}" /> | |
| 97 <h:outputText /> | |
| 98 | |
| 99 <h:outputText value="Death Date Text" | |
| 100 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" /> | |
| 101 <h:inputText size="45" | |
| 102 value="#{CurrentPerson.attributes['death_date_text']}" | |
| 103 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" /> | |
| 104 <h:outputText | |
| 105 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" /> | |
| 106 | |
| 107 <h:outputText value="Num Death Date" | |
| 108 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" /> | |
| 109 <h:inputText size="45" | |
| 110 value="#{CurrentPerson.attributes['num_death_date']}" | |
| 111 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" /> | |
| 112 <h:outputText | |
| 113 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" /> | |
| 114 | |
| 115 <h:outputText value="Hijra Date Text" | |
| 116 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" /> | |
| 117 <h:inputText size="45" | |
| 118 value="#{CurrentPerson.attributes['hijra_date']}" | |
| 119 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" /> | |
| 120 <h:outputText | |
| 121 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" /> | |
| 122 | |
| 123 | |
| 124 <h:outputText value="URL (to biography)" /> | |
| 125 <h:panelGrid columns="1" id="urlPerson"> | |
| 126 <h:inputText size="70" value="#{CurrentPerson.attributes['url']}"> | |
| 127 <a4j:ajax event="change" render="urlPerson" /> | |
| 128 </h:inputText> | |
| 129 <a href="#{CurrentPerson.attributes['url']}" target="_blank"> <h:outputText | |
| 130 value="#{CurrentPerson.attributes['url']}" /> | |
| 131 </a> | |
| 132 </h:panelGrid> | |
| 133 <h:outputText /> | |
| 134 | |
| 135 <h:outputText value="Authority ID (LoC)" /> | |
| 136 <h:inputText size="70" | |
| 137 value="#{CurrentPerson.attributes['authority_id']}" /> | |
| 138 <h:outputText /> | |
| 139 | |
|
150
29c4b64caad0
small cleanup; add mams_number field for PERSON.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
140 <h:outputText value="MAMS number" /> |
|
29c4b64caad0
small cleanup; add mams_number field for PERSON.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
141 <h:inputText size="10" |
|
29c4b64caad0
small cleanup; add mams_number field for PERSON.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
142 value="#{CurrentPerson.attributes['mams_number']}" /> |
|
29c4b64caad0
small cleanup; add mams_number field for PERSON.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
143 <h:outputText /> |
|
29c4b64caad0
small cleanup; add mams_number field for PERSON.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
144 |
| 9 | 145 <h:outputText value="Notes"/> |
| 7 | 146 <h:inputTextarea cols="70" rows="10" |
| 9 | 147 value="#{CurrentPerson.attributes['notes']}"/> |
| 148 <h:outputText /> | |
| 149 | |
| 150 <h:outputText value="Notes (old)"/> | |
| 151 <h:inputTextarea cols="70" rows="10" | |
| 152 value="#{CurrentPerson.attributes['notes_old']}"/> | |
| 7 | 153 <h:outputText /> |
| 154 | |
| 155 <h:outputText value="Born in" /> | |
| 156 <ismi:autocomplete lo="#{CurrentPerson.birthPlaceLo}" /> | |
| 157 <h:outputText /> | |
| 158 | |
| 159 <h:outputText value="Died in" /> | |
| 160 <ismi:autocomplete lo="#{CurrentPerson.deathPlaceLo}" /> | |
| 161 <h:outputText /> | |
| 162 | |
| 135 | 163 <h:outputText value="Lived in" /> |
| 7 | 164 <h:panelGrid columns="2" id="livedInEventPanel"> |
| 165 <rich:dataTable var="item" | |
| 166 value="#{CurrentPerson.livedInPlaces.entities}" | |
| 167 rendered="#{!empty CurrentPerson.livedInPlaces.entities}" | |
| 168 style="width: 100%;"> | |
| 169 <h:column> | |
| 170 <f:facet name="header"> | |
| 171 <h:outputText value="Place" style="width: 100px;" /> | |
| 172 </f:facet> | |
| 173 <h:outputText value="[#{item.id}] #{item.ownValue}" /> | |
| 174 </h:column> | |
| 175 <h:column> | |
| 176 <f:facet name="header"> | |
| 177 <h:outputText value="Date" /> | |
| 178 </f:facet> | |
| 179 <h:panelGrid columns="1"> | |
| 180 <h:outputText | |
| 181 value="#{CurrentPerson.livedInPlaces.calendarMap[item.id].calendarAsHtml}" | |
| 182 escape="false" /> | |
| 183 <a4j:commandButton image="#{ApplicationBean1.editImage}" | |
| 184 actionListener="#{CurrentPerson.listenerEditCalendarForLivedInPlaces}" | |
| 185 render="livedInEventPanel,currentCalendarPP" /> | |
| 186 </h:panelGrid> | |
| 187 </h:column> | |
| 188 <h:column> | |
| 189 <h:selectBooleanCheckbox | |
| 190 value="#{CurrentPerson.livedInPlaces.selections[item.id]}" /> | |
| 191 </h:column> | |
| 192 </rich:dataTable> | |
| 107 | 193 <a4j:commandButton value="Remove Selected" |
| 7 | 194 actionListener="#{CurrentPerson.livedInPlaces.listenerRemoveSelection}" |
| 195 rendered="#{!empty CurrentPerson.livedInPlaces.entities}" | |
| 196 render="livedInEventPanel" /> | |
| 197 | |
| 198 <ismi:autocomplete lo="#{CurrentPerson.livedInPlaces.lo}" /> | |
| 199 <a4j:commandButton value="ADD" | |
| 200 actionListener="#{CurrentPerson.livedInPlaces.listenerAdd}" | |
| 201 render="livedInEventPanel" /> | |
| 202 | |
| 203 </h:panelGrid> | |
| 204 <h:outputText /> | |
| 205 | |
| 206 </h:panelGrid> | |
| 207 | |
| 208 <ismi:entityList value="#{CurrentPerson.studentOfList}" /> | |
| 209 | |
| 210 <h:panelGrid columns="3" styleClass="createPanel" | |
| 211 columnClasses="createPanelFirstColumn"> | |
| 212 | |
| 213 <h:outputText value="Floruit Dates" /> | |
| 214 <h:panelGrid columns="1" id="floruitPanel"> | |
| 215 <h:panelGrid columns="2"> | |
| 216 <h:dataTable value="#{CurrentPerson.floruitList.entities}" var="item" | |
| 217 rendered="#{!empty CurrentPerson.floruitList.entities}"> | |
| 218 <h:column> | |
| 219 <h:panelGrid columns="1"> | |
| 220 <h:outputText | |
| 221 value="#{CurrentPerson.floruitList.calendarMap[item.id].calendarAsHtml}" | |
| 222 escape="false" /> | |
| 223 <a4j:commandButton image="#{ApplicationBean1.editImage}" | |
| 224 actionListener="#{CurrentPerson.listenerEditCalendarForFloruitDate}" | |
| 225 render="floruitPanel,currentCalendarPP" /> | |
| 226 </h:panelGrid> | |
| 227 </h:column> | |
| 228 <h:column> | |
| 229 <h:selectBooleanCheckbox | |
| 230 value="#{CurrentPerson.floruitList.selections[item.id]}" /> | |
| 231 </h:column> | |
| 232 </h:dataTable> | |
| 107 | 233 <h:commandButton value="Remove Selected" |
| 7 | 234 actionListener="#{CurrentPerson.floruitList.listenerRemoveSelection}" |
| 235 rendered="#{!empty CurrentPerson.floruitList.entities}" /> | |
| 236 </h:panelGrid> | |
| 237 <h:commandButton value="New Floruit Date" | |
| 238 actionListener="#{CurrentPerson.floruitList.listenerCreateNoUnique}" /> | |
| 239 </h:panelGrid> | |
| 240 <h:outputText /> | |
| 241 | |
| 242 <h:outputText value="Roles" /> | |
| 243 <h:panelGrid columns="2"> | |
| 244 <h:dataTable value="#{CurrentPerson.roleList.entities}" var="item" | |
| 245 rendered="#{!empty CurrentPerson.roleList.entities}"> | |
| 246 <h:column> | |
| 247 <h:outputText value="#{item.ownValue}" /> | |
| 248 </h:column> | |
| 249 <h:column> | |
| 250 <h:selectBooleanCheckbox | |
| 251 value="#{CurrentPerson.roleList.selections[item.id]}" /> | |
| 252 </h:column> | |
| 253 </h:dataTable> | |
| 107 | 254 <h:commandButton value="Remove Selected" |
| 7 | 255 rendered="#{!empty CurrentPerson.roleList.entities}" |
| 256 actionListener="#{CurrentPerson.roleList.listenerRemoveSelection}" /> | |
| 257 | |
| 258 <h:selectOneMenu value="#{CurrentPerson.roleList.id}" | |
| 259 partialSubmit="true"> | |
| 260 <f:selectItems value="#{ApplicationBean1.roleList}" /> | |
| 261 </h:selectOneMenu> | |
| 262 <h:commandButton value="ADD" | |
| 263 actionListener="#{CurrentPerson.roleList.listenerAddRole}" /> | |
| 264 </h:panelGrid> | |
| 265 <h:outputText /> | |
| 266 | |
| 267 | |
| 268 | |
| 269 </h:panelGrid> | |
| 270 | |
| 271 <ismi:refWidget entityForm="#{CurrentPerson}" /> | |
| 272 | |
| 273 | |
| 274 <h:panelGrid columns="4"> | |
| 275 <h:outputText value="ID of the Person" /> | |
| 276 <h:inputText value="#{CurrentPerson.currentId}" /> | |
| 277 <h:commandButton value="Load Person By ID" | |
| 278 action="#{CurrentPerson.actionReloadEntity}" | |
| 279 onclick="confirm('Do you really want to reload the entity?');" /> | |
| 280 <h:outputText value="#{CurrentPerson.currentIdMsg}" | |
| 281 style="color:red" /> | |
| 282 </h:panelGrid> | |
| 283 | |
|
139
9cd25e1a58f0
change save button to a4j to show busy indicator for person, text, and other entry forms.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
135
diff
changeset
|
284 <a4j:commandButton value="#{CurrentPerson.saveButtonLabel}" |
| 7 | 285 rendered="#{CurrentPerson.renderSaveButton}" |
| 286 action="#{CurrentPerson.save}" | |
| 287 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
| 288 <h:commandButton value="Clear Form" | |
| 289 action="#{CurrentPerson.clearAction}" | |
| 290 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
| 291 | |
| 292 </ui:composition> | |
| 293 </body> | |
| 294 </html> |
