Mercurial > hg > digilib-old
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 |
rev | line source |
---|---|
240 | 1 <%@ page language="java" %><%! |
2 // -- JSP init ------------- | |
3 | |
237 | 4 // create DocumentBean instance for all JSP requests |
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | |
6 | |
7 // initialize DocumentBean instance in JSP init | |
8 public void jspInit() { | |
9 try { | |
10 // set servlet init-parameter | |
11 docBean.setConfig(getServletConfig()); | |
12 } catch (javax.servlet.ServletException e) { | |
13 System.out.println(e); | |
14 } | |
15 } | |
240 | 16 // -- end of JSP init ------------- |
17 %><% | |
18 // -- JSP request ------------- | |
19 | |
237 | 20 // parsing the query |
21 // ----------------- | |
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 | 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 | 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 | 30 %><html> |
31 <head> | |
32 <title>Digital Document Library (L1)</title> | |
33 <script type="text/javascript" src="baselib.js"></script> | |
34 <script type="text/javascript" src="dllib.js"></script> | |
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 | 37 var dlTarget = window.name; |
38 var baseUrl = '<%= dlRequest.getAsString("base.url") %>'; | |
240 | 39 var toolbarEnabledURL = window.location.href; |
237 | 40 newParameter('fn', '', 1); |
41 newParameter('pn', '1', 1); | |
42 newParameter('ws', '1.0', 1); | |
43 newParameter('mo', '', 1); | |
44 newParameter('mk', '', 3); | |
45 newParameter('wx', '0.0', 2); | |
46 newParameter('wy', '0.0', 2); | |
47 newParameter('ww', '1.0', 2); | |
48 newParameter('wh', '1.0', 2); | |
49 newParameter('pt', '<%= dlRequest.getAsString("pt") %>', 1); | |
50 newParameter('brgt', '0.0', 1); | |
51 newParameter('cont', '0.0', 1); | |
52 newParameter('rot', '0.0', 1); | |
53 newParameter('rgba', '', 1); | |
54 newParameter('rgbm', '', 1); | |
345 | 55 newParameter('ddpix', '', 1); |
56 newParameter('ddpiy', '', 1); | |
237 | 57 document.id='digilib'; |
238 | 58 dl_param_init(); |
237 | 59 </script> |
60 </head> | |
240 | 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 | 68 |
317 | 69 <div id="dot0" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark1.gif" border="0"></div> |
70 <div id="dot1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark2.gif" border="0"></div> | |
71 <div id="dot2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark3.gif" border="0"></div> | |
72 <div id="dot3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark4.gif" border="0"></div> | |
73 <div id="dot4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark5.gif" border="0"></div> | |
74 <div id="dot5" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark6.gif" border="0"></div> | |
75 <div id="dot6" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark7.gif" border="0"></div> | |
76 <div id="dot7" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark8.gif" border="0"></div> | |
77 <div id="eck1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/olinks.gif" border="0"></div> | |
78 <div id="eck2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/orechts.gif" border="0"></div> | |
79 <div id="eck3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/ulinks.gif" border="0"></div> | |
80 <div id="eck4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/urechts.gif" border="0"></div> | |
237 | 81 |
82 </body> | |
83 | |
84 </html> |