annotate client/digitallibrary/digicat.jsp @ 16:270e1127c65f vendor

First import of client module
author robcast
date Thu, 17 Jan 2002 15:29:52 +0100
parents
children 36505ac4a334 85126da2ae21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
270e1127c65f First import of client module
robcast
parents:
diff changeset
1 <html>
270e1127c65f First import of client module
robcast
parents:
diff changeset
2 <head>
270e1127c65f First import of client module
robcast
parents:
diff changeset
3
270e1127c65f First import of client module
robcast
parents:
diff changeset
4 <jsp:useBean id="DB" scope="page" class="digilib.servlet.DocumentBean" />
270e1127c65f First import of client module
robcast
parents:
diff changeset
5
270e1127c65f First import of client module
robcast
parents:
diff changeset
6 <%
270e1127c65f First import of client module
robcast
parents:
diff changeset
7 // set servlet init-parameter
270e1127c65f First import of client module
robcast
parents:
diff changeset
8 DB.setConfig(getServletConfig());
270e1127c65f First import of client module
robcast
parents:
diff changeset
9 // check if authentication is needed and redirect if necessary
270e1127c65f First import of client module
robcast
parents:
diff changeset
10 DB.doAuthentication(request, response);
270e1127c65f First import of client module
robcast
parents:
diff changeset
11 %>
270e1127c65f First import of client module
robcast
parents:
diff changeset
12
270e1127c65f First import of client module
robcast
parents:
diff changeset
13 <script language="JavaScript">
270e1127c65f First import of client module
robcast
parents:
diff changeset
14
270e1127c65f First import of client module
robcast
parents:
diff changeset
15 // DEBUG
270e1127c65f First import of client module
robcast
parents:
diff changeset
16 //alert('DIR: <%= DB.getDocuPath(request) %> PAGES: <%= DB.getNumPages(request) %>');
270e1127c65f First import of client module
robcast
parents:
diff changeset
17
270e1127c65f First import of client module
robcast
parents:
diff changeset
18 // the document's query string (minus "?")
270e1127c65f First import of client module
robcast
parents:
diff changeset
19 var query = location.search.substring(1);
270e1127c65f First import of client module
robcast
parents:
diff changeset
20
270e1127c65f First import of client module
robcast
parents:
diff changeset
21 // first page number
270e1127c65f First import of client module
robcast
parents:
diff changeset
22 var firstPage = <%= DB.getFirstPage(request) %>;
270e1127c65f First import of client module
robcast
parents:
diff changeset
23
270e1127c65f First import of client module
robcast
parents:
diff changeset
24 // number of pages of the document
270e1127c65f First import of client module
robcast
parents:
diff changeset
25 var numPages = <%= DB.getNumPages(request) %>;
270e1127c65f First import of client module
robcast
parents:
diff changeset
26
270e1127c65f First import of client module
robcast
parents:
diff changeset
27 // browser version test to include the corresponding navigation-file
270e1127c65f First import of client module
robcast
parents:
diff changeset
28 if ((navigator.appName.toLowerCase() == "netscape") && (parseFloat(navigator.appVersion) < 5.0)) {
270e1127c65f First import of client module
robcast
parents:
diff changeset
29 top.document.write('<script src="navcat_n4.js"><\/script>');
270e1127c65f First import of client module
robcast
parents:
diff changeset
30 } else if (navigator.appName.toLowerCase() == "netscape") {
270e1127c65f First import of client module
robcast
parents:
diff changeset
31 top.document.write('<script src="navcat_n6.js"><\/script>');
270e1127c65f First import of client module
robcast
parents:
diff changeset
32 } else if ((navigator.appName.toLowerCase() == "microsoft internet explorer") && (parseFloat(navigator.appVersion) >= 4.0)) {
270e1127c65f First import of client module
robcast
parents:
diff changeset
33 top.document.write('<script src="navcat_ie.js"><\/script>');
270e1127c65f First import of client module
robcast
parents:
diff changeset
34 } else {
270e1127c65f First import of client module
robcast
parents:
diff changeset
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.');
270e1127c65f First import of client module
robcast
parents:
diff changeset
36 top.document.write('<script src="navcat_n6.js"><\/script>');
270e1127c65f First import of client module
robcast
parents:
diff changeset
37 }
270e1127c65f First import of client module
robcast
parents:
diff changeset
38
270e1127c65f First import of client module
robcast
parents:
diff changeset
39 </script>
270e1127c65f First import of client module
robcast
parents:
diff changeset
40
270e1127c65f First import of client module
robcast
parents:
diff changeset
41 </head>
270e1127c65f First import of client module
robcast
parents:
diff changeset
42
270e1127c65f First import of client module
robcast
parents:
diff changeset
43 <frameset cols="*,90" boder="no" border="0" onLoad="whichFrame = parent.mainFrame; initPicture(query); loadThumbTable(); initScripts();">
270e1127c65f First import of client module
robcast
parents:
diff changeset
44 <frame name="mainFrame" src="about:blank">
270e1127c65f First import of client module
robcast
parents:
diff changeset
45 <frame name="rightFrame" src="navcat.html" scrolling="no" noresize>
270e1127c65f First import of client module
robcast
parents:
diff changeset
46 </frameset>
270e1127c65f First import of client module
robcast
parents:
diff changeset
47
270e1127c65f First import of client module
robcast
parents:
diff changeset
48 </html>