Mercurial > hg > digilib-old
changeset 229:5309ee93e249
new versions on modules and contexto tool to show text
author | luginbue |
---|---|
date | Fri, 09 Jul 2004 02:39:46 +0200 |
parents | fddb9a2577fc |
children | 7be74fc07fe1 |
files | client/digitallibrary/modules/newReferences.js |
diffstat | 1 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/modules/newReferences.js Fri Jul 09 02:39:46 2004 +0200 +++ b/client/digitallibrary/modules/newReferences.js Fri Jul 09 02:39:46 2004 +0200 @@ -35,7 +35,7 @@ var hyperlinkRef = baseUrl + "/digilib.jsp?"; - if ( select == 2 ) { + if ( select >= 2 ) { // no original size is referenced at the moment, // because the dpi values are not constant from user to user @@ -49,11 +49,15 @@ } } - parameterString += "&lv=3"; // level three - - parameterString = parameterString.slice(1); - - prompt("Alcatraz-style HTML link", hyperlinkRef + parameterString); + if (select == 2) { + parameterString += "&lv=3"; // level three + parameterString = parameterString.slice(1); + prompt("Alcatraz-style HTML link", hyperlinkRef + parameterString); + } else { + parameterString += "&lv=1"; // i just really want the image + parameterString = parameterString.slice(1); + return hyperlinkRef + parameterString; + } } else { @@ -68,7 +72,7 @@ } if ( select == 1 ) { - prompt("Link for HTML-documents", hyperlinkRef+ parameterString); + prompt("Link for HTML-documents", hyperlinkRef + parameterString); } if ( select == 0 ) {