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