root/main/trunk/greenstone3/web/interfaces/oran/transform/pages/berry.xsl @ 24018

Revision 24018, 2.3 KB (checked in by sjm84, 8 years ago)

Another big set of updates to the Oran interface

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"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket')"/></xsl:template>
15
16    <!-- set page breadcrumbs -->
17    <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/> <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template>
18
19    <!-- the page content -->
20    <xsl:template match="/page">
21        <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
22        <script type="text/javascript" src="interfaces/oran/js/berrybasket/berrycheckout.js"><xsl:text> </xsl:text></script>
23        <script type="text/javascript">
24            <xsl:text disable-output-escaping="yes">
25                var doc;
26                var docList = new Array();
27               
28                //Slight hack so we can do things in the dev skin specifically
29                window.interfaceName = "dev";
30            </xsl:text>
31            <xsl:for-each select="/page/pageResponse/berryList/item">
32                <xsl:text disable-output-escaping="yes">doc = new Array();</xsl:text>
33                <xsl:for-each select="@*">
34                    <xsl:text disable-output-escaping="yes">doc["</xsl:text>
35                    <xsl:value-of select="name()" />
36                    <xsl:text disable-output-escaping="yes">"]='</xsl:text>
37                    <xsl:value-of select="." />
38                    <xsl:text disable-output-escaping="yes">';</xsl:text>
39                </xsl:for-each>
40                <xsl:text disable-output-escaping="yes">docList[</xsl:text>
41                <xsl:value-of select="position()-1"/>
42                <xsl:text>] = doc;</xsl:text>
43            </xsl:for-each>
44        </script>
45
46        <table class="navList" id="berryCheckoutOptions">
47            <tr>
48                <td id="fullview" class="current"><span>Full View</span></td>
49                <td id="textview"><span>Text View</span></td>
50                <td id="email"><span>Email</span></td>
51            </tr>
52            <div class="clear"><xsl:text> </xsl:text></div>
53        </table>
54        <div id="berryBasketContent"><span><xsl:text> </xsl:text></span></div>
55
56    </xsl:template>
57
58
59
60</xsl:stylesheet> 
61
Note: See TracBrowser for help on using the browser.