root/main/trunk/greenstone3/web/interfaces/oran/transform/pages/documentbasket.xsl @ 25176

Revision 25176, 2.1 KB (checked in by sjm84, 8 years ago)

Added a missing /

  • Property svn:executable set to *
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
2    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3    xmlns:java="http://xml.apache.org/xslt/java"
4    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
5    xmlns:gslib="http://www.greenstone.org/skinning"
6    extension-element-prefixes="java util"
7    exclude-result-prefixes="java util gsf">
8
9    <!-- use the 'main' layout -->
10    <xsl:import href="layouts/main.xsl"/>
11   
12    <!-- set page title -->
13    <xsl:template name="pageTitle">Document Basket</xsl:template>
14   
15    <!-- set page breadcrumbs -->
16    <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/>
17    <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template>
18
19    <xsl:template name="init-seaweed"/>
20   
21    <!-- the page content -->
22    <xsl:template match="/page">
23        <!-- Make sure the user is allowed to use this functionality -->
24        <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
25            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script>
26            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_dd.js"><xsl:text> </xsl:text></script>
27            <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_util.js"><xsl:text> </xsl:text></script>
28            <script type="text/javascript">YAHOO.util.Event.onDOMReady(initDocumentMaker);</script>
29
30            <link src="interfaces/{$interface_name}/style/documentbasket.js"/>
31            <xsl:for-each select="//item">
32                <a class="dbdoc">
33                    <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;dt=hierarchy&amp;d=<xsl:value-of select="@name"/>&amp;p.a=b&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;ed=1</xsl:attribute>
34                    <xsl:value-of select="@title"/>
35                </a>
36            </xsl:for-each>
37        </xsl:if>
38    </xsl:template>
39
40</xsl:stylesheet> 
41
42
43
Note: See TracBrowser for help on using the browser.