# HG changeset patch # User luginbue # Date 1089333586 -7200 # Node ID 5309ee93e249c1987cb285980c89b64bc7bfcc5d # Parent fddb9a2577fca5e82cf8c8d87908756a61847868 new versions on modules and contexto tool to show text diff -r fddb9a2577fc -r 5309ee93e249 client/digitallibrary/modules/newReferences.js --- 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 ) {