====== 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'. | | $use_client_side_xslt | | | $filepath | | | $google_tracking_id | | | $berry_icon | | | $unselected_favourite_icon | | | $selected_favourite_icon | | | $berrybasketswitch | | | $favouritebasketswitch | | | $berryBasketOn | | | $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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |