Mercurial > hg > digilib-old
diff 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 |
line wrap: on
line diff
--- a/client/digitallibrary/dllib.js Thu Oct 28 22:25:59 2004 +0200 +++ b/client/digitallibrary/dllib.js Thu Oct 28 22:25:59 2004 +0200 @@ -17,13 +17,21 @@ Authors: Christian Luginbuehl, 01.05.2003 (first version) DW 24.03.2004 (Changed for digiLib in Zope) - Robert Casties, 04.08.2004 + Robert Casties, 27.10.2004 ! Requires baselib.js ! */ -var dlScriptVersion = "1.0b2"; +var dlScriptVersion = "1.0b4"; + + +function identify() { + // used for identifying a digilib instance + // Relato uses that function - lugi + return "Digilib 0.6"; +} + /* * more parameter handling @@ -291,6 +299,7 @@ alert("Only 8 marks are possible at the moment!"); return; } + window.focus(); function markEvent(evt) { // event handler adding a new mark @@ -484,3 +493,11 @@ } return hyperlinkRef; } + +function getRefWin(type, msg) { + // shows an alert with a reference to the current digilib set + if (! msg) { + msg = "Link for HTML documents"; + } + prompt(msg, getRef()); +}