# HG changeset patch # User robcast # Date 1090330165 -7200 # Node ID 1ccda61967b2e830a90486998f940293b212ab5d # Parent 786c27786281b981497a513dcf98184cb85f9d1b initial parameter parsing now earlier diff -r 786c27786281 -r 1ccda61967b2 client/digitallibrary/digimage.jsp --- a/client/digitallibrary/digimage.jsp Tue Jul 20 09:57:24 2004 +0200 +++ b/client/digitallibrary/digimage.jsp Tue Jul 20 15:29:25 2004 +0200 @@ -51,6 +51,7 @@ newParameter('ddpix', '', 9); newParameter('ddpiy', '', 9); document.id='digilib'; + dl_param_init(); diff -r 786c27786281 -r 1ccda61967b2 client/digitallibrary/dllib.js --- a/client/digitallibrary/dllib.js Tue Jul 20 09:57:24 2004 +0200 +++ b/client/digitallibrary/dllib.js Tue Jul 20 15:29:25 2004 +0200 @@ -193,7 +193,21 @@ var elemScaler = null; var picElem = null; + +function dl_param_init() { + // parameter initialisation before onload + + // put the query parameters (sans "?") in the parameters array + parseParameters(location.search.slice(1)); + // treat special parameters + dlMarks = parseMarks(); + dlArea = parseArea(); + dlFlags = parseFlags(); +} + + function dl_init() { + // initalisation on load elemScaler = getElement("scaler", true); picElem = getElement("pic", true); if (picElem == null && elemScaler) { @@ -422,7 +436,7 @@ } -function getRef(select) { +function getRef() { // returns a reference to the current digilib set if (! baseUrl) { var baseUrl = location.protocol + "//" + location.host + location.pathname;