Mercurial > hg > digilib-old
changeset 120:cbfc008b4245
digicat takes mode argument as fourth argument
(needed for speedy thumbnails with mo=fit,lores)
author | robcast |
---|---|
date | Wed, 11 Jun 2003 22:40:06 +0200 |
parents | 8afac7d7c1e6 |
children | 1ac2c5c6ec0e |
files | client/digitallibrary/navcat_ie.js client/digitallibrary/navcat_n4.js client/digitallibrary/navcat_n6.js |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/navcat_ie.js Wed Jun 11 22:37:43 2003 +0200 +++ b/client/digitallibrary/navcat_ie.js Wed Jun 11 22:40:06 2003 +0200 @@ -38,7 +38,7 @@ for (j = 0; j < att[3]; j++) { indexNr = parseInt(att[1])+i*parseInt(att[3])+j; thumb = parent.baseUrl + "/servlet/Scaler/"; - thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); + thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=" + att[4] + "&dw=" + cellWidth + "&dh=" + (cellHeight-25); whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); whichFrame.document.write('<img src="' + thumb + '" border="0">');
--- a/client/digitallibrary/navcat_n4.js Wed Jun 11 22:37:43 2003 +0200 +++ b/client/digitallibrary/navcat_n4.js Wed Jun 11 22:40:06 2003 +0200 @@ -38,7 +38,7 @@ for (j = 0; j < att[3]; j++) { indexNr = parseInt(att[1])+i*parseInt(att[3])+j; thumb = parent.baseUrl + "/servlet/Scaler/"; - thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); + thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=" + att[4] + "&dw=" + cellWidth + "&dh=" + (cellHeight-25); whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); whichFrame.document.write('<img src="' + thumb + '" border="0">');
--- a/client/digitallibrary/navcat_n6.js Wed Jun 11 22:37:43 2003 +0200 +++ b/client/digitallibrary/navcat_n6.js Wed Jun 11 22:40:06 2003 +0200 @@ -38,7 +38,7 @@ for (j = 0; j < att[3]; j++) { indexNr = parseInt(att[1])+i*parseInt(att[3])+j; thumb = parent.baseUrl + "/servlet/Scaler/"; - thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); + thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=" + att[4] + "&dw=" + cellWidth + "&dh=" + (cellHeight-25); whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); whichFrame.document.write('<img src="' + thumb + '" border="0">'); @@ -118,4 +118,5 @@ if (att.length < 4) { att[3] = 4; } + }