annotate client/digitallibrary/digimage.jsp @ 446:323e7d7dc378

fixed problem with next/prev page button in oldskin (basically my bad for not properly adapting the new dllib.js)
author robcast
date Mon, 16 Jan 2006 20:36:29 +0100
parents 69fee4d7eb52
children e01e9112adc3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
240
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
1 <%@ page language="java" %><%!
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
2 // -- JSP init -------------
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
3
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
4 // create DocumentBean instance for all JSP requests
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
6
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
7 // initialize DocumentBean instance in JSP init
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
8 public void jspInit() {
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
9 try {
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
10 // set servlet init-parameter
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
11 docBean.setConfig(getServletConfig());
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
12 } catch (javax.servlet.ServletException e) {
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
13 System.out.println(e);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
14 }
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
15 }
240
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
16 // -- end of JSP init -------------
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
17 %><%
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
18 // -- JSP request -------------
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
19
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
20 // parsing the query
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
21 // -----------------
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
22 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
243
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
23 docBean.setRequest(dlRequest);
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
24 // check if authentication is needed and redirect if necessary
243
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
25 docBean.doAuthentication(response);
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
26 // add number of pages
243
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
27 dlRequest.setValue("pt", docBean.getNumPages());
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
28 // store objects for jsp:include
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
29 pageContext.setAttribute("docBean", docBean, pageContext.REQUEST_SCOPE);
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
30 %><html>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
31 <head>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
32 <title>Digital Document Library (L1)</title>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
33 <script type="text/javascript" src="baselib.js"></script>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
34 <script type="text/javascript" src="dllib.js"></script>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
35 <script type="text/javascript">
330
1ddfe4802260 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 317
diff changeset
36 base_init();
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
37 var dlTarget = window.name;
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
38 var baseUrl = '<%= dlRequest.getAsString("base.url") %>';
240
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
39 var toolbarEnabledURL = window.location.href;
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
40 newParameter('fn', '', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
41 newParameter('pn', '1', 1);
446
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
42 newParameter('ws', '1.0', 2);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
43 newParameter('mo', '', 2);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
44 newParameter('wx', '0.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
45 newParameter('wy', '0.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
46 newParameter('ww', '1.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
47 newParameter('wh', '1.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
48 newParameter('brgt', '0.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
49 newParameter('cont', '0.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
50 newParameter('rot', '0.0', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
51 newParameter('rgba', '', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
52 newParameter('rgbm', '', 4);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
53 newParameter('ddpi', '', 8);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
54 newParameter('ddpix', '', 8);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
55 newParameter('ddpiy', '', 8);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
56 newParameter('mk', '', 16);
323e7d7dc378 fixed problem with next/prev page button in oldskin
robcast
parents: 345
diff changeset
57 newParameter('pt', '<%= dlRequest.getAsString("pt") %>', 32);
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
58 document.id='digilib';
238
1ccda61967b2 initial parameter parsing now earlier
robcast
parents: 237
diff changeset
59 dl_param_init();
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
60 </script>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
61 </head>
240
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
62 <body bgcolor="#666666" onload="dl_init();">
243
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
63 <% if (dlRequest.hasOption("clop", "noarrows")) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
64 %><jsp:include page="digimage_img_inc.jsp" /><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
65 } else {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
66 %><jsp:include page="digimage_tbl_inc.jsp" /><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
67 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
68 %>
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
69
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
70 <div id="dot0" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark1.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
71 <div id="dot1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark2.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
72 <div id="dot2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark3.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
73 <div id="dot3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark4.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
74 <div id="dot4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark5.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
75 <div id="dot5" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark6.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
76 <div id="dot6" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark7.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
77 <div id="dot7" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark8.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
78 <div id="eck1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/olinks.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
79 <div id="eck2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/orechts.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
80 <div id="eck3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/ulinks.gif" border="0"></div>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
81 <div id="eck4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/urechts.gif" border="0"></div>
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
82
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
83 </body>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
84
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
85 </html>