Mercurial > hg > ismi-richfaces
annotate src/main/webapp/browse/entityRepository.xhtml @ 104:42d0169904f3
add search for place type.
author | casties |
---|---|
date | Fri, 04 Nov 2016 18:10:07 +0100 |
parents | 8d93f3a0108f |
children | 29bd63f749c6 |
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 | |
9 <body> | |
10 <ui:composition template="/templates/publicTemplate.xhtml"> | |
11 | |
12 <ui:define name="publicContent"> | |
13 | |
14 <h:outputStylesheet name="/css/ismi-db/repository.css" /> | |
15 | |
16 <div id="pageTitle"> | |
17 <h:outputText value="Browse Repository" /> | |
18 </div> | |
19 | |
20 <h:panelGrid columns="1" | |
21 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> | |
22 | |
23 <hr/> | |
24 | |
25 <h:panelGrid | |
26 columns="1" | |
27 id="browsePanel" | |
28 styleClass="controlPanel"> | |
29 | |
30 <h:panelGrid columns="2"> | |
31 <h:outputText value="Select entity by class" /> | |
32 <h:selectOneMenu value="#{EntityRepository.objectClass}" | |
33 valueChangeListener="#{EntityRepository.actionChangeDefinition}"> | |
34 <f:selectItems value="#{EntityRepository.definitions}" /> | |
35 <a4j:ajax event="change" | |
36 render="browseAttPanel" /> | |
37 </h:selectOneMenu> | |
38 </h:panelGrid> | |
39 | |
40 <rich:tabPanel activeItem="#{EntityRepository.currentTab}" > | |
41 | |
42 <rich:tab header="Show all" name="Show all"> | |
43 <a4j:commandButton value="Submit" | |
44 action="#{EntityRepository.actionShowAll}" | |
45 styleClass="button" | |
46 render="browseAttPanel"/> | |
47 | |
48 </rich:tab> | |
49 | |
50 <rich:tab header="Search by attributes" name="Search by attributes"> | |
51 <h:panelGrid id="browseAttPanel"> | |
52 <h:panelGrid columns="2" | |
53 rendered="#{EntityRepository.objectClass == 'PERSON'}"> | |
54 <h:column> | |
55 <h:outputText value="Name (arabic)" /> | |
56 </h:column> | |
57 <h:column> | |
58 <h:inputText value="#{EntityRepository.personName}" /> | |
59 </h:column> | |
60 <h:column> | |
61 <h:outputText value="Name Translit" style="width:100px;" /> | |
62 </h:column> | |
63 <h:column> | |
64 <h:inputText value="#{EntityRepository.personNameTranslit}" /> | |
65 </h:column> | |
66 </h:panelGrid> | |
67 | |
68 <h:panelGrid columns="2" | |
69 rendered="#{EntityRepository.objectClass == 'TEXT'}"> | |
70 <h:column> | |
71 <h:outputText value="Full Title (arabic)" /> | |
72 </h:column> | |
73 <h:column> | |
74 <h:inputText value="#{EntityRepository.textFullTitle}" /> | |
75 </h:column> | |
104 | 76 |
7 | 77 <h:column> |
78 <h:outputText value="Full Title Translit" /> | |
79 </h:column> | |
80 <h:column> | |
81 <h:inputText value="#{EntityRepository.textFullTitleTranslit}" /> | |
82 </h:column> | |
104 | 83 |
7 | 84 <h:column> |
85 <h:outputText value="Prime Alias" /> | |
86 </h:column> | |
87 <h:column> | |
88 <h:inputText value="#{EntityRepository.textShortTitle}" /> | |
89 </h:column> | |
90 </h:panelGrid> | |
91 | |
92 <h:panelGrid columns="2" | |
93 rendered="#{EntityRepository.objectClass == 'ALIAS'}"> | |
94 <h:column> | |
95 <h:outputText value="Alias" /> | |
96 </h:column> | |
97 <h:column> | |
98 <h:inputText value="#{EntityRepository.aliasAlias}" /> | |
99 </h:column> | |
100 </h:panelGrid> | |
104 | 101 |
7 | 102 <h:panelGrid columns="2" |
103 rendered="#{EntityRepository.objectClass == 'PLACE'}"> | |
104 <h:column> | |
105 <h:outputText value="Name" /> | |
106 </h:column> | |
107 <h:column> | |
108 <h:inputText value="#{EntityRepository.placeName}" /> | |
109 </h:column> | |
104 | 110 |
111 <h:column> | |
112 <h:outputText value="Type" /> | |
113 </h:column> | |
114 <h:column> | |
115 <h:inputText value="#{EntityRepository.placeType}" /> | |
116 </h:column> | |
7 | 117 </h:panelGrid> |
104 | 118 |
7 | 119 <h:panelGrid columns="2" |
120 rendered="#{EntityRepository.objectClass == 'COLLECTION'}"> | |
121 <h:column> | |
122 <h:outputText value="Name" /> | |
123 </h:column> | |
124 <h:column> | |
125 <h:inputText value="#{EntityRepository.collectionName}" /> | |
126 </h:column> | |
127 </h:panelGrid> | |
104 | 128 |
7 | 129 <h:panelGrid columns="2" |
130 rendered="#{EntityRepository.objectClass == 'WITNESS'}"> | |
131 <h:column> | |
132 <h:outputText value="Ahlwardt No" /> | |
133 </h:column> | |
134 <h:column> | |
135 <h:inputText value="#{EntityRepository.witnessAhlwardtNo}" /> | |
136 </h:column> | |
137 </h:panelGrid> | |
104 | 138 |
7 | 139 <h:panelGrid columns="2" |
140 rendered="#{EntityRepository.objectClass == 'REPOSITORY'}"> | |
141 <h:column> | |
142 <h:outputText value="Name" /> | |
143 </h:column> | |
144 <h:column> | |
145 <h:inputText value="#{EntityRepository.repositoryName}" /> | |
146 </h:column> | |
147 </h:panelGrid> | |
104 | 148 |
7 | 149 <h:panelGrid columns="2" |
150 rendered="#{EntityRepository.objectClass == 'CODEX'}"> | |
151 <h:column> | |
152 <h:outputText value="Shelf Mark" /> | |
153 </h:column> | |
154 <h:column> | |
155 <h:inputText value="#{EntityRepository.codexIdentifier}" /> | |
156 </h:column> | |
157 </h:panelGrid> | |
104 | 158 |
7 | 159 <h:panelGrid columns="2" |
160 rendered="#{EntityRepository.objectClass == 'SUBJECT'}"> | |
161 <h:column> | |
162 <h:outputText value="Type" /> | |
163 </h:column> | |
164 <h:column> | |
165 <h:selectOneMenu value="#{EntityRepository.subjectType}"> | |
166 <f:selectItems | |
167 value="#{EntityRepository.suggestedSubjectTypes}" /> | |
168 </h:selectOneMenu> | |
169 </h:column> | |
170 </h:panelGrid> | |
104 | 171 |
81
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
172 <h:panelGrid columns="2" |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
173 rendered="#{EntityRepository.objectClass == 'REFERENCE'}"> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
174 <h:column> |
88 | 175 <h:outputText value="Reference (EndNote) ID number" /> |
81
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
176 </h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
177 <h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
178 <h:inputText value="#{EntityRepository.referenceBibIdNo}" /> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
179 </h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
180 </h:panelGrid> |
104 | 181 |
7 | 182 <a4j:commandButton value="Submit" |
183 rendered="#{EntityRepository.renderedSearch}" | |
184 action="#{EntityRepository.actionSearchByAttributes}" styleClass="button" | |
185 render="browseAttPanel"/> | |
186 </h:panelGrid> | |
187 | |
188 </rich:tab> | |
189 <rich:tab header="Search by own value" name="Search by own value"> | |
190 | |
191 <h:panelGrid columns="2"> | |
192 <h:outputText value="Own Value"/> | |
193 <h:inputText value="#{EntityRepository.ocTerm}"/> | |
194 <h:outputText/> | |
195 <a4j:commandButton value="Submit" | |
196 rendered="#{EntityRepository.renderedSearch}" | |
197 action="#{EntityRepository.actionSearchByOwnvalue}" styleClass="button" | |
198 render="browseAttPanel"/> | |
199 </h:panelGrid> | |
200 | |
201 </rich:tab> | |
202 </rich:tabPanel> | |
203 | |
204 | |
205 </h:panelGrid> | |
206 | |
207 <hr/> | |
208 | |
209 | |
210 <h:panelGrid columns="1" | |
211 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;" | |
212 rendered="#{EntityRepository.resultMode == 'advanced'}"> | |
213 <ui:include src="components/advancedResult.xhtml" /> | |
214 </h:panelGrid> | |
215 | |
216 <h:panelGrid columns="1" | |
217 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;" | |
218 rendered="#{EntityRepository.resultMode == 'all'}"> | |
219 <ui:include src="components/showAllResult.xhtml" /> | |
220 </h:panelGrid> | |
221 </h:panelGrid> | |
222 </ui:define> | |
223 </ui:composition> | |
224 </body> | |
225 </html> |