An Offline Browser For GAIA Data

With some minor modifications it should be possible for the GAIA browser to work in an offline mode, accessing all images from disk.

Changes required

The following changes from standard behaviour are required. Other changes may be necessary.

Data availability
Assume all data is available.
bubble It may be possible to test if a image is available by making a HEAD request and checking the response.
No palettes or image orientation
Palette mapping and image orientation is performed on-the-fly by the palette PHP script. Without network access this service is not available. A strftime format specifier denoting the image filenames (relative to the project's data directory) is already exists in the web services. An offline browser could access the unprocessed image files directly.
bubble Allow user to define the location of the data directory. Browser should accept a query parameter to define the directory.
Do not display palette or image orientation options
They will not function so they should not be displayed. Easy to do on with style sheets when the page has loaded.

Implementation comments

  • How to decide if browser is in offline mode? Maybe document.location.protocol?
  • Create a tool for the toolbox to allow users to configure the data directory?
  • Will cookies work for file: URLs?
  • Is it possible to make a (HEAD) XMLHttpRequest to determine if a file exists (when using the file: protocol)?
    bubble No, it seems not.


-- SteveMarple - 08 Apr 2007

Topic revision: r2 - 2007-04-08 - 17:10:03 - SteveMarple
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback