Mercurial > hg > digilib
comparison client/digitallibrary/navcat_ie.js @ 47:866e798e2bef
13.8.2002 - [different files] : roc
- changed all hardcoded occurrences of /docuserver/digitallibrary to
work relative or take the path from the request URL. Introduced a
variable baseURL to hold the URL path (up to digilib.jsp etc.). Now
it should be possible to install digilib in other directories.
- removed xerces.jar. It seems not necessary any more (JDK 1.3.1, Tomcat 4.0.4)
author | robcast |
---|---|
date | Thu, 15 Aug 2002 23:40:15 +0200 |
parents | 84a481a388bb |
children | f612e78f9e14 |
comparison
equal
deleted
inserted
replaced
46:67bbba76f34a | 47:866e798e2bef |
---|---|
22 whichFrame.document.open(); | 22 whichFrame.document.open(); |
23 whichFrame.document.write('<html><head>'); | 23 whichFrame.document.write('<html><head>'); |
24 whichFrame.document.write('<style type="text/css">.myFont {font-family: sans-serif, Arial; font-size: 11px; color: #FFFFFF}</style>'); | 24 whichFrame.document.write('<style type="text/css">.myFont {font-family: sans-serif, Arial; font-size: 11px; color: #FFFFFF}</style>'); |
25 whichFrame.document.write('<script language="Javascript">'); | 25 whichFrame.document.write('<script language="Javascript">'); |
26 whichFrame.document.write('function loadDigilib(idx) {'); | 26 whichFrame.document.write('function loadDigilib(idx) {'); |
27 whichFrame.document.write('linkRef = "http://' + location.host + '/docuserver/digitallibrary/digilib.html?' + parent.att[0] + '+" + idx;'); | 27 whichFrame.document.write('linkRef = "' + parent.baseUrl + '/digilib.jsp?' + parent.att[0] + '+" + idx;'); |
28 whichFrame.document.write('win = window.open(linkRef, "digilib");'); | 28 whichFrame.document.write('win = window.open(linkRef, "digilib");'); |
29 whichFrame.document.write('win.focus();'); | 29 whichFrame.document.write('win.focus();'); |
30 whichFrame.document.write('}'); | 30 whichFrame.document.write('}'); |
31 whichFrame.document.write('</script>'); | 31 whichFrame.document.write('</script>'); |
32 | 32 |
35 whichFrame.document.write('<table border="1" width="' + tableWidth + '" height="' + tableHeight + '">'); | 35 whichFrame.document.write('<table border="1" width="' + tableWidth + '" height="' + tableHeight + '">'); |
36 for (i = 0; i < att[2]; i++) { | 36 for (i = 0; i < att[2]; i++) { |
37 whichFrame.document.write('<tr>'); | 37 whichFrame.document.write('<tr>'); |
38 for (j = 0; j < att[3]; j++) { | 38 for (j = 0; j < att[3]; j++) { |
39 indexNr = parseInt(att[1])+i*parseInt(att[3])+j; | 39 indexNr = parseInt(att[1])+i*parseInt(att[3])+j; |
40 thumb = "http://" + location.host + "/docuserver/digitallibrary/servlet/Scaler/" | 40 thumb = parent.baseUrl + "/servlet/Scaler/"; |
41 thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); | 41 thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); |
42 whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); | 42 whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); |
43 whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); | 43 whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); |
44 whichFrame.document.write('<img src="' + thumb + '" border="0">'); | 44 whichFrame.document.write('<img src="' + thumb + '" border="0">'); |
45 whichFrame.document.write('</a><br>'); | 45 whichFrame.document.write('</a><br>'); |