Mercurial > hg > ismi-richfaces
annotate src/main/webapp/templates/main_template.xhtml @ 188:34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 06 Nov 2018 20:05:49 +0100 |
parents | 0d31c8be7c31 |
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 <h:head> | |
10 <title>ismi</title> | |
11 <h:outputStylesheet name="/css/ismi-db/default.css" /> | |
12 <h:outputStylesheet name="/css/ismi-db/popupPanel.css" /> | |
13 | |
14 <h:outputScript name="/js/autocomplete.js" /> | |
15 | |
16 </h:head> | |
17 | |
18 <h:body> | |
19 | |
20 <h:form> | |
21 | |
22 <!-- Message --> | |
23 <h:panelGrid id="msgPp"> | |
24 <a4j:outputPanel ajaxRendered="true"> | |
25 | |
26 | |
27 <h:panelGroup rendered="#{!empty Session.generalMsgList}"> | |
175
3d8b31508128
PublicByAuthor feature works now.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
153
diff
changeset
|
28 <div style="z-index:100;" class="rf-pp-shade"> |
7 | 29 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> |
30 </div> | |
31 | |
32 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"> | |
33 | |
34 <div class="ismi-pp-hdr"> | |
35 <div class="ismi-pp-hdr-cnt">Message</div> | |
36 </div> | |
37 | |
38 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel"> | |
39 <h:panelGrid columns="2"> | |
40 <h:graphicImage url="/resources/images/info_32.png" /> | |
175
3d8b31508128
PublicByAuthor feature works now.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
153
diff
changeset
|
41 <h:panelGrid style="text-align:left; min-width:60em"> |
7 | 42 <h:dataTable value="#{Session.generalMsgList}" var="msg" |
177
af1018d06443
PublicByAuthor feature with new "Select by public and MAMS" works now!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
176
diff
changeset
|
43 rows="0"> |
7 | 44 <h:column> |
45 <h:outputText value="#{msg}" /> | |
46 </h:column> | |
47 </h:dataTable> | |
48 </h:panelGrid> | |
49 </h:panelGrid> | |
50 <a4j:commandButton value="OK" | |
51 actionListener="#{Session.actionCloseGeneralMsgDialog}" | |
52 render="msgPp" /> | |
53 </h:panelGrid> | |
54 | |
55 </h:panelGrid> | |
56 | |
57 </h:panelGroup> | |
58 </a4j:outputPanel> | |
59 </h:panelGrid> | |
60 | |
61 <!-- Message --> | |
62 <h:panelGrid id="errorMsgPp"> | |
63 <a4j:outputPanel ajaxRendered="true"> | |
64 <h:panelGroup rendered="#{!empty Session.errorMsgList}"> | |
177
af1018d06443
PublicByAuthor feature with new "Select by public and MAMS" works now!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
176
diff
changeset
|
65 <div style="z-index:100;" class="rf-pp-shade"> |
7 | 66 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> |
67 </div> | |
68 | |
69 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"> | |
70 | |
71 <div class="ismi-pp-hdr"> | |
72 <div class="ismi-pp-hdr-cnt">Message Error</div> | |
73 </div> | |
74 | |
75 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel"> | |
76 <h:panelGrid columns="2"> | |
77 <h:graphicImage url="/resources/images/error_32.png" /> | |
78 <h:panelGrid style="text-align:left"> | |
79 <h:dataTable value="#{Session.errorMsgList}" var="msg" | |
177
af1018d06443
PublicByAuthor feature with new "Select by public and MAMS" works now!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
176
diff
changeset
|
80 rows="0"> |
7 | 81 <h:column> |
82 <h:outputText value="#{msg}" /> | |
83 </h:column> | |
84 </h:dataTable> | |
85 </h:panelGrid> | |
86 </h:panelGrid> | |
87 <a4j:commandButton value="OK" | |
88 actionListener="#{Session.actionCloseErrorMsgDialog}" | |
89 render="errorMsgPp" /> | |
90 </h:panelGrid> | |
91 </h:panelGrid> | |
92 </h:panelGroup> | |
93 </a4j:outputPanel> | |
94 </h:panelGrid> | |
95 | |
96 <div id="header"> | |
97 | |
98 <div id="icon"> | |
99 <div id="iconContent"> | |
100 <h:graphicImage | |
101 url="/resources/images/ismi_icon.png" width="90"/> | |
102 </div> | |
103 </div> | |
104 <div id="headerContent"> | |
105 <h1> | |
62
bba950221e71
cleanup. site name on page configurable with openmind.properties "instance-name".
casties
parents:
57
diff
changeset
|
106 <a href="#{ApplicationBean1.root}">#{ApplicationBean1.confService.instanceName}</a> |
7 | 107 </h1> |
108 <p>Islamic Scientific Manuscripts Initiative</p> | |
109 </div> | |
110 </div> | |
111 | |
112 | |
113 <div id="login"> | |
114 <div id="loginContent"> | |
115 <h:panelGrid columns="4"> | |
116 <h:commandLink value="login" rendered="#{Session.user == null}" | |
117 actionListener="#{Session.listenerDisplayLoginDialog}" /> | |
118 <h:outputText value="Logged in as: #{Session.username}" | |
119 rendered="#{Session.user != null}" /> | |
120 | |
121 <h:commandLink value="logout" action="#{Session.logout}" | |
122 rendered="#{Session.user != null}" | |
123 onclick="#{ApplicationBean1.JSConfirmationLogout}" /> | |
124 | |
125 <h:outputText value="|" rendered="#{Session.user != null}" /> | |
126 <h:commandLink value="change password" | |
127 action="#{Session.toProfile}" rendered="#{Session.user != null}" /> | |
128 </h:panelGrid> | |
129 </div> | |
130 </div> | |
131 | |
132 <!-- ################ Menu ################ --> | |
133 <rich:toolbar height="26px" styleClass="menu"> | |
134 | |
135 | |
136 <rich:dropDownMenu mode="ajax" rendered="#{Session.canCreate}"> | |
137 <f:facet name="label"> | |
138 <h:panelGroup> | |
139 <h:outputText value="Create" /> | |
140 </h:panelGroup> | |
141 </f:facet> | |
142 <rich:menuItem label="Create Entry" | |
143 onclick="document.location.href='#{ApplicationBean1.root}/entry/createEntity.xhtml'"> | |
144 </rich:menuItem> | |
145 <rich:menuItem label="Create Event" | |
146 onclick="document.location.href='#{ApplicationBean1.root}/events/eventForm.xhtml'"> | |
147 </rich:menuItem> | |
148 </rich:dropDownMenu> | |
149 | |
96 | 150 <rich:dropDownMenu mode="ajax" rendered="#{Session.canMerge}"> |
151 <f:facet name="label"> | |
152 <h:panelGroup> | |
153 <h:outputText value="Merge" /> | |
154 </h:panelGroup> | |
155 </f:facet> | |
7 | 156 |
96 | 157 <rich:menuItem label="Merge Entities" |
158 onclick="document.location.href='#{ApplicationBean1.root}/merge/generalMerge.xhtml'"> | |
159 </rich:menuItem> | |
160 | |
161 <rich:menuItem label="Join References" | |
162 onclick="document.location.href='#{ApplicationBean1.root}/merge/referenceMerge.xhtml'"> | |
163 </rich:menuItem> | |
164 | |
165 <rich:menuItem label="Merge Import List" | |
166 onclick="document.location.href='#{ApplicationBean1.root}/merge/importMerge.xhtml'"> | |
167 </rich:menuItem> | |
168 </rich:dropDownMenu> | |
85 | 169 |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
170 <rich:dropDownMenu mode="ajax" rendered="#{Session.canMerge}"> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
171 <f:facet name="label"> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
172 <h:panelGroup> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
173 <h:outputText value="Clean" /> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
174 </h:panelGroup> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
175 </f:facet> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
176 |
176
c63d39034b60
PublicByAuthor feature with new "Select by public and MAMS" text-UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
175
diff
changeset
|
177 <rich:menuItem label="Make Texts Public" |
c63d39034b60
PublicByAuthor feature with new "Select by public and MAMS" text-UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
175
diff
changeset
|
178 onclick="document.location.href='#{ApplicationBean1.root}/clean/makeTextsPublic.xhtml'"> |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
179 </rich:menuItem> |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
177
diff
changeset
|
180 |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
177
diff
changeset
|
181 <rich:menuItem label="Find Missing Relations" |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
177
diff
changeset
|
182 onclick="document.location.href='#{ApplicationBean1.root}/clean/missingRelations.xhtml'"> |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
177
diff
changeset
|
183 </rich:menuItem> |
188
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
184 |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
185 <rich:menuItem label="Find Non-Public Entities" |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
186 onclick="document.location.href='#{ApplicationBean1.root}/clean/nonpublicEntities.xhtml'"> |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
187 </rich:menuItem> |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
188 </rich:dropDownMenu> |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
189 |
7 | 190 <h:outputLink rendered="#{Session.canCreate}" |
191 value="#{ApplicationBean1.root}/browse/entityRepository.xhtml">Browse Repository</h:outputLink> | |
192 | |
193 <h:outputLink rendered="#{Session.canCreate}" | |
194 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml">Entity Details</h:outputLink> | |
195 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
51
diff
changeset
|
196 <rich:dropDownMenu mode="ajax" rendered="#{Session.canCreate}"> |
7 | 197 <f:facet name="label"> |
198 <h:panelGroup> | |
199 <h:outputText value="Search" /> | |
200 </h:panelGroup> | |
201 </f:facet> | |
202 <rich:menuItem label="Simple Search" | |
203 onclick="document.location.href='#{ApplicationBean1.root}/search/simpleSearch.xhtml'"> | |
204 </rich:menuItem> | |
205 <rich:menuItem label="Advanced Search" | |
206 onclick="document.location.href='#{ApplicationBean1.root}/search/advancedSearch.xhtml'"> | |
207 </rich:menuItem> | |
208 </rich:dropDownMenu> | |
209 | |
210 <h:outputLink rendered="#{Session.canCreate}" | |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
211 value="#{ApplicationBean1.root}/public/publicCodices.xhtml">Public Codices</h:outputLink> |
7 | 212 |
57 | 213 <h:outputLink rendered="#{Session.admin}" |
7 | 214 value="#{ApplicationBean1.root}/search/biographies.xhtml">Biographies</h:outputLink> |
215 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
216 <h:outputLink rendered="#{Session.admin}" |
7 | 217 value="#{ApplicationBean1.root}/imageServer/displayDigiList.xhtml">Image Server</h:outputLink> |
218 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
219 <h:outputLink rendered="#{Session.admin}" |
7 | 220 value="#{ApplicationBean1.root}/defs/defEditor.xhtml">Definition Editor</h:outputLink> |
221 | |
51
8efabe84b7ea
restricted page editor, definition editor and admin menus to admins.
casties
parents:
7
diff
changeset
|
222 <h:outputLink rendered="#{Session.admin}" |
7 | 223 value="#{ApplicationBean1.root}/admin/admin.xhtml">Admin</h:outputLink> |
224 | |
225 | |
226 | |
227 </rich:toolbar> | |
228 | |
229 <h:panelGrid styleClass="ajaxStatus"> | |
230 <a4j:outputPanel ajaxRendered="true"> | |
231 <a4j:status> | |
232 <f:facet name="start"> | |
233 <h:graphicImage | |
234 value="/resources/images/connectionStatus/connect_active_03.gif" /> | |
235 </f:facet> | |
236 </a4j:status> | |
237 </a4j:outputPanel> | |
238 </h:panelGrid> | |
239 | |
240 <div id="page"> | |
241 <ui:insert name="content" /> | |
242 </div> | |
243 | |
244 </h:form> | |
245 | |
246 </h:body> | |
247 | |
248 </html> |