source: main/trunk/greenstone3/web/interfaces/default/transform/pages/about.xsl@ 31560

Last change on this file since 31560 was 30861, checked in by kjdon, 8 years ago

created a new template named coll-description for easier customization

File size: 1.7 KB
RevLine 
[19856]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java util"
8 exclude-result-prefixes="java util">
9
[19988]10 <!-- use the 'main' layout -->
[19856]11 <xsl:include href="layouts/main.xsl"/>
12
[19988]13 <!-- set page title -->
14 <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
[19856]15
[19988]16 <!-- set page breadcrumbs -->
17 <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
[19856]18
[19988]19 <!-- the page content -->
[19856]20 <xsl:template match="/page">
21
[30740]22 <xsl:choose>
[30842]23 <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']">
[30740]24 <img border="0">
[30842]25 <xsl:attribute name="src"><xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItemList/displayItem[@name='icon']"/></xsl:attribute>
[30740]26 <xsl:attribute name="alt">
[30842]27 <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/>
[30740]28 </xsl:attribute>
29 <xsl:attribute name="title">
30 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>
31 </xsl:attribute>
32 </img>
33 </xsl:when>
34 </xsl:choose>
35
[19856]36 <!--Display the description text of the current collection,
37 and if some services are available then create a list
38 of links for each service within a <ul id="servicelist"> element.-->
[30861]39 <xsl:call-template name="coll-description"/>
[19856]40 </xsl:template>
[30861]41
42 <xsl:template name="coll-description">
43 <gslib:collectionDescriptionTextAndServicesLinks/>
44 </xsl:template>
[19856]45
46</xsl:stylesheet>
47
Note: See TracBrowser for help on using the repository browser.