Mercurial > hg > digilib-old
comparison client/digitallibrary/digilib.jsp @ 123:8564a437843d
prototype annota
author | engler |
---|---|
date | Fri, 13 Jun 2003 10:39:59 +0200 |
parents | 489f61d9feac |
children | 28f96364040f |
comparison
equal
deleted
inserted
replaced
122:a32e8c80e2f2 | 123:8564a437843d |
---|---|
1 <%@ page language="java" %> | 1 <%@ page language="java" %> |
2 | 2 |
3 <%! | 3 <%! |
4 /* | |
5 Copyright (C) 2003 WTWG, Uni Bern | |
6 | |
7 This program is free software; you can redistribute it and/or | |
8 modify it under the terms of the GNU General Public License | |
9 as published by the Free Software Foundation; either version 2 | |
10 of the License, or (at your option) any later version. | |
11 | |
12 This program is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with this program; if not, write to the Free Software | |
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | |
20 | |
21 Author: Christian Luginbuehl, 01.05.2003 , Version Alcatraz 0.3 | |
22 */ | |
23 // authentication stuff - robert | 4 // authentication stuff - robert |
24 // ----------------------------- | 5 // ----------------------------- |
25 // create DocumentBean instance for all JSP requests | 6 // create DocumentBean instance for all JSP requests |
26 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | 7 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); |
27 | 8 |
57 // the different levels of presentation | 38 // the different levels of presentation |
58 // ------------------------------------ | 39 // ------------------------------------ |
59 | 40 |
60 | 41 |
61 // level 3 representation hack - lugi | 42 // level 3 representation hack - lugi |
62 // it would be musch more interesting to check | 43 // it would be much more interesting to check |
63 // if the sidebar is actually installed and in | 44 // if the sidebar is actually installed and in |
64 // the case it isn't - automatically do it. | 45 // the case it isn't - automatically do it. |
65 // however this requires client-side tests and | 46 // however this requires client-side tests and |
66 // so slows down everything. | 47 // so slows down everything. |
67 // we might want to talk about it for a future | 48 // we might want to talk about it for a future |
133 | 114 |
134 // mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.) | 115 // mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.) |
135 client = "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); | 116 client = "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); |
136 | 117 |
137 } | 118 } |
138 | 119 <% |
139 location.replace(document.URL + client); | 120 if (dlRequest.isRDF()){ |
121 String strAllParams=dlRequest.getAsString(); | |
122 %> | |
123 location.replace(document.URL+"?"+"<%=strAllParams%>" + client); | |
124 <% | |
125 }else{ | |
126 %> | |
127 location.replace(document.URL + client); | |
128 <% | |
129 } | |
130 %> | |
140 } | 131 } |
141 | 132 |
142 </script> | 133 </script> |
143 </head> | 134 </head> |
144 <body bgcolor="#666666" onload="redirect()"> | 135 <body bgcolor="#666666" onload="redirect()"> |
156 | 147 |
157 <html> | 148 <html> |
158 <head> | 149 <head> |
159 <title>Digital Document Library - Alcatraz (Level 1)</title> | 150 <title>Digital Document Library - Alcatraz (Level 1)</title> |
160 | 151 |
161 <script language="JavaScript"> | 152 <script src="navigation.js" type="text/javascript"> </script> |
153 | |
154 <!-- modules --> | |
155 <script src="modules_new/fitGIFs.js" type="text/javascript"> </script> | |
156 <script src="modules_new/pagesTotal.js" type="text/javascript"> </script> | |
157 <script src="modules_new/newReferences.js" type="text/javascript"> </script> | |
158 <script src="modules_new/imago.js" type="text/javascript"> </script> | |
159 | |
160 <script type="text/javascript"> | |
162 | 161 |
163 var baseUrl = "<%= dlRequest.getBaseURL() %>"; | 162 var baseUrl = "<%= dlRequest.getBaseURL() %>"; |
164 | 163 |
165 // browser version test to include the corresponding navigation-file | 164 newParameter('fn', '<%= dlRequest.getFilePath() %>', '', 1); |
166 if (navigator.userAgent.toLowerCase().indexOf("opera") > -1) { | 165 newParameter('pn', '<%= dlRequest.getPn() %>', '1', 1); |
167 document.write('<script src="navigation_o6.js"><\/script>'); | 166 newParameter('ws', '<%= dlRequest.getWs() %>', '1.0', 1); |
168 } else if (navigator.userAgent.toLowerCase().indexOf("msie") > -1) { | 167 newParameter('mo', '<%= dlRequest.getMo() %>', '', 1); |
169 document.write('<script src="navigation_ie.js"><\/script>'); | 168 newParameter('mk', '<%= dlRequest.getMk() %>', '', 2); |
170 } else if (navigator.userAgent.toLowerCase().indexOf("mozilla\/4") > -1) { | 169 newParameter('wx', '<%= dlRequest.getWx() %>', '0.0', 3); |
171 document.write('<script src="navigation_n4.js"><\/script>'); | 170 newParameter('wy', '<%= dlRequest.getWy() %>', '0.0', 3); |
172 } else if (navigator.userAgent.toLowerCase().indexOf("mozilla\/5") > -1) { | 171 newParameter('ww', '<%= dlRequest.getWw() %>', '1.0', 3); |
173 document.write('<script src="navigation_n6.js"><\/script>'); | 172 newParameter('wh', '<%= dlRequest.getWh() %>', '1.0', 3); |
174 } else { | 173 |
175 alert('Your browser is not directly supported by this client right now.\n\nLoading now the optimised version for Netscape 6, that sticks the most to the w3c specifications.'); | 174 newParameter('pt', '<%= dlRequest.getPt() %>', '<%= dlRequest.getPt() %>', 3); |
176 document.write('<script src="navigation_n6.js"><\/script>'); | 175 |
177 } | 176 newParameter('brgt', '<%= dlRequest.getBrgt() %>', '0.0', 3); |
178 | 177 newParameter('cont', '<%= dlRequest.getCont() %>', '0.0', 3); |
179 // add module to show the total number of pages (not browser dependant!) | 178 newParameter('rot', '<%= dlRequest.getRot() %>', '0.0', 3); |
180 document.write('<script src="modules\/pagesTotal.js"><\/script>\n'); | 179 newParameter('rgba', '<%= dlRequest.getRgba_s() %>', '', 3); |
181 document.write('<script src="modules\/mirror.js"><\/script>\n'); | 180 newParameter('rgbm', '<%= dlRequest.getRgbm_s() %>', '', 3); |
182 document.write('<script src="modules\/imago.js"><\/script>\n'); | |
183 document.write('<script src="modules\/pixelByPixel.js"><\/script>\n'); | |
184 document.write('<script src="modules\/newReferences.js"><\/script>\n'); | |
185 document.write('<script src="modules\/fitGIFs.js"><\/script>\n'); | |
186 | 181 |
187 </script> | 182 </script> |
188 | 183 |
189 </head> | 184 </head> |
190 | 185 |
191 <body bgcolor="#666666" onload='init_imago("<%= dlRequest.getFilePath() %>", "<%= dlRequest.getPn() %>", "<%= dlRequest.getWs() %>", "<%= dlRequest.getMo() %>", "<%= dlRequest.getMk() %>", "<%= dlRequest.getWx() %>", "<%= dlRequest.getWy() %>", "<%= dlRequest.getWw() %>", "<%= dlRequest.getWh() %>", "<%= dlRequest.getPt() %>", "<%= dlRequest.getBrgt() %>", "<%= dlRequest.getCont() %>", "<%= dlRequest.getRot() %>", "<%= dlRequest.getRgba_s() %>", "<%= dlRequest.getRgbm_s() %>")'> | 186 <body bgcolor="#666666" onload="init();"> |
192 | 187 |
193 <div id="lay1" style="position: absolute; left: 10px; top: 10px; visibility: visible"><img name="pic" src="<%= imageLocation %>" border="0"></div> | 188 <div id="lay1" style="position: absolute; left: 10px; top: 10px; visibility: visible"><img name="pic" src="<%= imageLocation %>" border="0"></div> |
194 | 189 |
195 <div id="dot0" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark1.gif" border="0"></div> | 190 <div id="dot0" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark1.gif" border="0"></div> |
196 <div id="dot1" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark2.gif" border="0"></div> | 191 <div id="dot1" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark2.gif" border="0"></div> |