customization
Not logged in

Back to dataSeltzer documentation index



Configuring and customizing dataSeltzer

dataSeltzer is an highly configurable component.
e.g. you could legitimately wish to customize the visual appearance of the HTML pages being published on your own website:

css brown style
brown-yellow style

css azure style
azure style

css green style
green style

dataSeltzer widely supports CSS styling: all the above figures directly corresponds to practical examples of the three alternative CSS stylesheets directly shipped within any source distribution of dataSeltzer. You'll find all them into the resources/css_styles directory.

italian
National translation in the Italian language

Simply choosing a CSS style of your own isn't enough: you could probably wish to translate any descriptive item of the User Interface into a different national language; or may be, you could simply wish to arrange such elements in a different way.
dataSeltzer has very few hard-coded text strings: you can easily change almost any UI element by simply editing the standard dataSeltzer.conf configuration file supporting every instance of dataSeltzer.


CSS stylesheet

If you are a WebMaster you'll surely already have a profound competence about this topic.
If you instead ignore quite almost about CSS you can easily find many comprehensive how-to guides and tutorials on the Web; e.g. this one is a good starting point.

You'll find three alternative pre-configured CSS stylesheets into the resources/css_styles directory of the standard source distribution of dataSeltzer.
Feel absolutely free to use these pre-defined CSS stylesheet as they are in your production installation; but you could more probably use them simply as a source of further inspiration, then writing at your own taste the final CSS stylesheet you intend to deploy on your installation.
All CSS pre-defined samples are detailed commented point by point: so you could simply read these stylesheets in order to get more detailed informations.
Just a quick reference, these are the CSS classes internally used by the HTML pages dynamically generated by the dataSeltzer CGI:


HTML templates

Not all the HTML code composing a Web page dynamically created by dataSeltzer will be directly generated by the CGI itself.
Many fragments will be simply copied / included from static external files expected to be found in the html_include directory supporting every dataSeltzer instance.
Such a layout will nicely support many kind of customization: you simply have to manually edit the appropriate HTML template then inserting any other HTML stuff you think to be useful.

You'll find a complete set of HTML pre-configured templates (identified by a .inc suffix) into the resources/html_include directory of the standard source distribution of dataSeltzer. Feel absolutely free to use these pre-defined HTML templates as they are in your production installation; or simply use them as a source of further inspiration, as wish better. Here is a quick reference of all HTML templates required by the dataSeltzer CGI so to correctly work as expected:

JavaScript support

dataSeltzer just relies on a very minimalistic and unsophisticated JavaScript support, mainly intended to intercept and handle user actions dynamically affecting the User Interface.
The standard implementation of all JS functions required by dataSeltzer is usually defined into the params_header.inc template; you'll be obviously free to relocate or change the basic JS implementation if you think this could be useful and appropriate. In this case you have to consider the following mandatory constraints:


The dataSeltzerMain.conf main configuration file

This is a rather simple XML file specifying the overall configuration of dataSeltzer. This file is always expected to be found on the same directory where the CGI component is.
You'll find a copy of the standard dataSeltzerMain.conf file into the resources/conf directory of the standard source distribution of dataSeltzer.
Starting from this very basic sample is always suggested, and will enable you to quickly edit your own configuration file.
The main configuration file is internally divided into a single section named <dataSeltzerMainConfig> grouping the following items:

The dataSeltzer.conf instance-specific configuration file

This too is a rather simpleXML file specifying many fine-grained details of the specific configuration intended for each single dataSeltzer instance.
You'll find a copy of the standard dataSeltzer.conf file into the resources/conf directory of the standard source distribution of dataSeltzer.
Starting from this very basic sample is always suggested, and will enable you to quickly edit your own configuration file.
The configuration file is internally divided into several sections so to keep the whole configuration in a properly ordered state:

Distributing extra files

You'll eventually wish to include several extra files within every ZipFile being downloaded: e.g. you'll probably be required to include some data license, some credit acknowledgement or may be some metadata or even a generic Readme.txt file.
dataSeltzer supports various alternative mechanisms allowing to obtain all this in the easiest, more flexible and painless way:

The ExtraDataSubDirs=FALSE layout (default)

subdir-false
  • by applying the ExtraDataSubDirs=FALSE layout only the directory pointed by the ExtraDataDir path will be inspected.
  • any other sub-directory will be completely ignored.
  • all files exactly matching the current datasource name (i.e. starting with the same name) will be included into the ZipFile created for downloading.
  • as shown in this example, both datasource1_license.txt and datasource1_readme.txt will be included when exporting any resultset coming from datasource1.

The ExtraDataSubDirs=TRUE layout

subdir-true
  • by applying the ExtraDataSubDirs=TRUE layout only first-level sub-directories within the main directory pointed by the ExtraDataDir path will be inspected.
  • any file directly contained within the main directory itself will be completely ignored.
  • exactly as any other lower-level sub-directory will be ignored.
  • if a first-level sub-directory exists exactly matching the name of the current datasource, then all files contained within such sub-directory will be included into the ZipFile created for downloading.
  • as shown in this example, both datasource1/license.txt and datasource1/readme.txt will be included when exporting any resultset coming from datasource1.





Back to dataSeltzer documentation index

Credits
Development of dataSeltzer has been funded by Tuscany Region - Territorial and Environmental Information System
Regione Toscana - Settore Sistema Informativo Territoriale ed Ambientale.