annotate client/digitallibrary/digilib.jsp @ 18:f80cc302cad8 vendor

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