Mercurial > hg > digilib-old
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:a256239970f8 | 18:f80cc302cad8 |
---|---|
1 <html> | |
2 <title>Digital Document Library</title> | |
3 <head> | |
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 // the document's query string (minus "?") | |
16 var query = location.search.substring(1); | |
17 | |
18 // feel free to uncomment - i have never seen a problem so... | |
19 // // DEBUG | |
20 // alert('DIR: <%= DB.getDocuPath(request) %> PAGES: <%= DB.getNumPages(request) %>'); | |
21 | |
22 // number of pages of the document | |
23 var numPages = <%= DB.getNumPages(request) %>; | |
24 | |
25 // browser version test to include the corresponding navigation-file | |
26 if ((navigator.appName.toLowerCase() == "netscape") && (parseFloat(navigator.appVersion) < 5.0)) { | |
27 top.document.write('<script src="navigation_n4.js"><\/script>'); | |
28 } else if (navigator.appName.toLowerCase() == "netscape") { | |
29 top.document.write('<script src="navigation_n6.js"><\/script>'); | |
30 } else if ((navigator.appName.toLowerCase() == "microsoft internet explorer") && (parseFloat(navigator.appVersion) >= 4.0)) { | |
31 top.document.write('<script src="navigation11_ie.js"><\/script>'); | |
32 } else { | |
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.'); | |
34 top.document.write('<script src="navigation_n6.js"><\/script>'); | |
35 } | |
36 | |
37 </script> | |
38 | |
39 </head> | |
40 | |
41 <frameset cols="*,90" border="0" onLoad="whichFrame = parent.mainFrame; initPicture(query); loadPicture(2); initScripts();"> | |
42 <frame name="mainFrame" src="about:blank" scrolling="auto"> | |
43 <frameset rows="20,*" border="0"> | |
44 <frame name="pageFrame" src="about:blank" scrolling="no" noresize> | |
45 <frame name="rightFrame" src="navigation.html" scrolling="no" noresize> | |
46 </frameset> | |
47 </frameset> | |
48 | |
49 </html> |