====== gslib: XSL utility templates ======
Greenstone 3 has a gslib.xsl file which defines a lot of utility templates. These can be called simply by . They are basically just shortcuts to things.
For example, gslib.xsl defines the following template:
This can be called using
It also defines some common variables, which can be accessed by all template files, using $variablename.
gslib.xsl can be found in web/interfaces/default/transform/gslib.xsl.
===== Variables =====
| $interface_name | The internal name of the current interface, eg 'default' |
| $library_name | The name of the library servlet, eg 'library' |
| $site_name | The internal name of the current site, eg 'localsite'. |
| $webswing_context | The name of the context through which webswing can be accessed, eg 'webswing-server' |
| $servlet_url_prefix | |
| $servlet_context | |
| $use_client_side_xslt | |
| $filepath | |
| $google_tracking_id | |
| $googlesignin_client_id | |
| $googlemaps_api_key | |
| $favouritebasket | |
| $documentbasket | |
| $webglilink | |
| $cookie_path | |
| $unselected_favourite_icon_url | |
| $selected_favourite_icon_url | |
| $favouriteBasketOn | |
| $documentBasketOn | |
| $thisCollectionEditor | |
===== Templates =====
gslib defines HEAPS of templates. Here is just a few of them.
| | The display name of the site |
| | The description of the site |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |