Mercurial > hg > digilib
annotate client/digitallibrary/digimage.jsp @ 736:a3381aff9f12 jquery
zoom-drag background follows rotation and mirror
author | robcast |
---|---|
date | Wed, 02 Feb 2011 22:28:36 +0100 |
parents | fef787351c31 |
children |
rev | line source |
---|---|
236 | 1 <%@ page language="java" %><%! |
2 // -- JSP init ------------- | |
3 | |
233 | 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 } | |
236 | 16 // -- end of JSP init ------------- |
17 %><% | |
18 // -- JSP request ------------- | |
19 | |
233 | 20 // parsing the query |
21 // ----------------- | |
22 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); | |
239
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
23 docBean.setRequest(dlRequest); |
233 | 24 // check if authentication is needed and redirect if necessary |
239
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
25 docBean.doAuthentication(response); |
233 | 26 // add number of pages |
239
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
27 dlRequest.setValue("pt", docBean.getNumPages()); |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
28 // store objects for jsp:include |
543 | 29 pageContext.setAttribute("docBean", docBean, PageContext.REQUEST_SCOPE); |
233 | 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"> | |
326
1cd0928afd20
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
313
diff
changeset
|
36 base_init(); |
233 | 37 var dlTarget = window.name; |
38 var baseUrl = '<%= dlRequest.getAsString("base.url") %>'; | |
236 | 39 var toolbarEnabledURL = window.location.href; |
233 | 40 newParameter('fn', '', 1); |
41 newParameter('pn', '1', 1); | |
442
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
42 newParameter('ws', '1.0', 2); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
43 newParameter('mo', '', 2); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
44 newParameter('wx', '0.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
45 newParameter('wy', '0.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
46 newParameter('ww', '1.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
47 newParameter('wh', '1.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
48 newParameter('brgt', '0.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
49 newParameter('cont', '0.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
50 newParameter('rot', '0.0', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
51 newParameter('rgba', '', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
52 newParameter('rgbm', '', 4); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
53 newParameter('ddpi', '', 8); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
54 newParameter('ddpix', '', 8); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
55 newParameter('ddpiy', '', 8); |
41e941cfd1e3
fixed problem with next/prev page button in oldskin
robcast
parents:
341
diff
changeset
|
56 newParameter('mk', '', 16); |
445
bd9e35b0b17c
a little nicer implementation of back/next page in oldskin
robcast
parents:
442
diff
changeset
|
57 newParameter('pt', '0', 32); |
bd9e35b0b17c
a little nicer implementation of back/next page in oldskin
robcast
parents:
442
diff
changeset
|
58 setParameter('pt', '<%= dlRequest.getAsString("pt") %>'); |
233 | 59 document.id='digilib'; |
234 | 60 dl_param_init(); |
233 | 61 </script> |
62 </head> | |
236 | 63 <body bgcolor="#666666" onload="dl_init();"> |
239
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
64 <% if (dlRequest.hasOption("clop", "noarrows")) { |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
65 %><jsp:include page="digimage_img_inc.jsp" /><% |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
66 } else { |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
67 %><jsp:include page="digimage_tbl_inc.jsp" /><% |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
68 } |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
236
diff
changeset
|
69 %> |
233 | 70 |
313 | 71 <div id="dot0" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark1.gif" border="0"></div> |
72 <div id="dot1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark2.gif" border="0"></div> | |
73 <div id="dot2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark3.gif" border="0"></div> | |
74 <div id="dot3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark4.gif" border="0"></div> | |
75 <div id="dot4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark5.gif" border="0"></div> | |
76 <div id="dot5" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark6.gif" border="0"></div> | |
77 <div id="dot6" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark7.gif" border="0"></div> | |
78 <div id="dot7" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark8.gif" border="0"></div> | |
79 <div id="eck1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/olinks.gif" border="0"></div> | |
80 <div id="eck2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/orechts.gif" border="0"></div> | |
81 <div id="eck3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/ulinks.gif" border="0"></div> | |
82 <div id="eck4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/urechts.gif" border="0"></div> | |
233 | 83 |
84 </body> | |
85 | |
86 </html> |