comparison src/main/webapp/browse/entityRepository.xhtml @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children 0d5d36c83e77
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
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>
156 <a4j:commandButton value="Submit"
157 rendered="#{EntityRepository.renderedSearch}"
158 action="#{EntityRepository.actionSearchByAttributes}" styleClass="button"
159 render="browseAttPanel"/>
160 </h:panelGrid>
161
162 </rich:tab>
163 <rich:tab header="Search by own value" name="Search by own value">
164
165 <h:panelGrid columns="2">
166 <h:outputText value="Own Value"/>
167 <h:inputText value="#{EntityRepository.ocTerm}"/>
168 <h:outputText/>
169 <a4j:commandButton value="Submit"
170 rendered="#{EntityRepository.renderedSearch}"
171 action="#{EntityRepository.actionSearchByOwnvalue}" styleClass="button"
172 render="browseAttPanel"/>
173 </h:panelGrid>
174
175 </rich:tab>
176 </rich:tabPanel>
177
178
179 </h:panelGrid>
180
181 <hr/>
182
183
184 <h:panelGrid columns="1"
185 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"
186 rendered="#{EntityRepository.resultMode == 'advanced'}">
187 <ui:include src="components/advancedResult.xhtml" />
188 </h:panelGrid>
189
190 <h:panelGrid columns="1"
191 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"
192 rendered="#{EntityRepository.resultMode == 'all'}">
193 <ui:include src="components/showAllResult.xhtml" />
194 </h:panelGrid>
195 </h:panelGrid>
196 </ui:define>
197 </ui:composition>
198 </body>
199 </html>