# HG changeset patch # User robcast # Date 1029447615 -7200 # Node ID 866e798e2befed05fa02d70a7cb6619f4e49f3a8 # Parent 67bbba76f34aa8b7a918a2c0f0514600750d5e75 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) diff -r 67bbba76f34a -r 866e798e2bef client/digitallibrary/CHANGES --- a/client/digitallibrary/CHANGES Sun Jul 07 18:03:54 2002 +0200 +++ b/client/digitallibrary/CHANGES Thu Aug 15 23:40:15 2002 +0200 @@ -10,6 +10,13 @@ CHANGES +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. + 20.05.2002 - navigation_o6.js : luginbuehl - Opera browser support done. the 'b'-key does not work currently, beause diff -r 67bbba76f34a -r 866e798e2bef client/digitallibrary/dlImage.jsp --- a/client/digitallibrary/dlImage.jsp Sun Jul 07 18:03:54 2002 +0200 +++ b/client/digitallibrary/dlImage.jsp Thu Aug 15 23:40:15 2002 +0200 @@ -56,7 +56,17 @@ if (request.getParameter("dh") != null) dh = request.getParameter("dh"); if (request.getParameter("pt") != null) pt = request.getParameter("pt"); -String imageLocation = "http://" + request.getServerName() + "/docuserver/digitallibrary/servlet/Scaler/" + fn + "?pn=" + pn + "&ws=" + ws + "&mo=" + mo + "&wx=" + wx + "&wy=" + wy + "&ww=" + ww + "&wh=" + wh + "&dw=" + dw + "&dh=" + dh; +//String imageLocation = "http://" + request.getServerName() + "/docuserver/digitallibrary/servlet/Scaler/" + fn + "?pn=" + pn + "&ws=" + ws + "&mo=" + mo + "&wx=" + wx + "&wy=" + wy + "&ww=" + ww + "&wh=" + wh + "&dw=" + dw + "&dh=" + dh; + +String baseUrl = request.getRequestURL().toString(); +int eop = baseUrl.lastIndexOf("/"); +if (eop > 0) { + baseUrl = baseUrl.substring(0, eop); +} else { + baseUrl = "http://" + request.getServerName() + "/docuserver/digitallibrary"; +} + +String imageLocation = baseUrl + "/servlet/Scaler/" + fn + "?pn=" + pn + "&ws=" + ws + "&mo=" + mo + "&wx=" + wx + "&wy=" + wy + "&ww=" + ww + "&wh=" + wh + "&dw=" + dw + "&dh=" + dh; %> @@ -64,6 +74,8 @@
diff -r 67bbba76f34a -r 866e798e2bef client/digitallibrary/dlMenu.html --- a/client/digitallibrary/dlMenu.html Sun Jul 07 18:03:54 2002 +0200 +++ b/client/digitallibrary/dlMenu.html Thu Aug 15 23:40:15 2002 +0200 @@ -32,7 +32,7 @@ helpText[8] = "'zoom out'-button|To gain the original unzoomed picture, click on 'zoom out'.