comparison client/digitallibrary/digicat.jsp @ 20:d407cb901df4

Initial revision
author robcast
date Thu, 17 Jan 2002 15:29:55 +0100
parents
children 36505ac4a334 85126da2ae21
comparison
equal deleted inserted replaced
1:0ff3ede32060 20:d407cb901df4
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);
11 %>
12
13 <script language="JavaScript">
14
15 // DEBUG
16 //alert('DIR: <%= DB.getDocuPath(request) %> PAGES: <%= DB.getNumPages(request) %>');
17
18 // the document's query string (minus "?")
19 var query = location.search.substring(1);
20
21 // first page number
22 var firstPage = <%= DB.getFirstPage(request) %>;
23
24 // number of pages of the document
25 var numPages = <%= DB.getNumPages(request) %>;
26
27 // browser version test to include the corresponding navigation-file
28 if ((navigator.appName.toLowerCase() == "netscape") && (parseFloat(navigator.appVersion) < 5.0)) {
29 top.document.write('<script src="navcat_n4.js"><\/script>');
30 } else if (navigator.appName.toLowerCase() == "netscape") {
31 top.document.write('<script src="navcat_n6.js"><\/script>');
32 } else if ((navigator.appName.toLowerCase() == "microsoft internet explorer") && (parseFloat(navigator.appVersion) >= 4.0)) {
33 top.document.write('<script src="navcat_ie.js"><\/script>');
34 } else {
35 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.');
36 top.document.write('<script src="navcat_n6.js"><\/script>');
37 }
38
39 </script>
40
41 </head>
42
43 <frameset cols="*,90" boder="no" border="0" onLoad="whichFrame = parent.mainFrame; initPicture(query); loadThumbTable(); initScripts();">
44 <frame name="mainFrame" src="about:blank">
45 <frame name="rightFrame" src="navcat.html" scrolling="no" noresize>
46 </frameset>
47
48 </html>