[18617] | 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 | <!-- style includes global params interface_name, library_name -->
|
---|
| 11 | <xsl:include href="berrytools.xsl"/>
|
---|
| 12 |
|
---|
| 13 | <xsl:output method="html"/>
|
---|
| 14 |
|
---|
| 15 | <!-- the main page layout template is here -->
|
---|
| 16 | <xsl:template match="/page/pageResponse">
|
---|
| 17 |
|
---|
| 18 | <html>
|
---|
| 19 |
|
---|
| 20 | <head>
|
---|
| 21 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
| 22 | <title><xsl:call-template name="pageTitle"/><xsl:text> </xsl:text></title>
|
---|
| 23 | <link rel="stylesheet" href="/interfaces/oran/style/core.css" type="text/css"/>
|
---|
| 24 | </head>
|
---|
| 25 |
|
---|
| 26 | <body><gslib:textDirectionAttribute/>
|
---|
| 27 |
|
---|
| 28 | <div id="container">
|
---|
| 29 |
|
---|
| 30 | <gslib:displayErrorsIfAny/>
|
---|
| 31 |
|
---|
| 32 | <div id="banner">
|
---|
| 33 |
|
---|
| 34 | <!-- show the title -->
|
---|
| 35 | <h1>
|
---|
| 36 | <a><xsl:attribute name="href">/<xsl:value-of select="$library_name"/></xsl:attribute>
|
---|
| 37 | My Greenstone Library
|
---|
| 38 | </a> /
|
---|
| 39 | </h1>
|
---|
| 40 | <h2>
|
---|
| 41 | <a><xsl:attribute name="href">/<xsl:value-of select="collection/@name"/></xsl:attribute>
|
---|
| 42 | <gslib:collectionName/>
|
---|
| 43 | </a>
|
---|
| 44 | </h2>
|
---|
| 45 |
|
---|
| 46 | <!-- show the available 'services' (browse, search, etc.) -->
|
---|
| 47 | <ul id="nav">
|
---|
| 48 | <xsl:for-each select="/page/pageResponse/collection/serviceList/service">
|
---|
| 49 | <gslib:navigationTab/>
|
---|
| 50 | </xsl:for-each>
|
---|
| 51 | </ul>
|
---|
| 52 | <div class="corner" id="cornerTopLeft"><xsl:text> </xsl:text></div>
|
---|
| 53 | <div class="corner" id="cornerTopRight"><xsl:text> </xsl:text></div>
|
---|
| 54 | </div>
|
---|
| 55 |
|
---|
| 56 | <div id="content">
|
---|
| 57 |
|
---|
| 58 | <!-- show the classifiers (title, subject, etc.) -->
|
---|
| 59 | <div id="classifierList">
|
---|
| 60 | <ul>
|
---|
| 61 | <xsl:for-each select="service/classifierList/classifier">
|
---|
| 62 | <li><gslib:classifierLink/></li>
|
---|
| 63 | </xsl:for-each>
|
---|
| 64 | </ul>
|
---|
| 65 | <div class="clear"><xsl:text> </xsl:text></div>
|
---|
| 66 | </div>
|
---|
| 67 |
|
---|
| 68 | <gslib:berryBasket/>
|
---|
| 69 |
|
---|
| 70 | <!--
|
---|
| 71 | show the clasifier results -
|
---|
| 72 | you can change the appearance of the results by editing
|
---|
| 73 | the two templates at the bottom of this file
|
---|
| 74 | -->
|
---|
| 75 | <ul id="classifierResults">
|
---|
| 76 | <xsl:apply-templates select="classifier/*"/>
|
---|
| 77 | </ul>
|
---|
| 78 |
|
---|
| 79 | </div> <!-- content -->
|
---|
| 80 |
|
---|
| 81 | <div id="footer">
|
---|
| 82 | <gslib:poweredByGS3TextBar/>
|
---|
| 83 | <div class="corner" id="cornerBottomLeft"><xsl:text> </xsl:text></div>
|
---|
| 84 | <div class="corner" id="cornerBottomRight"><xsl:text> </xsl:text></div>
|
---|
| 85 | </div>
|
---|
| 86 |
|
---|
| 87 | </div>
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | </body>
|
---|
| 91 |
|
---|
| 92 | </html>
|
---|
| 93 |
|
---|
| 94 | </xsl:template>
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 | <!--
|
---|
| 98 | TEMPLATE FOR DOCUMENTS
|
---|
| 99 | -->
|
---|
| 100 | <xsl:template match="documentNode" priority="3">
|
---|
| 101 |
|
---|
| 102 | <!-- show the document details -->
|
---|
| 103 | <li class="document">
|
---|
| 104 | <a>
|
---|
| 105 |
|
---|
| 106 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=b&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/></xsl:attribute>
|
---|
| 107 | <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
|
---|
| 108 | </a>
|
---|
| 109 | </li>
|
---|
| 110 |
|
---|
| 111 | </xsl:template>
|
---|
| 112 |
|
---|
| 113 |
|
---|
| 114 | <!--
|
---|
| 115 | TEMPLATE FOR GROUPS OF DOCUMENTS
|
---|
| 116 | -->
|
---|
| 117 | <xsl:template match="classifierNode" priority="3">
|
---|
| 118 |
|
---|
| 119 | <li class="shelf">
|
---|
| 120 |
|
---|
| 121 | <a>
|
---|
| 122 | <xsl:attribute name="href">
|
---|
| 123 | <xsl:value-of select="$library_name"/>?a=b&rt=r&s=<xsl:value-of select="/page/pageResponse/service/@name"/>&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&cl=<xsl:value-of select='@nodeID'/><xsl:if test="classifierNode|documentNode">.pr</xsl:if></xsl:attribute>
|
---|
| 124 | <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
|
---|
| 125 | </a>
|
---|
| 126 |
|
---|
| 127 | <!-- show any documents or sub-groups in this group -->
|
---|
| 128 | <xsl:if test="documentNode|classifierNode">
|
---|
| 129 | <ul>
|
---|
| 130 | <xsl:apply-templates select="documentNode|classifierNode"/>
|
---|
| 131 | </ul>
|
---|
| 132 | </xsl:if>
|
---|
| 133 | </li>
|
---|
| 134 |
|
---|
| 135 | </xsl:template>
|
---|
| 136 |
|
---|
| 137 | </xsl:stylesheet>
|
---|
| 138 |
|
---|