Mercurial > hg > digilib-old
diff client/digitallibrary/dlImage.jsp @ 77:b877e54b0794
New servlet version 1.5b.
Mostly cleanup. Global parameters for digilib now in DigilibConfiguration,
per request parameters are now all in DigilibRequest. The DocuImage implementation
can be selected by the configuration docuimage-class.
Pixel-by-pixel view implemented with "mo=clip".
author | robcast |
---|---|
date | Fri, 24 Jan 2003 22:13:49 +0100 |
parents | 58d23f512c80 |
children |
line wrap: on
line diff
--- a/client/digitallibrary/dlImage.jsp Fri Jan 24 21:55:54 2003 +0100 +++ b/client/digitallibrary/dlImage.jsp Fri Jan 24 22:13:49 2003 +0100 @@ -28,7 +28,7 @@ } else { digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(); -// default values for parameters +/* default values for parameters dlRequest.setFn("/"); // url of the page/document dlRequest.setPn(1); // page number dlRequest.setWs(1); // scale factor @@ -38,13 +38,10 @@ dlRequest.setWy(0); // top edge in image (float from 0 to 1) dlRequest.setWw(1); // width of image (float from 0 to 1) dlRequest.setWh(1); // height of image (float from 0 to 1) +*/ // overrriding default parameters with provided parameters from query-string dlRequest.setWithRequest(request); -//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 = dlRequest.getBaseURL(); - String imageLocation = dlRequest.getBaseURL() + "/servlet/Scaler/?" + dlRequest.getAsString(); %> @@ -74,7 +71,7 @@ </script> </head> -<body bgcolor="#666666" onload='init_pagesTotal("<%= dlRequest.getFn() %>", "<%= dlRequest.getPn() %>", "<%= dlRequest.getWs() %>", "<%= dlRequest.getMo() %>", "<%= dlRequest.getMk() %>", "<%= dlRequest.getWx() %>", "<%= dlRequest.getWy() %>", "<%= dlRequest.getWw() %>", "<%= dlRequest.getWh() %>", "<%= dlRequest.getPt() %>")'> +<body bgcolor="#666666" onload='init_pagesTotal("<%= dlRequest.getFilePath() %>", "<%= dlRequest.getPn() %>", "<%= dlRequest.getWs() %>", "<%= dlRequest.getMo() %>", "<%= dlRequest.getMk() %>", "<%= dlRequest.getWx() %>", "<%= dlRequest.getWy() %>", "<%= dlRequest.getWw() %>", "<%= dlRequest.getWh() %>", "<%= dlRequest.getPt() %>")'> <div id="lay1" style="position: absolute; left: 10px; top: 10px; visibility: visible"><img name="pic" src="<%= imageLocation %>" border="0"></div>