annotate client/digitallibrary/digilib.jsp @ 199:21789f3f7251

Corrected Problems with innerWidth and about:blank for Safari.
author robcast
date Wed, 14 Jan 2004 12:06:53 +0100
parents 2336ac05d57d
children 16126dee8712
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
1 <%@ page language="java" %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
2
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
3 <%!
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
4 // authentication stuff - robert
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
5 // -----------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
6 // create DocumentBean instance for all JSP requests
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
7 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
8
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
9 // initialize DocumentBean instance in JSP init
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
10 public void jspInit() {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
11 try {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
12 // set servlet init-parameter
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
13 docBean.setConfig(getServletConfig());
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
14 } catch (javax.servlet.ServletException e) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
15 System.out.println(e);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
16 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
17 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
18 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
19
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
20
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
21
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
22
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
23 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
24
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
25 // parsing the query
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
26 // -----------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
27
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
28 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
29 // check if authentication is needed and redirect if necessary
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
30 docBean.doAuthentication(dlRequest, response);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
31
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
32 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
33
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
34 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
35
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
36 // the different levels of presentation
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
37 // ------------------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
38
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
39
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
40 // level 3 representation hack - lugi
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
41 // it would be much more interesting to check
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
42 // if the sidebar is actually installed and in
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
43 // the case it isn't - automatically do it.
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
44 // however this requires client-side tests and
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
45 // so slows down everything.
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
46 // we might want to talk about it for a future
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
47 // release
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
48
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
49 if (dlRequest.getAsInt("lv") == 3) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
50 String userAgent = request.getHeader("User-Agent").toLowerCase();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
51
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
52 if (userAgent.indexOf("mozilla/5.0") == 0) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
53
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
54 // mozilla 5 that does not support xul-sidebars
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
55 if (userAgent.indexOf("opera") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
56 if (userAgent.indexOf("chimera") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
57 if (userAgent.indexOf("camino") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
58 if (userAgent.indexOf("konqueror") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
59 if (userAgent.indexOf("safari") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
60 if (userAgent.indexOf("galeon") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
61 if (userAgent.indexOf("skipstone") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
62 if (userAgent.indexOf("k-meleon") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
63 if (userAgent.indexOf("firebird") > -1) dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
64
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
65 // the chance is quite big, that the browser supports xul-sidebars
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
66 dlRequest.setValue("lv", 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
67
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
68 } else {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
69
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
70 // redirect to level 2 because of definitive lack of sidebar support
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
71 dlRequest.setValue("lv", 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
72 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
73 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
74
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
75
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
76
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
77 switch (dlRequest.getAsInt("lv")) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
78
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
79 // LEVEL 0 --------------------------------------------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
80
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
81 case 0:
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
82 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
83
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
84 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
85 break; // level 0
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
86
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
87
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
88
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
89
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
90 // LEVEL 1 --------------------------------------------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
91
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
92 case 1:
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
93 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
94
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
95 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
96 // checking if the height and width of this client is already known
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
97 if ((dlRequest.getAsInt("dw") == 0) || (dlRequest.getAsInt("dh") == 0)) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
98 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
99
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
100 <html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
101 <head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
102 <script language="Javascript">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
103
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
104 function redirect() {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
105
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
106 var wwidth, wheight;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
107 if (self.innerHeight) // all except Explorer
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
108 {
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
109 wwidth = self.innerWidth;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
110 wheight = self.innerHeight;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
111 }
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
112 else if (document.documentElement && document.documentElement.clientHeight)
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
113 // Explorer 6 Strict Mode
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
114 {
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
115 wwidth = document.documentElement.clientWidth;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
116 wheight = document.documentElement.clientHeight;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
117 }
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
118 else if (document.body) // other Explorers
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
119 {
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
120 wwidth = document.body.clientWidth;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
121 wheight = document.body.clientHeight;
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
122 }
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
123
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
124 client = "&dw=" + (wwidth-30) + "&dh=" + (wheight-30);
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
125 //alert("CLIENT: "+client);
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
126
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
127 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
128 if (dlRequest.isRDF()){
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
129 String strAllParams=dlRequest.getAsString();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
130 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
131 location.replace(document.URL+"?"+"<%=strAllParams%>" + client);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
132 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
133 }else{
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
134 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
135 location.replace(document.URL + client);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
136 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
137 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
138 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
139 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
140
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
141 </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
142 </head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
143 <body bgcolor="#666666" onload="redirect()">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
144 </body>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
145 </html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
146
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
147 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
148 } else {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
149
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
150 // add number of pages
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
151 dlRequest.setValue("pt", docBean.getNumPages(dlRequest));
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
152
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
153 String imageLocation = dlRequest.getAsString("base.url") + "/servlet/Scaler/?" + dlRequest.getAsString();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
154 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
155
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
156 <html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
157 <head>
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
158 <title>Digital Document Library (L1)</title>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
159
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
160 <script src="navigation.js" type="text/javascript"> </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
161
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
162 <!-- modules -->
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
163 <script src="modules/pagesTotal.js" type="text/javascript"> </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
164 <script src="modules/newReferences.js" type="text/javascript"> </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
165 <script src="modules/imago.js" type="text/javascript"> </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
166
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
167 <script type="text/javascript">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
168
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
169 var baseUrl = "<%= dlRequest.getAsString("base.url") %>";
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
170
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
171 newParameter('fn', '<%= dlRequest.getFilePath() %>', '', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
172 newParameter('pn', '<%= dlRequest.getAsString("pn") %>', '1', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
173 newParameter('ws', '<%= dlRequest.getAsString("ws") %>', '1.0', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
174 newParameter('mo', '<%= dlRequest.getAsString("mo") %>', '', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
175 newParameter('mk', '<%= dlRequest.getAsString("mk") %>', '', 3);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
176 newParameter('wx', '<%= dlRequest.getAsString("wx") %>', '0.0', 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
177 newParameter('wy', '<%= dlRequest.getAsString("wy") %>', '0.0', 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
178 newParameter('ww', '<%= dlRequest.getAsString("ww") %>', '1.0', 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
179 newParameter('wh', '<%= dlRequest.getAsString("wh") %>', '1.0', 2);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
180
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
181 newParameter('pt', '<%= dlRequest.getAsString("pt") %>', '<%= dlRequest.getAsString("pt") %>', 9);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
182
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
183 newParameter('brgt', '<%= dlRequest.getAsString("brgt") %>', '0.0', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
184 newParameter('cont', '<%= dlRequest.getAsString("cont") %>', '0.0', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
185 newParameter('rot', '<%= dlRequest.getAsString("rot") %>', '0.0', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
186 newParameter('rgba', '<%= dlRequest.getAsString("rgba") %>', '', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
187 newParameter('rgbm', '<%= dlRequest.getAsString("rgbm") %>', '', 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
188
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
189 newParameter('ddpix', '<%= dlRequest.getAsString("ddpix") %>', '', 9);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
190 newParameter('ddpiy', '<%= dlRequest.getAsString("ddpiy") %>', '', 9);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
191
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
192 </script>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
193
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
194 </head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
195
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
196 <body bgcolor="#666666" onload="init_pagesTotal();">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
197
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
198 <div id="lay1" style="position: absolute; left: 10px; top: 10px; visibility: visible"><img name="pic" src="<%= imageLocation %>" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
199
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
200 <div id="dot0" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark1.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
201 <div id="dot1" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark2.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
202 <div id="dot2" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark3.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
203 <div id="dot3" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark4.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
204 <div id="dot4" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark5.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
205 <div id="dot5" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark6.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
206 <div id="dot6" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark7.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
207 <div id="dot7" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="mark8.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
208 <div id="eck1" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="olinks.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
209 <div id="eck2" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="orechts.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
210 <div id="eck3" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="ulinks.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
211 <div id="eck4" style="position: absolute; left: -20; top: 100; visibility: hidden"><img src="urechts.gif" border="0"></div>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
212
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
213 </body>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
214
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
215 </html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
216 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
217 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
218 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
219
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
220 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
221 break; // level 1
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
222
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
223
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
224
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
225
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
226 // LEVEL 2 --------------------------------------------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
227
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
228 case 2:
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
229 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
230
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
231 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
232 // retrieve request in new paramter format and redirect to level 1
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
233 dlRequest.setValue("lv", 1);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
234 String query = "digilib.jsp?" + dlRequest.getAsString();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
235 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
236
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
237 <html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
238 <head>
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
239 <title>Digital Document Library (L2)</title>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
240 </head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
241
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
242 <frameset cols="*,90" border="0">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
243 <frame name="mainFrame" src="<%= query %>" scrolling="auto">
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
244 <frameset rows="20,*" border="0">
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
245 <frame name="pageFrame" src="empty.html" scrolling="no" noresize>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
246 <frame name="rightFrame" src="dlMenu.html" scrolling="no" noresize>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
247 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
248 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
249
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
250 </html>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
251
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
252 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
253 break; // level 2
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
254
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
255 } // end switch
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
256
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
257 %>