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

Last change on this file since 30842 was 30842, checked in by kjdon, 5 years ago

at site and colleciton level, displayItems are now in a displayItemList, to match metadataList

File size: 1.6 KB
Line 
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
10 <!-- use the 'main' layout -->
11 <xsl:include href="layouts/main.xsl"/>
12
13 <!-- set page title -->
14 <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
15
16 <!-- set page breadcrumbs -->
17 <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
18
19 <!-- the page content -->
20 <xsl:template match="/page">
21
22 <xsl:choose>
23 <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']">
24 <img border="0">
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>
26 <xsl:attribute name="alt">
27 <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/>
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
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.-->
39 <gslib:collectionDescriptionTextAndServicesLinks/>
40 </xsl:template>
41
42
43</xsl:stylesheet>
44
Note: See TracBrowser for help on using the repository browser.