annotate src/main/webapp/public/publicWitness.jsp @ 12:cbc691bb756b

re-apply Jorges fix to the duplicate global bean-id :-(
author casties
date Tue, 07 Apr 2015 19:36:11 +0000
parents 17551d9f091f
children 27883e041333
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
jurzua
parents:
diff changeset
1 <%@ page contentType="text/html; charset=UTF-8" %>
jurzua
parents:
diff changeset
2 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
jurzua
parents:
diff changeset
3 <%@page import="org.mpi.openmind.repository.bo.Entity"%>
jurzua
parents:
diff changeset
4 <%@page import="de.mpiwg.itgroup.diva.jsp.JSPDigitalization"%>
jurzua
parents:
diff changeset
5
jurzua
parents:
diff changeset
6
jurzua
parents:
diff changeset
7 <html>
jurzua
parents:
diff changeset
8 <head>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
9 <title>Codex Details</title>
7
jurzua
parents:
diff changeset
10
jurzua
parents:
diff changeset
11 <link href="../imageServer/resources/css/diva4ismi.css" type="text/css" rel="stylesheet" />
jurzua
parents:
diff changeset
12 <link href="../imageServer/resources/css/bootstrap.css" type="text/css" rel="stylesheet" />
jurzua
parents:
diff changeset
13 <link href="../imageServer/resources/css/bootstrap-responsive.min.css" type="text/css" rel="stylesheet">
jurzua
parents:
diff changeset
14 <link href="../imageServer/resources/css/style.css" type="text/css" rel="stylesheet">
jurzua
parents:
diff changeset
15 <link href="../imageServer/resources/css/diva.min.css" type="text/css" rel="stylesheet" />
jurzua
parents:
diff changeset
16
jurzua
parents:
diff changeset
17
jurzua
parents:
diff changeset
18 <script type="text/javascript" src="../imageServer/resources/js/jquery.min.js"></script>
jurzua
parents:
diff changeset
19 <script type="text/javascript" src="../imageServer/resources/js/diva.min.js"></script>
jurzua
parents:
diff changeset
20 <script type="text/javascript" src="../imageServer/resources/js/bootstrap.min.js"></script>
jurzua
parents:
diff changeset
21 <script type="text/javascript" src="../imageServer/resources/js/typeahead.js"></script>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
22 <script type="text/javascript" src="../imageServer/resources/js/ismiUtils.js"></script>
7
jurzua
parents:
diff changeset
23 <script type="text/javascript" src="../imageServer/resources/js/diva4ismi.js"></script>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
24
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
25 <jsp:useBean id="witnessPage0" class="de.mpiwg.itgroup.ismi.publicView.pages.WitnessCodexDynamicPage" scope="session" />
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
26 <jsp:setProperty name="witnessPage0" property="request" value="${pageContext.request}" />
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
27 <jsp:setProperty name="witnessPage0" property="response" value="${pageContext.response}" />
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
28
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
29 <%witnessPage0.init();
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
30 if(!witnessPage0.isErrorLoading()){
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
31 response.sendRedirect("../public/publicCodices.xhtml");
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
32 }else{
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
33 %>
7
jurzua
parents:
diff changeset
34
jurzua
parents:
diff changeset
35
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
36 <script type="text/javascript">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
37
7
jurzua
parents:
diff changeset
38 $(document).ready(function () {
jurzua
parents:
diff changeset
39
jurzua
parents:
diff changeset
40 function getURLParams()
jurzua
parents:
diff changeset
41 {
jurzua
parents:
diff changeset
42 var urlParams = {},
jurzua
parents:
diff changeset
43 match,
jurzua
parents:
diff changeset
44 pl = /\+/g, // Regex for replacing addition symbol with a space
jurzua
parents:
diff changeset
45 search = /([^&=]+)=?([^&]*)/g,
jurzua
parents:
diff changeset
46 decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
jurzua
parents:
diff changeset
47 query = window.location.search.substring(1);
jurzua
parents:
diff changeset
48 while (match = search.exec(query))
jurzua
parents:
diff changeset
49 {
jurzua
parents:
diff changeset
50 urlParams[decode(match[1])] = decode(match[2]);
jurzua
parents:
diff changeset
51 }
jurzua
parents:
diff changeset
52
jurzua
parents:
diff changeset
53 return urlParams;
jurzua
parents:
diff changeset
54 }
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
55
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
56 $('#table-titles-in-codex').on('click', '.show-title-details', function(ev){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
57 var dv = $('#diva-wrapper').data('diva');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
58 var start_page = $(this).data('start');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
59
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
60 if(start_page){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
61 dv.gotoPageByNumber(start_page);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
62 ev.preventDefault();
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
63 }else{
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
64 alert("No page assigned to this title.");
7
jurzua
parents:
diff changeset
65 }
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
66 var titleId = $(this).data('title-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
67 showTitleDetailsSmall(titleId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
68 var witnessId = $(this).data('witness-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
69 showWitnessDetailsSmall(witnessId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
70 });
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
71
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
72 $('#additional-information').on('click',
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
73 '.title-details-show-more', function(ev){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
74 var titleId = $(this).data('title-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
75 showTitleDetailsBig(titleId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
76 });
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
77
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
78 $('#additional-information').on('click', '.title-details-show-less', function(ev){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
79 var titleId = $(this).data('title-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
80 showTitleDetailsSmall(titleId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
81 });
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
82
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
83 $('#additional-information2').on('click', '.witness-details-show-more', function(ev){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
84 var witnessId = $(this).data('witness-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
85 showWitnessDetailsBig(witnessId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
86 });
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
87
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
88 $('#additional-information2').on('click', '.witness-details-show-less', function(ev){
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
89 var witnessId = $(this).data('witness-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
90 showWitnessDetailsSmall(witnessId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
91 });
7
jurzua
parents:
diff changeset
92
jurzua
parents:
diff changeset
93 $('.ismi-fullscreen-icon').on('click', function(ev) {
jurzua
parents:
diff changeset
94
jurzua
parents:
diff changeset
95 var jaja = $( this ).data('in-fullscreen-mode');
jurzua
parents:
diff changeset
96 var panel = $( "#attributesPanel" );
jurzua
parents:
diff changeset
97 if(jaja == true){
jurzua
parents:
diff changeset
98 //panel.css('backgroundColor','#EE178C');
jurzua
parents:
diff changeset
99 panel.css('left','0');
jurzua
parents:
diff changeset
100 panel.css('max-height','100%');
jurzua
parents:
diff changeset
101 panel.css('max-width','100%');
jurzua
parents:
diff changeset
102 panel.css('position','fixed');
jurzua
parents:
diff changeset
103 panel.css('top','0');
jurzua
parents:
diff changeset
104 panel.css('width','100%');
jurzua
parents:
diff changeset
105 panel.css('z-index','102');
jurzua
parents:
diff changeset
106 panel.css('overflow','scroll');
jurzua
parents:
diff changeset
107
jurzua
parents:
diff changeset
108 //panel.data('in-fullscreen-mode') = !panel.data('in-fullscreen-mode');
jurzua
parents:
diff changeset
109 $( this ).data('in-fullscreen-mode', false);
jurzua
parents:
diff changeset
110 //alert("Fue true");
jurzua
parents:
diff changeset
111 }
jurzua
parents:
diff changeset
112 if(jaja == false){
jurzua
parents:
diff changeset
113
jurzua
parents:
diff changeset
114 panel.css('left','');
jurzua
parents:
diff changeset
115 panel.css('max-height','');
jurzua
parents:
diff changeset
116 panel.css('max-width','');
jurzua
parents:
diff changeset
117 panel.css('position','');
jurzua
parents:
diff changeset
118 panel.css('top','0');
jurzua
parents:
diff changeset
119 panel.css('width','');
jurzua
parents:
diff changeset
120 panel.css('z-index','');
jurzua
parents:
diff changeset
121 panel.css('overflow','');
jurzua
parents:
diff changeset
122
jurzua
parents:
diff changeset
123 $( this ).data('in-fullscreen-mode', true);
jurzua
parents:
diff changeset
124 }
jurzua
parents:
diff changeset
125 });
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
126
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
127
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
128 $('#page-jump').on('keypress', function(ev)
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
129 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
130 if (ev.which == '13')
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
131 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
132 var dv = $('#diva-wrapper').data('diva');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
133 var value = $(this).val();
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
134 var success = dv.gotoPageByNumber(value);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
135
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
136 if (!success)
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
137 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
138 if (!$('#page-jump-group').hasClass('error'))
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
139 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
140 $('#page-jump-group').addClass('error');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
141 $('#page-jump-controls').append('<span id="jump-error-help" class="help-inline">The page you specified is not valid.</span>');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
142 }
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
143 }
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
144 else
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
145 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
146 if ($('#page-jump-group').hasClass('error'))
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
147 {
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
148 $('#page-jump-group').removeClass('error');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
149 $('#jump-error-help').remove();
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
150 }
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
151 }
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
152
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
153 }
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
154 });
7
jurzua
parents:
diff changeset
155
jurzua
parents:
diff changeset
156 $('.go-to-witness-link').on('click', function(ev) {
jurzua
parents:
diff changeset
157 var dv = $('#diva-wrapper').data('diva');
jurzua
parents:
diff changeset
158 var start_page = $(this).data('start');
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
159
7
jurzua
parents:
diff changeset
160 if(start_page){
jurzua
parents:
diff changeset
161 dv.gotoPageByNumber(start_page);
jurzua
parents:
diff changeset
162 ev.preventDefault();
jurzua
parents:
diff changeset
163 }else{
jurzua
parents:
diff changeset
164 alert("No page assigned to this witness.");
jurzua
parents:
diff changeset
165 }
jurzua
parents:
diff changeset
166
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
167 var witnessId = $(this).data('witness-id');
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
168 showWitnessDetailsSmall(witnessId);
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
169
7
jurzua
parents:
diff changeset
170 });
jurzua
parents:
diff changeset
171
jurzua
parents:
diff changeset
172 function handlePageSwitch(idx, fn, divid)
jurzua
parents:
diff changeset
173 {
jurzua
parents:
diff changeset
174 // page number is what we're after, which is always
jurzua
parents:
diff changeset
175 // page index + 1.
jurzua
parents:
diff changeset
176 $('#current-page-idx').text(idx + 1);
jurzua
parents:
diff changeset
177 $('#current-page-fn').text(fn);
jurzua
parents:
diff changeset
178 }
jurzua
parents:
diff changeset
179
jurzua
parents:
diff changeset
180 function handleDocumentLoaded(idx, fn)
jurzua
parents:
diff changeset
181 {
jurzua
parents:
diff changeset
182 var witnesses = {};
jurzua
parents:
diff changeset
183
jurzua
parents:
diff changeset
184 // we could do this with an ajax request, but we have
jurzua
parents:
diff changeset
185 // the variables already here, we just need to get them
jurzua
parents:
diff changeset
186 // from Django and not JS.
jurzua
parents:
diff changeset
187
jurzua
parents:
diff changeset
188 var urlParams = getURLParams();
jurzua
parents:
diff changeset
189 if (urlParams.hasOwnProperty('witness'))
jurzua
parents:
diff changeset
190 {
jurzua
parents:
diff changeset
191 urlWitness = parseInt(urlParams['witness'], 10);
jurzua
parents:
diff changeset
192
jurzua
parents:
diff changeset
193 // this won't be populated if the witness doesn't have a
jurzua
parents:
diff changeset
194 // start page set.
jurzua
parents:
diff changeset
195 if (witnesses.hasOwnProperty(urlWitness))
jurzua
parents:
diff changeset
196 {
jurzua
parents:
diff changeset
197 this.gotoPageByNumber(witnesses[urlWitness]);
jurzua
parents:
diff changeset
198 }
jurzua
parents:
diff changeset
199 }
jurzua
parents:
diff changeset
200 }
jurzua
parents:
diff changeset
201
jurzua
parents:
diff changeset
202 $("#diva-wrapper").diva(
jurzua
parents:
diff changeset
203 {
jurzua
parents:
diff changeset
204 enableAutoHeight: true,
jurzua
parents:
diff changeset
205 enableAutoTitle: false,
jurzua
parents:
diff changeset
206 enableGotoPage: false,
jurzua
parents:
diff changeset
207 fixedHeightGrid: false,
jurzua
parents:
diff changeset
208 contained: true,
jurzua
parents:
diff changeset
209 iipServerURL: divaGlobal.iipServerURL,
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
210 digiId: "<%=witnessPage0.getDigiId()%>",
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
211 objectData: divaGlobal.rest_url + "/rest/diva/proxy/json/<%=witnessPage0.getDigiLabel()%>",
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
212 imageDir: "/data7/srv/images/<%=witnessPage0.getDigiLabel()%>",
7
jurzua
parents:
diff changeset
213 onSetCurrentPage : handlePageSwitch,
jurzua
parents:
diff changeset
214 onDocumentLoaded : handleDocumentLoaded,
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
215 goDirectlyTo: <%=witnessPage0.getStartPage()%>,
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
216 inFullscreen: <%=witnessPage0.getImageFullscreen()%>,
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
217 zoomLevel: 1,
7
jurzua
parents:
diff changeset
218 canvasPlugin: {
jurzua
parents:
diff changeset
219 proxyURL: divaGlobal.rest_url + "/rest/diva/proxy/image"
jurzua
parents:
diff changeset
220 }
jurzua
parents:
diff changeset
221 });
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
222
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
223
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
224
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
225 var witnessId = <%=witnessPage0.getWitnessId()%>;
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
226 showWitnessDetailsBig(witnessId);
7
jurzua
parents:
diff changeset
227 });
jurzua
parents:
diff changeset
228
jurzua
parents:
diff changeset
229
jurzua
parents:
diff changeset
230 </script>
jurzua
parents:
diff changeset
231 <% } %>
jurzua
parents:
diff changeset
232 </head>
jurzua
parents:
diff changeset
233
jurzua
parents:
diff changeset
234 <body bgcolor=white>
jurzua
parents:
diff changeset
235
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
236 <% if(witnessPage0.isErrorLoading()) { %>
7
jurzua
parents:
diff changeset
237 <input type='hidden' name='csrfmiddlewaretoken' value='psDBHsF5a1mttLSKeUgoUUVN3HL6f8Re' />
jurzua
parents:
diff changeset
238 <jsp:include page="header.jsp" />
jurzua
parents:
diff changeset
239
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
240 <!--
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
241 <div class="magnifiedAttributePanel">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
242 </div>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
243 -->
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
244
7
jurzua
parents:
diff changeset
245 <div class="custom-container">
jurzua
parents:
diff changeset
246
jurzua
parents:
diff changeset
247
jurzua
parents:
diff changeset
248 <div class="row-fluid">
jurzua
parents:
diff changeset
249 <div id="attributesPanel" class="span4 page" style="min-height: 700px;">
jurzua
parents:
diff changeset
250
jurzua
parents:
diff changeset
251 <a class="ismi-fullscreen-icon" href="#" data-in-fullscreen-mode="true"></a>
jurzua
parents:
diff changeset
252
jurzua
parents:
diff changeset
253 <div class="attPanel">
jurzua
parents:
diff changeset
254
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
255 <c:if test="${witnessPage0.getDigi() != null}">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
256
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
257 <input type="hidden" id="digi_id" value="${witnessPage0.getDigi().getId()}">
7
jurzua
parents:
diff changeset
258
jurzua
parents:
diff changeset
259 <div class="divaBackgroud">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
260
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
261 <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
262
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
263 <h4><%=witnessPage0.getDigiLabel()%></h4>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
264
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
265 <c:if test="${witnessPage0.getWitnessList().size() > 0}">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
266 <span class="titlePanel">Titles in this Codex</span>
7
jurzua
parents:
diff changeset
267
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
268 <table id="table-titles-in-codex" class="table table-bordered table-condensed divaPanel">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
269 <thead>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
270 <tr>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
271 <th class="tableHead">Title</th>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
272 <th class="tableHead">Folios</th>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
273 </tr>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
274 </thead>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
275 <tbody>
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
276 <c:forEach var="witness" items="${witnessPage0.getWitnessList()}">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
277 <tr>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
278 <td class="tdTitle">
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
279 <!-- href="${witnessPage0.getAppBean().getRoot()}/public/dynamicPage.xhtml?eid=${witness.titleId}" -->
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
280 <a class="show-title-details"
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
281 data-title-id="${witness.titleId}"
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
282 data-witness-id="${witness.id}"
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
283 data-start="${witness.startPage}">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
284 <c:out value="${witness.title}"/>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
285 </a>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
286
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
287 </td>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
288 <td class="columnCentered">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
289 <c:if test="${witness.startPage != null}">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
290 <a class="witness-new-window" data-witness-id="${witness.id}" data-start="${witness.startPage}"
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
291 href="${witnessPage0.getAppBean().getRoot()}/public/publicCodex.jsp?eid=${witnessPage0.getCurrentEntId()}&startPage=${witness.startPage}&imgFullscreen=true"
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
292 target="_blank">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
293 <img src="../resources/images/new_window-16.png">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
294 </a>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
295 </c:if>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
296 <a class="go-to-witness-link" data-witness-id="${witness.id}" data-start="${witness.startPage}" href="#">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
297 <c:out value="${witness.folios}"/>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
298 </a>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
299
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
300 </td>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
301 </tr>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
302 </c:forEach>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
303 </tbody>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
304 </table>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
305 </c:if>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
306
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
307 <c:if test="${witnessPage0.getUnknownList().size() > 0}">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
308 <h4>Unknown titles in this Codex</h4>
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
309 <c:forEach var="witness" items="${witnessPage0.getUnknownList()}">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
310 <a class="go-to-witness-link" data-witness-id="${witness.id}" data-start="${witness.startPage}" href="#">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
311 <c:out value="${witness.folios}"/>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
312 </a>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
313 </c:forEach>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
314 <br>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
315 </c:if>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
316
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
317
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
318 <div id="additional-information">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
319 </div>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
320
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
321 <div id="additional-information2">
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
322 </div>
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
323
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
324 <span class="titlePanel">Codex Information</span>
7
jurzua
parents:
diff changeset
325 <table class="table table-bordered table-condensed divaPanel">
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
326 <tbody>
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
327 <c:forEach var="attLabel" items="${witnessPage0.getLabels()}">
7
jurzua
parents:
diff changeset
328 <tr>
jurzua
parents:
diff changeset
329 <td class="tdTitle">
jurzua
parents:
diff changeset
330 <c:out value="${attLabel}"/>
jurzua
parents:
diff changeset
331 <td>
jurzua
parents:
diff changeset
332 <td >
jurzua
parents:
diff changeset
333 <table class="tableContent">
jurzua
parents:
diff changeset
334 <tbody>
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
335 <c:forEach var="attValue" items="${witnessPage0.getAttMap().get(attLabel)}">
7
jurzua
parents:
diff changeset
336 <tr>
12
cbc691bb756b re-apply Jorges fix to the duplicate global bean-id :-(
casties
parents: 10
diff changeset
337 <td style="text-align: ${witnessPage0.getAttMapTextAlign().get(attLabel)};">
7
jurzua
parents:
diff changeset
338 <c:out value="${attValue}"/>
jurzua
parents:
diff changeset
339 </td>
jurzua
parents:
diff changeset
340 </tr>
jurzua
parents:
diff changeset
341 </c:forEach>
jurzua
parents:
diff changeset
342 </tbody>
jurzua
parents:
diff changeset
343 </table>
jurzua
parents:
diff changeset
344 <td>
jurzua
parents:
diff changeset
345 </tr>
jurzua
parents:
diff changeset
346 </c:forEach>
jurzua
parents:
diff changeset
347 </tbody>
jurzua
parents:
diff changeset
348 </table>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
349
7
jurzua
parents:
diff changeset
350 </div>
jurzua
parents:
diff changeset
351 </c:if>
jurzua
parents:
diff changeset
352 </div>
jurzua
parents:
diff changeset
353 </div>
jurzua
parents:
diff changeset
354 <div class="span8">
jurzua
parents:
diff changeset
355 <input type='hidden' name='csrfmiddlewaretoken' value='psDBHsF5a1mttLSKeUgoUUVN3HL6f8Re' />
jurzua
parents:
diff changeset
356 <div id="diva-wrapper" style="width: 600px;"></div>
jurzua
parents:
diff changeset
357 </div>
jurzua
parents:
diff changeset
358 </div>
jurzua
parents:
diff changeset
359 </div>
10
17551d9f091f add new witness view
dwinter
parents: 8
diff changeset
360
7
jurzua
parents:
diff changeset
361 <% } %>
jurzua
parents:
diff changeset
362 </body>
jurzua
parents:
diff changeset
363 </html>