Mercurial > hg > digilib
comparison client/digitallibrary/modules/newReferences.js @ 225:825d2dc1da11
new versions on modules and contexto tool to show text
author | luginbue |
---|---|
date | Fri, 09 Jul 2004 02:39:46 +0200 |
parents | 7dc74e541d7c |
children |
comparison
equal
deleted
inserted
replaced
224:c70823f5af75 | 225:825d2dc1da11 |
---|---|
33 */ | 33 */ |
34 function ref(select) { | 34 function ref(select) { |
35 | 35 |
36 var hyperlinkRef = baseUrl + "/digilib.jsp?"; | 36 var hyperlinkRef = baseUrl + "/digilib.jsp?"; |
37 | 37 |
38 if ( select == 2 ) { | 38 if ( select >= 2 ) { |
39 | 39 |
40 // no original size is referenced at the moment, | 40 // no original size is referenced at the moment, |
41 // because the dpi values are not constant from user to user | 41 // because the dpi values are not constant from user to user |
42 removeMoFlag('osize'); | 42 removeMoFlag('osize'); |
43 | 43 |
47 if ( (dlParams[param].detail < 9) && (dlParams[param].defaultValue != dlParams[param].value) ) { | 47 if ( (dlParams[param].detail < 9) && (dlParams[param].defaultValue != dlParams[param].value) ) { |
48 parameterString += "&" + param + "=" + dlParams[param].value; | 48 parameterString += "&" + param + "=" + dlParams[param].value; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 parameterString += "&lv=3"; // level three | 52 if (select == 2) { |
53 | 53 parameterString += "&lv=3"; // level three |
54 parameterString = parameterString.slice(1); | 54 parameterString = parameterString.slice(1); |
55 | 55 prompt("Alcatraz-style HTML link", hyperlinkRef + parameterString); |
56 prompt("Alcatraz-style HTML link", hyperlinkRef + parameterString); | 56 } else { |
57 parameterString += "&lv=1"; // i just really want the image | |
58 parameterString = parameterString.slice(1); | |
59 return hyperlinkRef + parameterString; | |
60 } | |
57 | 61 |
58 } else { | 62 } else { |
59 | 63 |
60 var parameterString = ''; | 64 var parameterString = ''; |
61 | 65 |
66 parameterString += "+" + dlParams.wx.value + "+" + dlParams.wy.value + "+" + dlParams.ww.value; | 70 parameterString += "+" + dlParams.wx.value + "+" + dlParams.wy.value + "+" + dlParams.ww.value; |
67 parameterString += "+" + dlParams.wh.value; | 71 parameterString += "+" + dlParams.wh.value; |
68 } | 72 } |
69 | 73 |
70 if ( select == 1 ) { | 74 if ( select == 1 ) { |
71 prompt("Link for HTML-documents", hyperlinkRef+ parameterString); | 75 prompt("Link for HTML-documents", hyperlinkRef + parameterString); |
72 } | 76 } |
73 | 77 |
74 if ( select == 0 ) { | 78 if ( select == 0 ) { |
75 prompt("Link for LaTeX-documents", "\\href{" + hyperlinkRef + parameterString + "}{TEXT}"); | 79 prompt("Link for LaTeX-documents", "\\href{" + hyperlinkRef + parameterString + "}{TEXT}"); |
76 } | 80 } |