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