annotate client/digitallibrary/digilib.jsp @ 15:803160f3d2e8 vendor

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