Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/text.xhtml @ 145:62d5276ed785
move suggestedTextTypes to CurrentTextBean and read types from definition.
clean city type handling.
| author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
|---|---|
| date | Mon, 10 Jul 2017 15:54:54 +0200 |
| parents | 6911b522c6e2 |
| 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 <ui:include src="components/textPopups.xhtml" /> | |
| 14 | |
| 15 <h:panelGroup> | |
| 16 | |
| 17 <h:panelGrid columns="2"> | |
| 18 <h:outputLink value="#{CurrentText.displayUrl}" | |
| 19 title="Display this entity" | |
| 20 rendered="#{!empty CurrentText.displayUrl}"> | |
| 21 <h:graphicImage url="#{ApplicationBean1.displayImage}" /> | |
| 22 </h:outputLink> | |
| 23 <h:outputText value="Text - #{CurrentText.entity.ownValue}" | |
| 24 rendered="#{!empty CurrentText.entity.ownValue}" | |
| 25 styleClass="titlePanel"/> | |
| 26 <h:outputText value="Text" | |
| 27 rendered="#{empty CurrentText.entity.ownValue}" | |
| 28 styleClass="titlePanel"/> | |
| 29 </h:panelGrid> | |
| 30 </h:panelGroup> | |
| 31 | |
| 32 | |
| 33 <h:panelGrid columns="3" styleClass="createPanel" columnClasses="createPanelFirstColumn"> | |
| 34 | |
| 35 <h:outputText value="Full Title (arabic)" /> | |
|
144
6911b522c6e2
118: Problem with Arabic Table of Contents display for TITLE
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
143
diff
changeset
|
36 <h:inputText size="100" style="direction:rtl;" |
| 7 | 37 value="#{CurrentText.attributes['full_title']}" /> |
| 38 <h:outputText /> | |
| 39 | |
| 40 <h:outputText value="Full Title (translit)" id="full_title_translit" /> | |
| 41 | |
| 42 <h:panelGrid columns="1"> | |
| 43 <h:inputText size="100" | |
| 44 data-attName="full_title_translit" | |
| 45 value="#{CurrentText.attributes['full_title_translit']}"> | |
| 46 <a4j:ajax event="keyup" render="romanized_title" listener="#{CurrentText.listenerRomanizeTitleTranslit}" /> | |
| 47 </h:inputText> | |
| 48 <h:outputText id="romanized_title" value="Romanization: #{CurrentText.romanizedTitle}" /> | |
| 49 </h:panelGrid> | |
| 50 | |
| 51 <h:commandButton value="translit" | |
| 52 action="#{CurrentText.translitTitleAction}" /> | |
| 53 | |
| 54 <h:outputText value="Prime Alias"/> | |
| 55 <h:panelGrid columns="1"> | |
| 56 <h:inputText | |
| 57 size="100" value="#{CurrentText.valueShortTitle}"> | |
| 58 <a4j:ajax event="keyup" render="romanized_prime_alias" listener="#{CurrentText.listenerRomanizePrimaAlias}" /> | |
| 59 </h:inputText> | |
| 60 <h:outputText id="romanized_prime_alias" value="Romanization: #{CurrentText.romanizedPrimaAlias}" /> | |
| 61 </h:panelGrid> | |
| 62 <h:outputText /> | |
| 63 | |
|
143
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
64 <h:outputText value="Aliases for Title" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
65 <h:panelGrid columns="1" border="1"> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
66 <h:panelGrid columns="2"> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
67 <h:dataTable value="#{CurrentText.aliasList.entities}" var="item"> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
68 <h:column> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
69 <h:outputText value="#{item.ownValue}" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
70 </h:column> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
71 <h:column> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
72 <h:selectBooleanCheckbox |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
73 value="#{CurrentText.aliasList.selections[item.id]}" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
74 </h:column> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
75 </h:dataTable> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
76 <h:commandButton value="Remove Selection" |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
77 actionListener="#{CurrentText.aliasList.listenerRemoveSelection}" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
78 </h:panelGrid> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
79 |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
80 <h:panelGrid columns="2"> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
81 <h:inputText value="#{CurrentText.aliasList.input}" |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
82 style="width:500px;" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
83 <h:commandButton value="CREATE" |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
84 actionListener="#{CurrentText.aliasList.listenerCreate}" /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
85 </h:panelGrid> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
86 </h:panelGrid> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
87 <h:outputText /> |
|
1c09041f1182
110: The title-as-written-on-manuscript in the witness form does not save
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
139
diff
changeset
|
88 |
| 7 | 89 <h:outputText value="Language" /> |
| 90 <h:selectOneMenu partialSubmit="true" | |
| 91 value="#{CurrentText.attributes['language']}"> | |
| 92 <f:selectItems value="#{ApplicationBean1.suggestedLanguages}" /> | |
| 93 </h:selectOneMenu> | |
| 94 <h:outputText /> | |
| 95 | |
| 96 <h:outputText value="Subject" /> | |
| 97 <h:selectOneMenu partialSubmit="true" | |
| 98 value="#{CurrentText.idSubject}"> | |
| 99 <f:selectItems value="#{ApplicationBean1.suggestedSubjects}" /> | |
| 100 </h:selectOneMenu> | |
| 101 <h:outputText /> | |
| 102 | |
| 103 | |
| 104 <h:outputText value="Created by" /> | |
| 105 <a4j:outputPanel id="createByPanel"> | |
| 106 <ismi:autocomplete lo="#{CurrentText.authorLo}" /> | |
| 107 </a4j:outputPanel> | |
| 108 <h:commandButton value="Show all authors" | |
| 109 actionListener="#{CurrentText.listenerShowAllAuthors}"> | |
| 110 </h:commandButton> | |
| 111 | |
| 120 | 112 <h:outputText value="Misattributed to" /> |
| 7 | 113 <ui:include src="components/misattribution.xhtml" /> |
| 114 <h:outputText /> | |
| 115 | |
| 116 | |
| 117 <h:outputText value="Created in" /> | |
| 118 <ismi:autocomplete lo="#{CurrentText.placeLo}" /> | |
| 119 <h:outputText /> | |
| 120 | |
| 121 <h:outputText value="Incipit" /> | |
| 122 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
| 123 value="#{CurrentText.attributes['incipit']}" /> | |
| 124 <h:outputText /> | |
| 125 <h:outputText value="Explicit" /> | |
| 126 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
| 127 value="#{CurrentText.attributes['explicit']}" /> | |
| 128 <h:outputText /> | |
| 129 <h:outputText value="Dedication" /> | |
| 130 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
| 131 value="#{CurrentText.attributes['dedication']}" /> | |
| 132 <h:outputText /> | |
| 133 | |
| 134 <h:outputText value="Dedicated to" /> | |
| 135 <a4j:outputPanel id="dedicatedToPanel"> | |
| 136 <ismi:autocomplete lo="#{CurrentText.dedicatedPersonLo}" /> | |
| 137 </a4j:outputPanel> | |
| 138 | |
| 139 <h:commandButton value="Show all persons" | |
| 140 actionListener="#{CurrentText.listenerShowAllDedicatedToPersons}" /> | |
| 141 | |
| 142 <h:outputText value="Creation Date" /> | |
| 143 <ismi:date date="#{CurrentText.creationDate}" /> | |
| 144 <h:outputText /> | |
| 145 | |
| 146 <h:outputText value="Text Type" /> | |
| 147 <h:selectOneMenu partialSubmit="true" | |
| 148 value="#{CurrentText.attributes['text_type']}"> | |
|
145
62d5276ed785
move suggestedTextTypes to CurrentTextBean and read types from definition.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
144
diff
changeset
|
149 <f:selectItems value="#{CurrentText.suggestedTextTypes}" /> |
| 7 | 150 </h:selectOneMenu> |
| 151 <h:outputText /> | |
| 152 | |
| 153 <h:outputText value="Text arrangement" /> | |
| 154 <h:inputTextarea cols="65" rows="10" | |
| 155 value="#{CurrentText.attributes['text_arrangement']}" /> | |
| 156 <h:outputText /> | |
| 157 | |
| 158 <h:outputText value="Table of Contents" /> | |
| 76 | 159 <rich:editor |
|
144
6911b522c6e2
118: Problem with Arabic Table of Contents display for TITLE
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
143
diff
changeset
|
160 value="#{CurrentText.attributes['table_of_contents']}" |
|
6911b522c6e2
118: Problem with Arabic Table of Contents display for TITLE
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
143
diff
changeset
|
161 style="direction:rtl;" /> |
| 76 | 162 <!-- <h:inputTextarea cols="65" rows="10" |
| 7 | 163 value="#{CurrentText.attributes['table_of_contents']}" |
| 164 style="direction: rtl;" /> | |
| 76 | 165 <h:outputText /> --> |
| 7 | 166 |
| 167 <h:outputText value="Notes" /> | |
| 168 <h:inputTextarea cols="65" rows="10" | |
| 169 value="#{CurrentText.attributes['notes']}" /> | |
| 170 <h:outputText /> | |
| 9 | 171 |
| 172 <h:outputText value="Notes (old)" /> | |
| 173 <h:inputTextarea cols="65" rows="10" | |
| 174 value="#{CurrentText.attributes['notes_old']}" /> | |
| 175 <h:outputText /> | |
| 7 | 176 |
| 177 <h:outputText value="Commentary on" /> | |
| 178 <ismi:autocomplete lo="#{CurrentText.commentaryLo}" /> | |
| 179 <h:outputText/> | |
| 180 | |
| 181 <h:outputText value="Translation of" /> | |
| 182 <ismi:autocomplete lo="#{CurrentText.translationLo}" /> | |
| 183 <h:outputText/> | |
| 184 | |
| 185 <h:outputText value="Version of" /> | |
| 186 <ismi:autocomplete lo="#{CurrentText.versionLo}" /> | |
| 187 <h:outputText/> | |
| 188 | |
| 189 <h:outputText value="Aliases for Explicit" /> | |
| 190 <h:panelGrid columns="1" border="1"> | |
| 191 <h:panelGrid columns="2"> | |
| 192 <h:dataTable value="#{CurrentText.explicitAliasList.entities}" | |
| 193 var="item"> | |
| 194 <h:column> | |
| 195 <h:outputText value="#{item.ownValue}" /> | |
| 196 </h:column> | |
| 197 <h:column> | |
| 198 <h:selectBooleanCheckbox | |
| 199 value="#{CurrentText.explicitAliasList.selections[item.id]}" /> | |
| 200 </h:column> | |
| 201 </h:dataTable> | |
| 202 <h:commandButton value="Remove Selection" | |
| 203 actionListener="#{CurrentText.explicitAliasList.listenerRemoveSelection}" /> | |
| 204 </h:panelGrid> | |
| 205 | |
| 206 <h:panelGrid columns="2"> | |
| 207 <h:inputText value="#{CurrentText.explicitAliasList.input}" | |
| 208 style="direction: rtl;width:500px;" /> | |
| 209 <h:commandButton value="CREATE" | |
| 210 actionListener="#{CurrentText.explicitAliasList.listenerCreate}" /> | |
| 211 </h:panelGrid> | |
| 212 </h:panelGrid> | |
| 213 <h:outputText /> | |
| 214 | |
| 215 <h:outputText value="Aliases for Incipit" /> | |
| 216 <h:panelGrid columns="1" border="1"> | |
| 217 <h:panelGrid columns="2"> | |
| 218 <h:dataTable value="#{CurrentText.incipitAliasList.entities}" | |
| 219 var="item"> | |
| 220 <h:column> | |
| 221 <h:outputText value="#{item.ownValue}" /> | |
| 222 </h:column> | |
| 223 <h:column> | |
| 224 <h:selectBooleanCheckbox | |
| 225 value="#{CurrentText.incipitAliasList.selections[item.id]}" /> | |
| 226 </h:column> | |
| 227 </h:dataTable> | |
| 228 <h:commandButton value="Remove Selection" | |
| 229 actionListener="#{CurrentText.incipitAliasList.listenerRemoveSelection}" /> | |
| 230 </h:panelGrid> | |
| 231 | |
| 232 <h:panelGrid columns="2"> | |
| 233 <h:inputText value="#{CurrentText.incipitAliasList.input}" | |
| 234 style="direction: rtl;width:500px;" /> | |
| 235 <h:commandButton value="CREATE" | |
| 236 actionListener="#{CurrentText.incipitAliasList.listenerCreate}" /> | |
| 237 </h:panelGrid> | |
| 238 </h:panelGrid> | |
| 239 <h:outputText /> | |
| 240 </h:panelGrid> | |
| 241 | |
| 242 <ismi:refWidget entityForm="#{CurrentText}" /> | |
| 243 | |
| 244 <h:panelGrid columns="4"> | |
| 245 <h:outputText value="ID of the Text" /> | |
| 246 <h:inputText value="#{CurrentText.currentId}" /> | |
| 247 <h:commandButton value="Load Text By ID" | |
| 248 action="#{CurrentText.actionReloadEntity}" | |
| 249 onclick="confirm('Do you really want to reload the entity?');" /> | |
| 250 <h:outputText value="#{CurrentText.currentIdMsg}" style="color:red" /> | |
| 251 </h:panelGrid> | |
| 252 | |
|
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:
120
diff
changeset
|
253 <a4j:commandButton value="#{CurrentText.saveButtonLabel}" |
| 7 | 254 rendered="#{CurrentText.renderSaveButton}" |
| 255 action="#{CurrentText.save}" | |
| 256 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
| 257 <h:commandButton value="Clear Form" | |
| 258 action="#{CurrentText.clearAction}" | |
| 259 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
| 260 | |
| 261 <h:outputText rendered="#{CurrentText.create_error}" | |
| 262 value="City already exists - not saved!" /> | |
| 263 | |
| 264 | |
| 265 </ui:composition> | |
| 266 </body> | |
| 267 </html> |
