# HG changeset patch # User robcast # Date 1099398698 -3600 # Node ID 665f2f4559d0824fb1d964c20e0c83f1c5aec64e # Parent ed94b0e7dd00bcfb49e84bdf2f324cc0a7ed178f new doc diff -r ed94b0e7dd00 -r 665f2f4559d0 client/doc/digilib_interop.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/doc/digilib_interop.html Tue Nov 02 13:31:38 2004 +0100 @@ -0,0 +1,63 @@ + + +
+ +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 name
setParameter(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")