en:user:gslib
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:user:gslib [2019/09/23 00:36] – created kjdon | en:user:gslib [2025/07/23 01:53] (current) – [Variables] updated for 3.12 kjdon | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== gslib: XSL utility templates ====== | ====== gslib: XSL utility templates ====== | ||
- | Greenstone 3 has a gslib.xsl file which defines a lot of utility templates. These can be called simply by < | + | Greenstone 3 has a gslib.xsl file which defines a lot of utility templates. These can be called simply by < |
For example, gslib.xsl defines the following template: | For example, gslib.xsl defines the following template: | ||
Line 13: | Line 16: | ||
It also defines some common variables, which can be accessed by all template files, using $variablename. | It also defines some common variables, which can be accessed by all template files, using $variablename. | ||
+ | |||
+ | gslib.xsl can be found in web/ | ||
===== Variables ===== | ===== Variables ===== | ||
- | | $interface_name | | | + | | $interface_name | The internal name of the current interface, eg ' |
- | | $library_name | | | + | | $library_name | The name of the library servlet, eg ' |
- | | $site_name | | | + | | $site_name |
+ | | $webswing_context | The name of the context through which webswing can be accessed, eg ' | ||
+ | | $servlet_url_prefix | | | ||
+ | | $servlet_context | ||
| $use_client_side_xslt | | | | $use_client_side_xslt | | | ||
| $filepath | | | | $filepath | | | ||
| $google_tracking_id | | | | $google_tracking_id | | | ||
- | + | | $googlesignin_client_id | | | |
- | | $berry_icon | + | | $googlemaps_api_key | | |
- | | $unselected_favourite_icon | + | | $favouritebasket |
- | | $selected_favourite_icon | + | | $documentbasket |
- | | $berrybasketswitch | + | | $webglilink |
- | | $favouritebasketswitch | + | | $cookie_path |
- | | $berryBasketOn | + | | $unselected_favourite_icon_url |
+ | | $selected_favourite_icon_url | ||
| $favouriteBasketOn | | | | $favouriteBasketOn | | | ||
| $documentBasketOn | | | | $documentBasketOn | | | ||
Line 37: | Line 46: | ||
===== Templates ===== | ===== Templates ===== | ||
- | | < | + | gslib defines HEAPS of templates. Here is just a few of them. |
- | | < | + | |
+ | | < | ||
+ | | < | ||
| < | | < | ||
| < | | < | ||
Line 51: | Line 62: | ||
| < | | < | ||
| < | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
| < | | < | ||
| < | | < | ||
| < | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | | < | ||
- | |||
- | |||
en/user/gslib.1569198998.txt.gz · Last modified: 2019/09/23 00:36 by kjdon