User Tools

Site Tools


en:user:gslib

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:user:gslib [2019/09/23 00:36] – created kjdonen:user:gslib [2023/03/13 01:46] (current) – external edit 127.0.0.1
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 <gslib:templatename/>.+Greenstone 3 has a gslib.xsl file which defines a lot of utility templates. These can be called simply by <gslib:templatename/>. They are basically just shortcuts to things.
  
 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/interfaces/default/transform/gslib.xsl.
  
 ===== Variables ===== ===== Variables =====
  
-| $interface_name |  +| $interface_name | The internal name of the current interface, eg 'default' 
-| $library_name |  +| $library_name | The name of the library servlet, eg 'library' 
-| $site_name |  |+| $site_name | The internal name of the current site, eg 'localsite'|
 | $use_client_side_xslt |  | | $use_client_side_xslt |  |
 | $filepath |  | | $filepath |  |
Line 37: Line 42:
 ===== Templates ===== ===== Templates =====
  
-| <gslib:siteName/> +gslib defines HEAPS of templates. Here is just a few of them. 
-| <gslib:siteDescription/> |+ 
 +| <gslib:siteName/>The display name of the site 
 +| <gslib:siteDescription/>The description of the site |
 | <gslib:siteLink/> |  | | <gslib:siteLink/> |  |
 | <gslib:collections/> |  | | <gslib:collections/> |  |
Line 51: Line 58:
 | <gslib:error/> |  | | <gslib:error/> |  |
 | <gslib:displayErrorsIfAny/> |  | | <gslib:displayErrorsIfAny/> |  |
 +| <gslib:rightArrow/> |  |
 +| <gslib:siteHomePageTitle/> |  |
 +| <gslib:selectACollectionTextBar/> |  |
 +| <gslib:crossCollectionQueciSearchForm/> |  |
 +| <gslib:groupName path=""/> |  |
 +| <gslib:groupDescription path=""/> |  |
 +| <gslib:groupHref path=""/> |  |
 +| <gslib:groupLinkWithImage/> |  |
 +| <gslib:collectionLinkWithImage/> |  |
 | <gslib:/> |  | | <gslib:/> |  |
 | <gslib:/> |  | | <gslib:/> |  |
 | <gslib:/> |  | | <gslib:/> |  |
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
-| <gslib:/> |  | 
- 
- 
  
en/user/gslib.1569198998.txt.gz · Last modified: 2019/09/23 00:36 by kjdon