comparison src/main/webapp/entry/digi.xhtml @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children bba950221e71
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 <h:panelGrid>
14 <h:panelGrid columns="2">
15
16 <h:outputText value="Digitalization - [#{CurrentDigi.entity.id}] #{CurrentDigi.entity.ownValue}"
17 rendered="#{!empty CurrentDigi.entity.ownValue}"
18 style="font-size: 12pt;" styleClass="titlePanel" />
19
20 <h:outputText value="Person"
21 rendered="#{empty CurrentDigi.entity.ownValue}"
22 style="font-size: 12pt; " styleClass="titlePanel"/>
23 <h:outputLink
24 value="#{ApplicationBean1.root}/imageServer/displayDigi.jsp?digiId=#{CurrentDigi.entity.id}" >
25 <h:graphicImage value="#{ApplicationBean1.displayImage}" width="20" height="20"/>
26 </h:outputLink>
27 </h:panelGrid>
28 </h:panelGrid>
29
30
31
32 <h:panelGrid columns="3" styleClass="createPanel"
33 columnClasses="createPanelFirstColumn" id="digiPanel">
34
35 <h:outputText value="Name" />
36 <h:inputText size="50"
37 value="#{CurrentDigi.attributes['name']}" />
38 <h:outputText />
39
40 <h:outputText value="Number of files" />
41 <h:inputText size="50"
42 value="#{CurrentDigi.attributes['num_files']}" />
43 <h:outputText />
44
45 <h:outputText value="Codex" styleClass="titlePanel"/>
46 <h:panelGrid columns="4" styleClass="createPanel"
47 columnClasses="createPanelFirstColumn" id="digiCodexPanel">
48
49 <h:outputLabel value="Country" />
50 <ismi:autocomplete lo="#{CurrentDigi.countryLo}" />
51 <h:outputText />
52 <h:panelGrid>
53 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
54 rendered="#{!empty CurrentDigi.countryLo.entity.id}"
55 actionListener="#{CurrentDigi.editThisCountryAction}" />
56 </h:panelGrid>
57
58 <h:outputLabel value="Place/City" />
59 <ismi:autocomplete lo="#{CurrentDigi.cityLo}" />
60 <h:panelGrid>
61 <h:selectOneMenu
62 rendered="#{!empty CurrentDigi.citiesInCurrentCountry}"
63 valueChangeListener="#{CurrentDigi.inCurrentCountryListener}">
64 <f:selectItems value="#{CurrentDigi.citiesInCurrentCountry}" />
65 <a4j:ajax event="change" render="digiCodexPanel" />
66 </h:selectOneMenu>
67 </h:panelGrid>
68 <h:panelGrid>
69 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
70 rendered="#{!empty CurrentDigi.cityLo.entity.id}"
71 actionListener="#{CurrentDigi.editThisCityAction}" />
72 </h:panelGrid>
73
74
75 <h:outputLabel value="Repository" />
76 <ismi:autocomplete lo="#{CurrentDigi.repositoryLo}" />
77 <h:panelGrid>
78 <h:selectOneMenu partialSubmit="true"
79 rendered="#{!empty CurrentDigi.repositoriesInCurrentCity}"
80 valueChangeListener="#{CurrentDigi.inCurrentCityListener}">
81 <f:selectItems value="#{CurrentDigi.repositoriesInCurrentCity}" />
82 <a4j:ajax event="change" render="digiCodexPanel" />
83 </h:selectOneMenu>
84 <h:outputText
85 rendered="#{empty CurrentDigi.repositoriesInCurrentCity}" />
86 </h:panelGrid>
87 <h:panelGrid>
88 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
89 rendered="#{!empty CurrentDigi.repositoryLo.entity.id}"
90 actionListener="#{CurrentDigi.editThisRepositoryAction}" />
91 </h:panelGrid>
92
93
94 <h:outputLabel value="Collection" />
95 <ismi:autocomplete lo="#{CurrentDigi.collectionLo}" />
96 <h:panelGrid>
97 <h:selectOneMenu
98 rendered="#{!empty CurrentDigi.collectionsInCurrentRepository}"
99 valueChangeListener="#{CurrentDigi.inCurrentRepositoryListener}">
100 <f:selectItems
101 value="#{CurrentDigi.collectionsInCurrentRepository}" />
102 <a4j:ajax event="change" render="digiCodexPanel" />
103 </h:selectOneMenu>
104 </h:panelGrid>
105 <h:panelGrid>
106 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
107 rendered="#{!empty CurrentDigi.collectionLo.entity.id}"
108 actionListener="#{CurrentDigi.editThisCollectionAction}" />
109 </h:panelGrid>
110
111 <h:outputLabel value="Shelf Mark / Identifier" />
112 <h:panelGroup>
113 <h:outputText
114 rendered="#{!empty CurrentDigi.codexLo.attribute.ownValue}"
115 value="#{CurrentDigi.codexLo.term}"
116 style="font-style:normal;
117 font-size:15px;
118 font-weight:bold;
119 font-family:sans-serif;" />
120 </h:panelGroup>
121 <h:panelGrid>
122 <h:selectOneMenu
123 rendered="#{!empty CurrentDigi.shelfMarksInCurrentCollection}"
124 valueChangeListener="#{CurrentDigi.identifierChangedListener}">
125 <f:selectItems
126 value="#{CurrentDigi.shelfMarksInCurrentCollection}" />
127 <a4j:ajax event="change" render="digiCodexPanel" />
128 </h:selectOneMenu>
129 </h:panelGrid>
130 <h:panelGrid>
131 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
132 rendered="#{!empty CurrentDigi.codexLo.entity.ownValue}"
133 actionListener="#{CurrentDigi.editThisCodexAction}" />
134 </h:panelGrid>
135
136
137 <h:outputText />
138 <h:commandButton
139 actionListener="#{CurrentDigi.checkConsistencyFromCountryToCodex}"
140 value="Check Consistency From Country To Codex" />
141 <h:outputText />
142 <h:outputText />
143
144
145 </h:panelGrid>
146
147
148 </h:panelGrid>
149
150
151
152
153 <h:panelGrid columns="4">
154 <h:outputText value="ID of the Digitalization" />
155 <h:inputText value="#{CurrentDigi.currentId}" />
156 <h:commandButton value="Load By ID"
157 action="#{CurrentDigi.actionReloadEntity}"
158 onclick="confirm('Do you really want to reload the entity?');" />
159 <h:outputText value="#{CurrentDigi.currentIdMsg}"
160 style="color:red" />
161 </h:panelGrid>
162
163 <h:commandButton
164 value="#{CurrentDigi.saveButtonLabel}"
165 rendered="#{CurrentDigi.renderSaveButton}"
166 action="#{CurrentDigi.save}"
167 onclick="#{ApplicationBean1.JSConfirmationSave}" />
168 <h:commandButton value="Clear Form"
169 action="#{CurrentDigi.clearAction}"
170 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
171
172 </ui:composition>
173 </body>
174 </html>