annotate client/digitallibrary/digicat.jsp @ 515:057ed991d9bd jquery

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