Mercurial > hg > ismi-richfaces
annotate src/main/webapp/browse/entityRepository.xhtml @ 88:8d93f3a0108f
More work on entering references.
author | casties |
---|---|
date | Thu, 06 Oct 2016 19:03:56 +0200 |
parents | 0d5d36c83e77 |
children | 42d0169904f3 |
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> | |
76 <h:column> | |
77 <h:outputText value="Full Title Translit" /> | |
78 </h:column> | |
79 <h:column> | |
80 <h:inputText value="#{EntityRepository.textFullTitleTranslit}" /> | |
81 </h:column> | |
82 <h:column> | |
83 <h:outputText value="Prime Alias" /> | |
84 </h:column> | |
85 <h:column> | |
86 <h:inputText value="#{EntityRepository.textShortTitle}" /> | |
87 </h:column> | |
88 </h:panelGrid> | |
89 | |
90 <h:panelGrid columns="2" | |
91 rendered="#{EntityRepository.objectClass == 'ALIAS'}"> | |
92 <h:column> | |
93 <h:outputText value="Alias" /> | |
94 </h:column> | |
95 <h:column> | |
96 <h:inputText value="#{EntityRepository.aliasAlias}" /> | |
97 </h:column> | |
98 </h:panelGrid> | |
99 <h:panelGrid columns="2" | |
100 rendered="#{EntityRepository.objectClass == 'PLACE'}"> | |
101 <h:column> | |
102 <h:outputText value="Name" /> | |
103 </h:column> | |
104 <h:column> | |
105 <h:inputText value="#{EntityRepository.placeName}" /> | |
106 </h:column> | |
107 </h:panelGrid> | |
108 <h:panelGrid columns="2" | |
109 rendered="#{EntityRepository.objectClass == 'COLLECTION'}"> | |
110 <h:column> | |
111 <h:outputText value="Name" /> | |
112 </h:column> | |
113 <h:column> | |
114 <h:inputText value="#{EntityRepository.collectionName}" /> | |
115 </h:column> | |
116 </h:panelGrid> | |
117 <h:panelGrid columns="2" | |
118 rendered="#{EntityRepository.objectClass == 'WITNESS'}"> | |
119 <h:column> | |
120 <h:outputText value="Ahlwardt No" /> | |
121 </h:column> | |
122 <h:column> | |
123 <h:inputText value="#{EntityRepository.witnessAhlwardtNo}" /> | |
124 </h:column> | |
125 </h:panelGrid> | |
126 <h:panelGrid columns="2" | |
127 rendered="#{EntityRepository.objectClass == 'REPOSITORY'}"> | |
128 <h:column> | |
129 <h:outputText value="Name" /> | |
130 </h:column> | |
131 <h:column> | |
132 <h:inputText value="#{EntityRepository.repositoryName}" /> | |
133 </h:column> | |
134 </h:panelGrid> | |
135 <h:panelGrid columns="2" | |
136 rendered="#{EntityRepository.objectClass == 'CODEX'}"> | |
137 <h:column> | |
138 <h:outputText value="Shelf Mark" /> | |
139 </h:column> | |
140 <h:column> | |
141 <h:inputText value="#{EntityRepository.codexIdentifier}" /> | |
142 </h:column> | |
143 </h:panelGrid> | |
144 <h:panelGrid columns="2" | |
145 rendered="#{EntityRepository.objectClass == 'SUBJECT'}"> | |
146 <h:column> | |
147 <h:outputText value="Type" /> | |
148 </h:column> | |
149 <h:column> | |
150 <h:selectOneMenu value="#{EntityRepository.subjectType}"> | |
151 <f:selectItems | |
152 value="#{EntityRepository.suggestedSubjectTypes}" /> | |
153 </h:selectOneMenu> | |
154 </h:column> | |
155 </h:panelGrid> | |
81
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
156 <h:panelGrid columns="2" |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
157 rendered="#{EntityRepository.objectClass == 'REFERENCE'}"> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
158 <h:column> |
88 | 159 <h:outputText value="Reference (EndNote) ID number" /> |
81
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
160 </h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
161 <h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
162 <h:inputText value="#{EntityRepository.referenceBibIdNo}" /> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
163 </h:column> |
0d5d36c83e77
added search for bibliography id attribute for REFERENCEs.
casties
parents:
7
diff
changeset
|
164 </h:panelGrid> |
7 | 165 <a4j:commandButton value="Submit" |
166 rendered="#{EntityRepository.renderedSearch}" | |
167 action="#{EntityRepository.actionSearchByAttributes}" styleClass="button" | |
168 render="browseAttPanel"/> | |
169 </h:panelGrid> | |
170 | |
171 </rich:tab> | |
172 <rich:tab header="Search by own value" name="Search by own value"> | |
173 | |
174 <h:panelGrid columns="2"> | |
175 <h:outputText value="Own Value"/> | |
176 <h:inputText value="#{EntityRepository.ocTerm}"/> | |
177 <h:outputText/> | |
178 <a4j:commandButton value="Submit" | |
179 rendered="#{EntityRepository.renderedSearch}" | |
180 action="#{EntityRepository.actionSearchByOwnvalue}" styleClass="button" | |
181 render="browseAttPanel"/> | |
182 </h:panelGrid> | |
183 | |
184 </rich:tab> | |
185 </rich:tabPanel> | |
186 | |
187 | |
188 </h:panelGrid> | |
189 | |
190 <hr/> | |
191 | |
192 | |
193 <h:panelGrid columns="1" | |
194 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;" | |
195 rendered="#{EntityRepository.resultMode == 'advanced'}"> | |
196 <ui:include src="components/advancedResult.xhtml" /> | |
197 </h:panelGrid> | |
198 | |
199 <h:panelGrid columns="1" | |
200 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;" | |
201 rendered="#{EntityRepository.resultMode == 'all'}"> | |
202 <ui:include src="components/showAllResult.xhtml" /> | |
203 </h:panelGrid> | |
204 </h:panelGrid> | |
205 </ui:define> | |
206 </ui:composition> | |
207 </body> | |
208 </html> |