annotate client/digitallibrary/digimage.jsp @ 345:69fee4d7eb52

fix for disappearing ddpi's
author robcast
date Wed, 23 Feb 2005 18:13:40 +0100
parents 1ddfe4802260
children 323e7d7dc378
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);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
42 newParameter('ws', '1.0', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
43 newParameter('mo', '', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
44 newParameter('mk', '', 3);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
45 newParameter('wx', '0.0', 2);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
46 newParameter('wy', '0.0', 2);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
47 newParameter('ww', '1.0', 2);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
48 newParameter('wh', '1.0', 2);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
49 newParameter('pt', '<%= dlRequest.getAsString("pt") %>', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
50 newParameter('brgt', '0.0', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
51 newParameter('cont', '0.0', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
52 newParameter('rot', '0.0', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
53 newParameter('rgba', '', 1);
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
54 newParameter('rgbm', '', 1);
345
69fee4d7eb52 fix for disappearing ddpi's
robcast
parents: 330
diff changeset
55 newParameter('ddpix', '', 1);
69fee4d7eb52 fix for disappearing ddpi's
robcast
parents: 330
diff changeset
56 newParameter('ddpiy', '', 1);
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
57 document.id='digilib';
238
1ccda61967b2 initial parameter parsing now earlier
robcast
parents: 237
diff changeset
58 dl_param_init();
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
59 </script>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
60 </head>
240
23ec6d467606 *** empty log message ***
robcast
parents: 238
diff changeset
61 <body bgcolor="#666666" onload="dl_init();">
243
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
62 <% if (dlRequest.hasOption("clop", "noarrows")) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
63 %><jsp:include page="digimage_img_inc.jsp" /><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
64 } else {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
65 %><jsp:include page="digimage_tbl_inc.jsp" /><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
66 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents: 240
diff changeset
67 %>
237
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
68
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
69 <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
70 <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
71 <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
72 <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
73 <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
74 <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
75 <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
76 <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
77 <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
78 <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
79 <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
80 <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
81
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
82 </body>
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
83
786c27786281 new javascript code for digilib
robcast
parents:
diff changeset
84 </html>