comparison client/digitallibrary/dllib.js @ 317:610c7ee770cb

big autumn cleaning :-) - finally digilib.jsp uses the new javascript code - dito digicat.jsp - all files corresponding to the old frontend moved into /oldskin - all icons moved into /img
author robcast
date Thu, 28 Oct 2004 22:25:59 +0200
parents 4dbff786ff50
children d14782908c37
comparison
equal deleted inserted replaced
316:bf34a4d8f6b4 317:610c7ee770cb
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
16 16
17 Authors: 17 Authors:
18 Christian Luginbuehl, 01.05.2003 (first version) 18 Christian Luginbuehl, 01.05.2003 (first version)
19 DW 24.03.2004 (Changed for digiLib in Zope) 19 DW 24.03.2004 (Changed for digiLib in Zope)
20 Robert Casties, 04.08.2004 20 Robert Casties, 27.10.2004
21 21
22 ! Requires baselib.js ! 22 ! Requires baselib.js !
23 23
24 */ 24 */
25 25
26 var dlScriptVersion = "1.0b2"; 26 var dlScriptVersion = "1.0b4";
27
28
29 function identify() {
30 // used for identifying a digilib instance
31 // Relato uses that function - lugi
32 return "Digilib 0.6";
33 }
34
27 35
28 /* 36 /*
29 * more parameter handling 37 * more parameter handling
30 */ 38 */
31 39
289 // add a mark where clicked 297 // add a mark where clicked
290 if ( dlMarks.length > 7 ) { 298 if ( dlMarks.length > 7 ) {
291 alert("Only 8 marks are possible at the moment!"); 299 alert("Only 8 marks are possible at the moment!");
292 return; 300 return;
293 } 301 }
302 window.focus();
294 303
295 function markEvent(evt) { 304 function markEvent(evt) {
296 // event handler adding a new mark 305 // event handler adding a new mark
297 unregisterEvent("mousedown", elemScaler, markEvent); 306 unregisterEvent("mousedown", elemScaler, markEvent);
298 var p = dlTrafo.invtransform(evtPosition(evt)); 307 var p = dlTrafo.invtransform(evtPosition(evt));
482 if (par.length > 0) { 491 if (par.length > 0) {
483 hyperlinkRef += "?" + par; 492 hyperlinkRef += "?" + par;
484 } 493 }
485 return hyperlinkRef; 494 return hyperlinkRef;
486 } 495 }
496
497 function getRefWin(type, msg) {
498 // shows an alert with a reference to the current digilib set
499 if (! msg) {
500 msg = "Link for HTML documents";
501 }
502 prompt(msg, getRef());
503 }