[24510] | 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 -->
|
---|
[24999] | 10 | <xsl:import href="layouts/main.xsl"/>
|
---|
[24510] | 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 |
|
---|
[24999] | 19 | <xsl:template name="init-seaweed"/>
|
---|
| 20 |
|
---|
[24510] | 21 | <!-- the page content -->
|
---|
| 22 | <xsl:template match="/page">
|
---|
[25144] | 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>
|
---|
[25142] | 29 |
|
---|
[25144] | 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&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&dt=hierarchy&d=<xsl:value-of select="@name"/>&p.a=b&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&ed=1</xsl:attribute>
|
---|
| 34 | <xsl:value-of select="@title"/>
|
---|
| 35 | </a>
|
---|
| 36 | </xsl:for-each>
|
---|
| 37 | <xsl:if>
|
---|
[24510] | 38 | </xsl:template>
|
---|
| 39 |
|
---|
| 40 | </xsl:stylesheet>
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 |
|
---|