source: main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/process.xsl@ 24007

Last change on this file since 24007 was 24007, checked in by sjm84, 13 years ago

Updating this branch to match the latest Greenstone3 changes

  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 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 extension-element-prefixes="java"
6 exclude-result-prefixes="java">
7
8 <!-- style includes global params interface_name, library_name -->
9 <xsl:include href="style.xsl"/>
10 <xsl:include href="service-params.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <!-- the main page layout template is here -->
15 <xsl:template match="page">
16 <html>
17 <head>
18 <title>
19 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
20 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
21 </title>
22 <xsl:call-template name="globalStyle"/>
23 <xsl:call-template name="pageStyle"/>
24 </head>
25 <body>
26 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
27 <div id="page-wrapper">
28 <xsl:call-template name="response" />
29 <xsl:call-template name="greenstoneFooter"/>
30 </div>
31 </body>
32 </html>
33 </xsl:template>
34
35 <xsl:template name="pageTitle">
36 <xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/>
37 </xsl:template>
38
39 <!-- page specific style goes here -->
40 <xsl:template name="pageStyle"/>
41
42
43 <xsl:template match="pageResponse">
44 <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
45 <center>
46 <xsl:call-template name="standardPageBanner">
47 <xsl:with-param name="collName" select="$clusterName"/>
48 </xsl:call-template>
49 <xsl:call-template name="navigationBar">
50 <xsl:with-param name="collName" select="$clusterName"/>
51 </xsl:call-template>
52 <xsl:apply-templates select="service">
53 <xsl:with-param name="clusterName" select="$clusterName"/>
54 </xsl:apply-templates>
55 <xsl:apply-templates select="status">
56 <xsl:with-param name="clusterName" select="$clusterName"/>
57 </xsl:apply-templates>
58 </center>
59 </xsl:template>
60
61 <xsl:template match="service">
62 <xsl:param name="clusterName"/>
63 <xsl:variable name='subaction' select="/page/pageRequest/@subaction"/>
64 <xsl:variable name='action' select="/page/pageRequest/@action"/>
65 <xsl:variable name='lang' select="/page/@lang"/>
66 <p/>
67 <form name="BuildForm" method="get" action="{$library_name}">
68 <xsl:apply-templates select="paramList"/>
69 <input type="hidden" name="a" value="{$action}"/>
70 <input type="hidden" name="c" value="{$clusterName}"/>
71 <input type="hidden" name="sa" value="p"/>
72 <input type="hidden" name='l' value='{$lang}'/>
73 <input type="hidden" name="s" value="{@name}"/>
74 <input type="hidden" name="rt" value="r"/>
75 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
76 </form>
77 <xsl:call-template name="dividerBar"/>
78 </xsl:template>
79
80 <xsl:template match="status">
81 <xsl:param name="clusterName"/>
82 <center/>
83 <applet code="org.greenstone.gsdl3.build.StatusDisplay.class" codebase='lib' archive='gsdl3.jar, xercesImpl.jar, xml-apis.jar' width='600' height='150'>The status display applet.
84 <param name='library'><xsl:attribute name="value"><xsl:value-of select='$library_name'/>?a=pr&amp;amp;rt=s&amp;amp;c=<xsl:value-of select='$clusterName'/>&amp;amp;s=<xsl:value-of select='/page/pageResponse/service/@name'/>&amp;amp;o=xml&amp;amp;ro=1&amp;amp;l=<xsl:value-of select='/page/@lang'/>&amp;amp;pid=<xsl:value-of select="@pid"/><xsl:apply-templates select="/page/pageResponse/service/paramList" mode="cgi"/></xsl:attribute></param>
85 <param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute></param>
86 <param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet>
87 <xsl:call-template name="dividerBar"/>
88 </xsl:template>
89
90
91</xsl:stylesheet>
92
Note: See TracBrowser for help on using the repository browser.