diff client/digitallibrary/navigation_o6.js @ 50: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 57874b52c2fc
children
line wrap: on
line diff
--- a/client/digitallibrary/navigation_o6.js	Sun Jul 07 18:03:54 2002 +0200
+++ b/client/digitallibrary/navigation_o6.js	Thu Aug 15 23:40:15 2002 +0200
@@ -143,7 +143,7 @@
 
 
 function digicat() {
-	var url = "http://" + location.host + "/docuserver/digitallibrary/digicat.html?" + att[0] + "+" + att[1];
+	var url = "digicat.html?" + att[0] + "+" + att[1];
 	win = window.open(url, "digicat");
 	win.focus();
 }
@@ -151,7 +151,7 @@
 
 function ref(refselect) {
 
-	var hyperlinkRef = "http://" + location.host + "/docuserver/digitallibrary/digilib.jsp?";
+	var hyperlinkRef = baseUrl + "digilib.jsp?";
 	hyperlinkRef += att[0] + "+" + att[1] + "+" + att[2] + "+" + att[3] + "+" + att[4];
 	
 	if ((att[5] != 0) || (att[6] != 0) || (att[7] != 1) || (att[8] != 1)) {