A toolbar-friendly digilib page must define a Javascript variable
toolbarEnabledURL whose value is a HTTP URL that
produces a toolbar-enabled page. The toolbar should present a
button to "take over" the page design by replacing
the current page with the page from the given URL.
A toolbar-enabled page must offer the following Javascript functions:
dlScriptVersion: a String variable that contains the version number of the Javascript code (e.g. "1.12b3")setMark(): lets the user click and sets a mark at the clicked locationzoomArea(): lets the user click to select an area and zooms to the selected areamoveCenter(): lets the user click and recenters the image around the clicked locationgetRef(): returns a String with a URL reference to the current documentremoveMark(): removes the last markzoomBy(float factor): magnifies the image by the given factor around the current centerzoomFullpage(): zooms out so that the whole image is visibledisplay(int prio): reloads the page with the current parametersnewParameter(String name, String defaultValue, int prio): declares a new parameter with name, default value (can be of any type) and prioritygetParameter(String name): returns the value of the parameter with the name namesetParameter(String name, String value): sets the value of the named parameter (value can be of any type)getAllParameters(int prio): returns a String of all parameters in HTTP request format (name=value) below the given priorityaddMark(Position pos): adds a mark with the given PositiondeleteMark(): removes the last mark form the listgetAllMarks(): returns a String with all current marks in digilib format (for parameter "mk")addFlag(String name): adds a digilib mode flag with the given namehasFlag(String name): returns if the given flag is currently setremoveFlag(String name): removes the given flagtoggleFlag(String name): toggles the given flaggetAllFlags(): returns a String with all current flags in digilib format (for parameter "mo")