annotate src/main/webapp/public/publicWitness.jsp @ 206:111fc1d17019

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