Changeset 4002 for trunk/gsdl3
- Timestamp:
- 2003-03-26T12:46:39+12:00 (21 years ago)
- Location:
- trunk/gsdl3/interfaces/default/transform
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/interfaces/default/transform/about.xsl
r3989 r4002 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 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"> 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 7 <xsl:include href="style.xsl"/> 8 9 <xsl:output method="html"/> 6 10 7 <xsl:include href="style.xsl"/> 8 9 <xsl:output method="html"/> 10 11 <xsl:template match="page"> 12 <xsl:variable name="collName" select="pageRequest/paramList/param[@name='c']/@value"/> 13 <html> 14 <xsl:call-template name="greenstoneHead"/> 15 <body xsl:use-attribute-sets="body-style"> 16 <center> 17 <table width='537'> 18 <tr><td> 19 <xsl:apply-templates select="pageResponse/collection|pageResponse/serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 20 </td></tr></table> 21 </center> 22 <xsl:call-template name="greenstoneFooter"/> 23 </body> 24 </html> 25 </xsl:template> 11 <xsl:template match="pageResponse"> 12 <xsl:variable name="collName" select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/> 13 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 14 </xsl:template> 26 15 27 16 <xsl:template match="collection|serviceCluster"> -
trunk/gsdl3/interfaces/default/transform/applet.xsl
r3655 r4002 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 5 <xsl:include href="style.xsl"/> 6 7 <xsl:output method="html"/> 8 <xsl:template match="pageResponse"> 9 <xsl:variable name="collName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 10 <center> 11 <xsl:call-template name="collectionPageBanner"> 12 <xsl:with-param name="collName" select="$collName"/> 13 </xsl:call-template> 14 <p/> 15 <xsl:copy-of select="applet"/> 16 <xsl:call-template name="greenBar"/> 17 </center> 18 </xsl:template> 19 </xsl:stylesheet> 4 20 5 <xsl:include href="style.xsl"/>6 7 <xsl:output method="html"/>8 9 <xsl:template match="page">10 11 <xsl:variable name="collName"><xsl:value-of select="request/paramList/param[@name='c']/@value"/></xsl:variable>12 <html>13 <xsl:call-template name="greenstoneHead"/>14 <body xsl:use-attribute-sets="body-style">15 <center>16 <xsl:call-template name="collectionPageBanner">17 <xsl:with-param name="collName" select="$collName"/>18 </xsl:call-template>19 <p/>20 <xsl:copy-of select="applet"/>21 <xsl:call-template name="greenBar"/>22 </center>23 <xsl:call-template name="greenstoneFooter"/>24 </body>25 </html>26 </xsl:template>27 28 29 </xsl:stylesheet> -
trunk/gsdl3/interfaces/default/transform/basicquery.xsl
r3989 r4002 8 8 <xsl:output method="html"/> 9 9 10 <xsl:template match="pageResponse"> 11 <xsl:variable name="collName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 10 12 11 <xsl:template match="page"> 12 <xsl:variable name="collName" select="pageRequest/paramList/param[@name='c']/@value"/> 13 <center> 14 <xsl:call-template name="collectionPageBanner"> 15 <xsl:with-param name="collName" select="$collName"/> 16 </xsl:call-template> 17 <xsl:apply-templates select="service"> 18 <xsl:with-param name="collName" select="$collName"/> 19 </xsl:apply-templates> 20 </center> 13 21 14 <html> 15 <xsl:call-template name="greenstoneHead"/> 16 <body xsl:use-attribute-sets="body-style"> 17 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 18 <td valign="top" width="65"> 19 <img src="interfaces/default/images/spacer.gif" width="65" height="1" alt="" border="0"/> 20 </td> 21 <td/> 22 <center> 23 <table width="537"> 24 <tr/> 25 <td/> 26 <xsl:apply-templates select="pageResponse"> 27 <xsl:with-param name="collName" select="$collName"/> 28 </xsl:apply-templates> 29 <xsl:call-template name="greenBar"/> 30 <xsl:call-template name="greenstoneFooter"/> 31 </table> 32 </center> 22 <!-- Process the query response --> 23 <xsl:if test="documentNodeList"> 24 <xsl:call-template name="greenBarResults"/> 25 26 <!-- If query term information is available, display it --> 27 <br/> 28 <xsl:if test="count(termList/term) > 0"> 29 <small> 30 <xsl:call-template name="text"><xsl:with-param name="key">query.wordcount</xsl:with-param></xsl:call-template> 31 <xsl:for-each select="termList/term"> 32 <xsl:if test="position() > 1">, </xsl:if> 33 <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/> 34 </xsl:for-each> 35 </small> 36 <br/> 37 </xsl:if> 38 39 <!-- If the number of matching documents is known, display it --> 40 <xsl:variable name="numDocsMatched" select="metadataList/metadata[@name='numDocsMatched']/@value"/> 41 <xsl:if test="$numDocsMatched"> 42 <xsl:choose> 43 <xsl:when test="$numDocsMatched='0'"> 44 <xsl:call-template name="text"><xsl:with-param name="key">query.nodocsmatch</xsl:with-param></xsl:call-template> 45 </xsl:when> 46 <xsl:when test="$numDocsMatched='1'"> 47 <xsl:call-template name="text"><xsl:with-param name="key">query.onedocsmatch</xsl:with-param></xsl:call-template> 48 </xsl:when> 49 <xsl:otherwise> 50 <xsl:value-of select="$numDocsMatched"/> documents matched the query. 51 </xsl:otherwise> 52 </xsl:choose> 53 </xsl:if> 54 55 <!-- Display the matching documents --> 56 <table> 57 <tr valign="top"> 58 <xsl:for-each select="documentNodeList/documentNode"> 59 <tr> 60 <xsl:apply-templates select="."> 61 <xsl:with-param name="collName" select="$collName"/> 62 </xsl:apply-templates> 63 </tr> 64 </xsl:for-each> 65 </tr> 33 66 </table> 34 </body>35 </html>36 </xsl:template>37 38 39 <xsl:template match="pageResponse">40 <xsl:param name="collName"/>41 42 <center>43 <xsl:call-template name="collectionPageBanner">44 <xsl:with-param name="collName" select="$collName"/>45 <xsl:with-param name="collIcon" select="collection/metadataList/metadata[@name='colIcon']"/>46 <xsl:with-param name="httpPath" select="collection/metadataList/metadata[@name='httpPath']"/>47 </xsl:call-template>48 <xsl:apply-templates select="service">49 <xsl:with-param name="collName" select="$collName"/>50 </xsl:apply-templates>51 </center>52 53 <!-- Process the query response -->54 <xsl:if test="documentNodeList">55 <xsl:call-template name="greenBarResults"/>56 57 <!-- If query term information is available, display it -->58 <br/>59 <xsl:if test="count(termList/term) > 0">60 <small>61 Word count:62 <xsl:for-each select="termList/term">63 <xsl:if test="position() > 1">, </xsl:if>64 <xsl:value-of select="@name"/>: <xsl:value-of select="@freq"/>65 </xsl:for-each>66 </small>67 <br/>68 67 </xsl:if> 69 70 <!-- If the number of matching documents is known, display it --> 71 <xsl:variable name="numDocsMatched" select="metadataList/metadata[@name='numDocsMatched']/@value"/> 72 <xsl:if test="$numDocsMatched"> 73 <xsl:choose> 74 <xsl:when test="$numDocsMatched='0'"> 75 No documents matched the query. 76 </xsl:when> 77 <xsl:when test="$numDocsMatched='1'"> 78 1 document matched the query. 79 </xsl:when> 80 <xsl:otherwise> 81 <xsl:value-of select="$numDocsMatched"/> documents matched the query. 82 </xsl:otherwise> 83 </xsl:choose> 84 </xsl:if> 85 86 <!-- Display the matching documents --> 87 <table> 88 <tr valign="top"> 89 <xsl:for-each select="documentNodeList/documentNode"> 90 <tr> 91 <xsl:apply-templates select="."> 92 <xsl:with-param name="collName" select="$collName"/> 93 </xsl:apply-templates> 94 </tr> 95 </xsl:for-each> 96 </tr> 97 </table> 98 </xsl:if> 99 </xsl:template> 68 <xsl:call-template name="greenBar"/> 69 </xsl:template> 100 70 101 71 -
trunk/gsdl3/interfaces/default/transform/classifier.xsl
r3886 r4002 9 9 <xsl:output method="html"/> 10 10 11 <!-- 12 <xslt:template xmlns:xslt="http://www.w3.org/1999/XSL/Transform" match="documentNode" priority="6"><td><a href="library?a=d&c=collName&d=name"><img src="interfaces/default/images/book.gif" width="18" height="11" border="0"/></a></td><td><xslt:value-of select="metadataList/metadata[@name='Keyword']"/>***</td></xslt:template> 13 14 <xsl:template match="documentNode" priority="3"><td><a xmlns:xslt="http://www.w3.org/1999/XSL/Transform" href="library?a=d&c=collName&d=name"><img 15 src="interfaces/default/images/book.gif" width="18" height="11" border="0"/></a></td><td><xslt:value-of xmlns:xslt="http://www.w3.org/1999/XSL/Transform" select="metadataList/metadata[@name='Keyword']"/></td></xsl:template> 16 17 <xsl:template match="documentNode" priority="4"><td><a xmlns:xslt="http://www.w3.org/1999/XSL/Transform" href="library?a=d&c=collName&d=name"><xslt:value-of select="metadataList/metadata[@name='Keyword']"/></a></td></xsl:template> 18 --> 19 <xsl:template match="page"> 20 <xsl:variable name="collName"><xsl:value-of select="request/paramList/param[@name='c']/@value"/></xsl:variable> 11 <xsl:template match="pageResponse"> 12 <xsl:variable name="collName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 21 13 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable> 22 <html> 23 <xsl:call-template name="greenstoneHead"/> 24 <body xsl:use-attribute-sets="body-style"> 25 <center> 26 <xsl:call-template name="collectionPageBanner"> 27 <xsl:with-param name="collName" select="$collName"/> 28 </xsl:call-template> 29 <xsl:apply-templates select="service/classifierList"> 30 <xsl:with-param name="collName" select="$collName"/> 31 <xsl:with-param name="serviceName" select="$serviceName"/> 32 </xsl:apply-templates> 33 <p/> 34 <xsl:apply-templates select="response/classifier"> 35 <xsl:with-param name="collName" select="$collName"/> 36 <xsl:with-param name="serviceName" select="$serviceName"/> 37 </xsl:apply-templates> 38 </center> 39 <xsl:call-template name="greenstoneFooter"/> 40 </body> 41 </html> 14 <center> 15 <xsl:call-template name="collectionPageBanner"> 16 <xsl:with-param name="collName" select="$collName"/> 17 </xsl:call-template> 18 <xsl:apply-templates select="service/classifierList"> 19 <xsl:with-param name="collName" select="$collName"/> 20 <xsl:with-param name="serviceName" select="$serviceName"/> 21 </xsl:apply-templates> 22 <p/> 23 <xsl:apply-templates select="classifier"> 24 <xsl:with-param name="collName" select="$collName"/> 25 <xsl:with-param name="serviceName" select="$serviceName"/> 26 </xsl:apply-templates> 27 </center> 42 28 </xsl:template> 43 29 44 30 <xsl:template match="classifierList"> 45 <xsl:param name="collName" >coll-name</xsl:param>46 <xsl:param name="serviceName" >service-name</xsl:param>31 <xsl:param name="collName"/> 32 <xsl:param name="serviceName"/> 47 33 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 48 <xsl:variable name="selected" select="ancestor::page/ response/classifier/@name"/>34 <xsl:variable name="selected" select="ancestor::page/pageResponse/classifier/@name"/> 49 35 <table width='537'><tr> 50 36 <xsl:for-each select="classifier"> … … 64 50 65 51 <xsl:template match="classifier"> 66 <xsl:param name="collName" >coll-name</xsl:param>67 <xsl:param name="serviceName" >service-name</xsl:param>52 <xsl:param name="collName"/> 53 <xsl:param name="serviceName"/> 68 54 <xsl:variable name="cl_name"><xsl:value-of select="@name"/></xsl:variable> 69 <xsl:variable name="interleave"><xsl:value-of select="ancestor::page/ service/classifierList/classifier[@name=$cl_name]/@documentInterleave"/></xsl:variable>70 <xsl:variable name="orientation"><xsl:value-of select="ancestor::page/ service/classifierList/classifier[@name=$cl_name]/@orientation"/></xsl:variable>55 <xsl:variable name="interleave"><xsl:value-of select="ancestor::page/pageResponse/service/classifierList/classifier[@name=$cl_name]/@documentInterleave"/></xsl:variable> 56 <xsl:variable name="orientation"><xsl:value-of select="ancestor::page/pageResponse/service/classifierList/classifier[@name=$cl_name]/@orientation"/></xsl:variable> 71 57 <xsl:variable name='mode'><xsl:value-of select='$orientation'/>-<xsl:value-of select='$interleave'/></xsl:variable> 72 58 <xsl:choose> … … 174 160 <td><a href="{$library}?a=d&c={$collName}&d={@nodeID}"><img src='interfaces/default/images/book.gif' width='18' height='11' border='0'/></a></td><td><xsl:value-of select="metadataList/metadata[@name='Title']"/></td> 175 161 </xsl:template> 176 177 162 <!-- 163 <xslt:template xmlns:xslt="http://www.w3.org/1999/XSL/Transform" match="documentNode" priority="4"> 164 <xslt:param name="collName">coll-name</xslt:param> 165 166 <xslt:variable name="library" select="ancestor::page/config/library_name" /> <td> 167 <a href="{$library}?a=d&c={$collName}&d={@nodeID}"> 168 <img border="0" height="11" src="interfaces/default/images/book.gif" width="18" /></a> 169 </td> 170 171 <td> 172 <xslt:value-of select="metadataList/metadata[@name='Source']" /></td> 173 </xslt:template> 174 --> 178 175 <!-- icon + title --> 179 176 <xsl:template match="classifierNode"> -
trunk/gsdl3/interfaces/default/transform/document.xsl
r3989 r4002 11 11 --> 12 12 13 13 <!-- 14 14 <xsl:template match="page"> 15 15 <xsl:variable name="collName" select="pageRequest/paramList/param[@name='c']/@value"/> … … 17 17 <html> 18 18 <xsl:call-template name="greenstoneHead"/> 19 <!-- <head>20 <title>21 No title yet.22 </title>23 </head> -->24 19 25 20 <body xsl:use-attribute-sets="body-style"> … … 31 26 </html> 32 27 </xsl:template> 33 28 --> 34 29 35 30 <xsl:template match="pageResponse"> 36 <xsl:param name="collName"/> 37 38 <center> 31 <xsl:variable name="collName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 32 <center> 39 33 <xsl:call-template name="collectionPageBanner"> 40 34 <xsl:with-param name="collName" select="$collName"/> 41 <xsl:with-param name="collIcon" select="collection/metadataList/metadata[@name='colIcon']"/>42 <xsl:with-param name="httpPath" select="collection/metadataList/metadata[@name='httpPath']"/> 43 </xsl:call-template>35 <!-- <xsl:with-param name="collIcon" select="collection/metadataList/metadata[@name='colIcon']"/> 36 <xsl:with-param name="httpPath" select="collection/metadataList/metadata[@name='httpPath']"/>--> 37 </xsl:call-template> 44 38 45 39 <!-- Display table of contents --> … … 63 57 </table> 64 58 </center> 65 </xsl:template> 59 <xsl:call-template name="greenBar"/> 60 </xsl:template> 66 61 67 62 -
trunk/gsdl3/interfaces/default/transform/home.xsl
r3989 r4002 7 7 <xsl:output method="html"/> 8 8 9 <xsl:template match="page"> 10 <html> 11 <xsl:call-template name="greenstoneHead"/> 12 <body xsl:use-attribute-sets="body-style"> 13 14 <xsl:call-template name="greenstonePageBanner"/> 15 <center> 16 <xsl:apply-templates select="pageResponse/collectionList"/> 17 <xsl:apply-templates select="pageResponse/serviceClusterList"/> 18 <xsl:apply-templates select="pageResponse/serviceList"/> 19 </center> 20 <xsl:call-template name="greenstoneFooter"/> 21 </body> 22 </html> 23 </xsl:template> 9 <xsl:template match="pageResponse"> 10 <xsl:call-template name="greenstonePageBanner"/> 11 <center> 12 <xsl:apply-templates select="collectionList"/> 13 <xsl:apply-templates select="serviceClusterList"/> 14 <xsl:apply-templates select="serviceList"/> 15 </center> 16 </xsl:template> 24 17 25 18 … … 34 27 <img width="150" border="1"> 35 28 <xsl:attribute name="src"> 36 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/ <xsl:value-of select="metadataList/metadata[@name='colIcon']"/>29 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/> 37 30 </xsl:attribute> 38 31 <xsl:attribute name="alt"> … … 46 39 </xsl:template> 47 40 48 <!--49 <xsl:template match="serviceList">50 <xsl:if test="service[@type='transform']">51 <p/><a <b>Transformation Services</b>52 </xsl:if>53 <xsl:if test="service[@type='enrich']">54 <p/><b>Enrichment Services</b>55 </xsl:if>56 <xsl:if test="service[@type='build']">57 <p/><b>Collection Building Services</b>58 </xsl:if>59 <p/><xsl:call-template name="greenBar"/>60 </xsl:template>61 -->62 63 41 <xsl:template match="serviceClusterList"> 64 42 <xsl:for-each select="serviceCluster"> -
trunk/gsdl3/interfaces/default/transform/process.xsl
r3963 r4002 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 4 5 <xsl:include href="style.xsl"/>6 <xsl:include href="service-params.xsl"/>5 <xsl:include href="style.xsl"/> 6 <xsl:include href="service-params.xsl"/> 7 7 8 <xsl:output method="html"/>8 <xsl:output method="html"/> 9 9 10 <xsl:template match="page"> 10 <xsl:template match="pageResponse"> 11 <xsl:variable name="clusterName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 12 <center> 13 <xsl:call-template name="clusterPageBanner"> 14 <xsl:with-param name="clusterName" select="$clusterName"/> 15 </xsl:call-template> 16 <xsl:apply-templates select="service"> 17 <xsl:with-param name="clusterName" select="$clusterName"/> 18 </xsl:apply-templates> 19 <xsl:apply-templates select="status"> 20 <xsl:with-param name="clusterName" select="$clusterName"/> 21 </xsl:apply-templates> 22 </center> 23 </xsl:template> 11 24 12 <xsl:variable name="clusterName"><xsl:value-of select="request/paramList/param[@name='c']/@value"/></xsl:variable> 13 <html> 14 <xsl:call-template name="greenstoneHead"/> 15 <body xsl:use-attribute-sets="body-style"> 16 <center> 17 <xsl:call-template name="clusterPageBanner"> 18 <xsl:with-param name="clusterName" select="$clusterName"/> 19 </xsl:call-template> 20 <xsl:apply-templates select="service"> 21 <xsl:with-param name="clusterName" select="$clusterName"/> 22 </xsl:apply-templates> 23 <xsl:apply-templates select="response"> 24 <xsl:with-param name="clusterName" select="$clusterName"/> 25 </xsl:apply-templates> 26 </center> 27 <xsl:call-template name="greenstoneFooter"/> 28 </body> 29 </html> 30 </xsl:template> 31 32 <xsl:template match="service"> 33 <xsl:param name="clusterName">cluster-name</xsl:param> 34 <xsl:variable name='library' select='../config/library_name'/> 35 <xsl:variable name='subaction' select="../request/@subaction"/> 36 <xsl:variable name='action' select="../request/@action"/> 37 <xsl:variable name='lang' select="../request/@lang"/> 38 <h3><xsl:value-of select="display/name"/></h3><p/> 39 <form name="BuildForm" method="get" action="/gsdl3/{$library}"> 40 <xsl:apply-templates select="paramList"/> 41 <input type="hidden" name="a" value="{$action}"/> 42 <input type="hidden" name="c" value="{$clusterName}"/> 43 <input type="hidden" name="sa" value="p"/> 44 <input type="hidden" name='l' value='{$lang}'/> 45 <input type="hidden" name="s" value="{@name}"/> 46 <input type="hidden" name="rt" value="r"/> 47 <input type="submit"><xsl:attribute name="value"><xsl:value-of select='display/submit'/></xsl:attribute></input> 48 </form> 49 <xsl:call-template name="greenBar"/> 50 </xsl:template> 51 25 <xsl:template match="service"> 26 <xsl:param name="clusterName">cluster-name</xsl:param> 27 <xsl:variable name='library' select='ancestor::page/config/library_name'/> 28 <xsl:variable name='subaction' select="ancestor::page/pageRequest/@subaction"/> 29 <xsl:variable name='action' select="ancestor::page/pageRequest/@action"/> 30 <xsl:variable name='lang' select="ancestor::page/pageRequest/@lang"/> 31 <h3><xsl:value-of select="display/name"/></h3><p/> 32 <form name="BuildForm" method="get" action="/gsdl3/{$library}"> 33 <xsl:apply-templates select="paramList"/> 34 <input type="hidden" name="a" value="{$action}"/> 35 <input type="hidden" name="c" value="{$clusterName}"/> 36 <input type="hidden" name="sa" value="p"/> 37 <input type="hidden" name='l' value='{$lang}'/> 38 <input type="hidden" name="s" value="{@name}"/> 39 <input type="hidden" name="rt" value="r"/> 40 <input type="submit"><xsl:attribute name="value"><xsl:value-of select='display/submit'/></xsl:attribute></input> 41 </form> 42 <xsl:call-template name="greenBar"/> 43 </xsl:template> 44 52 45 53 46 <xsl:template match="paramList"> … … 68 61 </xsl:template> 69 62 70 <xsl:template match=" response">63 <xsl:template match="status"> 71 64 <xsl:param name="clusterName">cluster-name</xsl:param> 72 65 <center/> 73 <applet code="org.greenstone.gsdl3.build.StatusDisplay.class" codebase='lib/java' archive='gsdl3.jar, xercesImpl.jar, jaxp.jar, xml-apis.jar' width='537' height='100'>The status display applet.<param name='library'><xsl:attribute name="value"><xsl:value-of select=' ../config/library_name'/>?a=pr&rt=s&c=<xsl:value-of select='$clusterName'/>&s=<xsl:value-of select='../service/@name'/>&o=xml&ro=1&l=<xsl:value-of select='../request/@lang'/>&pid=<xsl:value-of select="status/@pid"/><xsl:apply-templates select="../service/paramList" mode="cgi"/></xsl:attribute></param><param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="status"/></xsl:attribute></param><param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="status/@code"/></xsl:attribute></param></applet>66 <applet code="org.greenstone.gsdl3.build.StatusDisplay.class" codebase='lib/java' archive='gsdl3.jar, xercesImpl.jar, jaxp.jar, xml-apis.jar' width='537' height='100'>The status display applet.<param name='library'><xsl:attribute name="value"><xsl:value-of select='ancestor::page/config/library_name'/>?a=pr&rt=s&c=<xsl:value-of select='$clusterName'/>&s=<xsl:value-of select='ancestor::page/pageResponse/service/@name'/>&o=xml&ro=1&l=<xsl:value-of select='ancestor::page/pageRequest/@lang'/>&pid=<xsl:value-of select="@pid"/><xsl:apply-templates select="ancestor::page/pageResponse/service/paramList" mode="cgi"/></xsl:attribute></param><param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="status"/></xsl:attribute></param><param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet> 74 67 <xsl:call-template name="greenBar"/> 75 68 </xsl:template> -
trunk/gsdl3/interfaces/default/transform/style.xsl
r3989 r4002 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 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 7 <!-- 8 <xsl:output method="html"/> 9 --> 10 11 <xsl:attribute-set name="body-style"> 12 <xsl:attribute name="bgcolor">#ffffff</xsl:attribute> 13 <xsl:attribute name="text">#000000</xsl:attribute> 14 <xsl:attribute name="link">#006666</xsl:attribute> 15 <xsl:attribute name="alink">#cc9900</xsl:attribute> 16 <xsl:attribute name="vlink">#666633</xsl:attribute> 17 <xsl:attribute name="background">interfaces/default/images/chalk.gif</xsl:attribute> 18 </xsl:attribute-set> 19 20 21 <xsl:template name="greenstoneHead"> 22 <head> 23 <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title> 24 25 </head> 26 </xsl:template> 27 28 <xsl:template name="greenstonePageBanner"> 29 30 <center> 31 <table width="537" cellspacing="0" cellpadding="0"> 32 <tr valign="top"> 33 <td rowspan="2" align="left"><center><img src="interfaces/default/images/nzdl2gr.gif" width="457" height="181" ><xsl:attribute name="alt"><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></xsl:attribute></img></center></td> 34 <td align="right"></td> 35 </tr> 36 37 <tr> 38 <td align="right"></td> 39 </tr> 40 41 <tr> 42 <td colspan="2"></td> 43 </tr> 44 </table> 45 <xsl:call-template name="greenBar"/> 46 47 </center> 48 49 <!-- end of page banner --> 50 51 </xsl:template> 52 53 <xsl:template name="greenstoneFooter"> 54 <center> 55 <p/> 56 <small>powered by greenstone3</small> 57 </center> 58 </xsl:template> 59 60 61 <xsl:template name="collectionPageBanner"> 62 <xsl:param name="collName">coll-name</xsl:param> 63 <xsl:param name="httpPath"/> 64 <xsl:param name="collIcon"/> 65 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 66 <table width="537"> 67 <tr> 68 <td align="left"> 69 <a href="{$library}?a=p&sa=about&c={$collName}"> 70 <img width="150" border="1"> 71 <xsl:attribute name="src"> 72 <xsl:value-of select="$httpPath"/>/<xsl:value-of select="$collIcon"/> 73 </xsl:attribute> 74 <!-- <xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="$collName"/>/images/<xsl:value-of select="$collIcon"/></xsl:attribute> --> 75 <xsl:attribute name="alt"> 76 <xsl:call-template name="text"> 77 <xsl:with-param name="key">aboutpage</xsl:with-param> 78 </xsl:call-template> 79 </xsl:attribute> 80 </img> 81 </a> 82 </td> 83 <td align="right"> 84 <a href="{$library}?a=p&sa=home"> 85 <xsl:call-template name="text"> 86 <xsl:with-param name="key">home</xsl:with-param> 87 </xsl:call-template> 88 </a> 89 </td> 90 </tr> 91 </table> 92 93 <xsl:call-template name="greenBar"/> 94 </xsl:template> 95 96 97 <!-- do we want different stuff for cluster or same as collection --> 98 <xsl:template name="clusterPageBanner"> 99 <xsl:param name="clusterName">coll-name</xsl:param> 100 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 101 <table width="537"> 102 <tr><td align="left"><a href="{$library}?a=p&sa=about&c={$clusterName}"><xsl:value-of select="$clusterName"/></a></td><td align="right"><a href="{$library}?a=p&sa=home"><xsl:call-template name="text"><xsl:with-param name="key">home</xsl:with-param></xsl:call-template></a></td></tr></table> 103 104 <xsl:call-template name="greenBar"/> 105 </xsl:template> 106 107 <xsl:template name="greenBar"> 108 <p/><img src="interfaces/default/images/divb.gif" width="537" height="17"/> 109 </xsl:template> 110 111 112 113 <!-- Display the appropriate image, depending on the node type --> 114 <xsl:template match="documentNode" mode="displayNodeIcon"> 115 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 7 <!-- 8 <xsl:output method="html"/> 9 --> 10 11 <!-- the main page layout template is here --> 12 <xsl:template match="page"> 13 <html> 14 <xsl:call-template name="greenstoneHead"/> 15 <body xsl:use-attribute-sets="body-style"> 16 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 17 <td valign="top" width="65"> 18 <img src="interfaces/default/images/spacer.gif" width="65" height="1" alt="" border="0"/> 19 </td> 20 <td> 21 <center> 22 <table width="537"> 23 <tr/> 24 <td/> 25 <xsl:apply-templates select="pageResponse"/> 26 <xsl:call-template name="greenstoneFooter"/> 27 </table> 28 </center> 29 </td> 30 </table> 31 </body> 32 </html> 33 </xsl:template> 34 35 <xsl:attribute-set name="body-style"> 36 <xsl:attribute name="bgcolor">#ffffff</xsl:attribute> 37 <xsl:attribute name="text">#000000</xsl:attribute> 38 <xsl:attribute name="link">#006666</xsl:attribute> 39 <xsl:attribute name="alink">#cc9900</xsl:attribute> 40 <xsl:attribute name="vlink">#666633</xsl:attribute> 41 <xsl:attribute name="background">interfaces/default/images/chalk.gif</xsl:attribute> 42 </xsl:attribute-set> 43 44 <!-- can we modify the title to reflect whats happening in the page???--> 45 <xsl:template name="greenstoneHead"> 46 <head> 47 <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title> 48 </head> 49 </xsl:template> 50 51 <!-- this should probably use a greenstone image rather than nzdl image --> 52 <xsl:template name="greenstonePageBanner"> 53 <center> 54 <table width="537" cellspacing="0" cellpadding="0"> 55 <tr valign="top"> 56 <td rowspan="2" align="left"><center><img src="interfaces/default/images/nzdl2gr.gif" width="457" height="181" ><xsl:attribute name="alt"><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></xsl:attribute></img></center></td> 57 <td align="right"></td> 58 </tr> 59 60 <tr> 61 <td align="right"></td> 62 </tr> 63 64 <tr> 65 <td colspan="2"></td> 66 </tr> 67 </table> 68 <xsl:call-template name="greenBar"/> 69 70 </center> 71 72 <!-- end of page banner --> 73 74 </xsl:template> 75 76 <xsl:template name="greenstoneFooter"> 77 <center> 78 <p/> 79 <small>powered by greenstone3</small> 80 </center> 81 </xsl:template> 82 83 <!-- just pass in collname cos use it everywhere - saves working it out lots of times --> 84 <xsl:template name="collectionPageBanner"> 85 <xsl:param name="collName"/> 86 <xsl:variable name="httpPath" select="ancestor::page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/> 87 <xsl:variable name="colIcon" select="ancestor::page/pageResponse/collection/metadataList/metadata[@name='colIcon']"/> 88 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 89 <table width="537"> 90 <tr> 91 <td align="left"> 92 <a href="{$library}?a=p&sa=about&c={$collName}"> 93 <img width="150" border="1"> 94 <xsl:attribute name="src"> 95 <xsl:value-of select="$httpPath"/>/images/<xsl:value-of select="$colIcon"/> 96 </xsl:attribute> 97 <xsl:attribute name="alt"> 98 <xsl:call-template name="text"> 99 <xsl:with-param name="key">aboutpage</xsl:with-param> 100 </xsl:call-template> 101 </xsl:attribute> 102 </img> 103 </a> 104 </td> 105 <td align="right"> 106 <a href="{$library}?a=p&sa=home"> 107 <xsl:call-template name="text"> 108 <xsl:with-param name="key">home</xsl:with-param> 109 </xsl:call-template> 110 </a> 111 </td> 112 </tr> 113 </table> 114 115 <xsl:call-template name="greenBar"/> 116 </xsl:template> 117 118 119 <!-- do we want different stuff for cluster or same as collection --> 120 <xsl:template name="clusterPageBanner"> 121 <xsl:param name="clusterName"/> 122 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 123 <table width="537"> 124 <tr><td align="left"><a href="{$library}?a=p&sa=about&c={$clusterName}"><xsl:value-of select="$clusterName"/></a></td><td align="right"><a href="{$library}?a=p&sa=home"><xsl:call-template name="text"><xsl:with-param name="key">home</xsl:with-param></xsl:call-template></a></td></tr></table> 125 126 <xsl:call-template name="greenBar"/> 127 </xsl:template> 128 129 <xsl:template name="greenBar"> 130 <p/><img src="interfaces/default/images/divb.gif" width="537" height="17"/> 131 </xsl:template> 132 133 134 135 <!-- Display the appropriate image, depending on the node type --> 136 <xsl:template match="documentNode" mode="displayNodeIcon"> 137 116 138 <!-- Root node: book icon (open or closed) --> 117 139 <xsl:if test="@nodeType='root'">
Note:
See TracChangeset
for help on using the changeset viewer.