20
|
1 <html>
|
|
2 <head>
|
|
3
|
|
4 <jsp:useBean id="DB" scope="page" class="digilib.servlet.DocumentBean" />
|
|
5
|
|
6 <%
|
|
7 // set servlet init-parameter
|
|
8 DB.setConfig(getServletConfig());
|
|
9 // check if authentication is needed and redirect if necessary
|
|
10 DB.doAuthentication(request, response);
|
52
|
11
|
|
12 // calculate base URL string from request (minus last part)
|
|
13 String baseUrl = request.getRequestURL().toString();
|
|
14 int eop = baseUrl.lastIndexOf("/");
|
|
15 if (eop > 0) {
|
|
16 baseUrl = baseUrl.substring(0, eop);
|
|
17 } else {
|
|
18 baseUrl = "http://" + request.getServerName() + "/docuserver/digitallibrary";
|
|
19 }
|
|
20
|
20
|
21 %>
|
|
22
|
|
23 <script language="JavaScript">
|
|
24
|
52
|
25 var baseUrl = "<%= baseUrl %>";
|
|
26
|
20
|
27 // DEBUG
|
|
28 //alert('DIR: <%= DB.getDocuPath(request) %> PAGES: <%= DB.getNumPages(request) %>');
|
|
29
|
|
30 // the document's query string (minus "?")
|
|
31 var query = location.search.substring(1);
|
|
32
|
|
33 // first page number
|
|
34 var firstPage = <%= DB.getFirstPage(request) %>;
|
|
35
|
|
36 // number of pages of the document
|
|
37 var numPages = <%= DB.getNumPages(request) %>;
|
|
38
|
|
39 // browser version test to include the corresponding navigation-file
|
|
40 if ((navigator.appName.toLowerCase() == "netscape") && (parseFloat(navigator.appVersion) < 5.0)) {
|
|
41 top.document.write('<script src="navcat_n4.js"><\/script>');
|
|
42 } else if (navigator.appName.toLowerCase() == "netscape") {
|
|
43 top.document.write('<script src="navcat_n6.js"><\/script>');
|
|
44 } else if ((navigator.appName.toLowerCase() == "microsoft internet explorer") && (parseFloat(navigator.appVersion) >= 4.0)) {
|
|
45 top.document.write('<script src="navcat_ie.js"><\/script>');
|
|
46 } else {
|
|
47 alert('Your browser is not directly supported by this client right now.\n\nLoading now the optimised version for Netscape 6, that sticks the most to the w3c specifications.');
|
|
48 top.document.write('<script src="navcat_n6.js"><\/script>');
|
|
49 }
|
|
50
|
|
51 </script>
|
|
52
|
|
53 </head>
|
|
54
|
|
55 <frameset cols="*,90" boder="no" border="0" onLoad="whichFrame = parent.mainFrame; initPicture(query); loadThumbTable(); initScripts();">
|
|
56 <frame name="mainFrame" src="about:blank">
|
|
57 <frame name="rightFrame" src="navcat.html" scrolling="no" noresize>
|
|
58 </frameset>
|
|
59
|
|
60 </html>
|