Changeset 38056
- Timestamp:
- 2023-09-07T13:28:08+12:00 (8 months ago)
- Location:
- main/trunk/greenstone3/web/interfaces/basic
- Files:
-
- 11 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/basic/style/core.css
r38055 r38056 28 28 } 29 29 30 div#banner ul, ul#resultlist, ul#tocnodes, ul#docbuttons, ul.tocnode, ul#bannerlist, ul#navbarlist, ul#collectionlist, ul#servicelist, ul#classifierlist, ul#classifiernodelist, ul# queryitemlist{30 div#banner ul, ul#resultlist, ul#tocnodes, ul#docbuttons, ul.tocnode, ul#bannerlist, ul#navbarlist, ul#collectionlist, ul#servicelist, ul#classifierlist, ul#classifiernodelist, ul#classifiernodelist-horizontal, ul#childrenlist, ul#queryitemlist{ 31 31 list-style-type:none; 32 32 margin:0; 33 33 padding:0; 34 } 35 36 ul#classifiernodelist-horizontal li { 37 display: inline; 38 padding: 2px; 34 39 } 35 40 -
main/trunk/greenstone3/web/interfaces/basic/transform/about.xsl
r25699 r38056 8 8 exclude-result-prefixes="java util"> 9 9 10 10 <xsl:include href="style.xsl"/> 11 11 <xsl:template match="page"> 12 12 … … 14 14 <html> 15 15 <head> 16 <xsl:call-template name="baseHref"/> 16 17 <title> 17 18 <gslib:aboutCollectionPageTitle/> -
main/trunk/greenstone3/web/interfaces/basic/transform/authen.xsl
r26533 r38056 20 20 <xsl:template name="pageHead"> 21 21 <head> 22 <xsl:call-template name="baseHref"/> 22 23 <title> 23 24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> -
main/trunk/greenstone3/web/interfaces/basic/transform/classifier.xsl
r24115 r38056 18 18 <html> 19 19 <head> 20 <xsl:call-template name="baseHref"/> 20 21 <title> 21 22 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> -
main/trunk/greenstone3/web/interfaces/basic/transform/classifiertools.xsl
r23972 r38056 13 13 <xsl:variable name="cl_name"><xsl:value-of select="@name"/></xsl:variable> 14 14 <xsl:choose> 15 <xsl:when test="/page/pageResponse/service/classifierList/classifier[@name=$cl_name]/@horizontalAtTop"> 15 <!--<xsl:when test="/page/pageResponse/service/classifierList/classifier[@name=$cl_name]/@horizontalAtTop">--> 16 <xsl:when test="@childType='HList'"> 16 17 <xsl:apply-templates select="." mode="horizontal-at-top"> 17 18 <xsl:with-param name="collName" select="$collName"/> -
main/trunk/greenstone3/web/interfaces/basic/transform/document.xsl
r25843 r38056 23 23 <html> 24 24 <head> 25 <xsl:call-template name="baseHref"/> 25 26 <title> 26 27 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> … … 268 269 <xsl:otherwise> 269 270 <img> 270 <xsl:attribute name="src"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='a rchivedir']"/>/cover.jpg</xsl:attribute>271 <xsl:attribute name="src"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='assocfilepath']"/>/cover.jpg</xsl:attribute> 271 272 </img> 272 273 </xsl:otherwise> -
main/trunk/greenstone3/web/interfaces/basic/transform/expand-gsf.xsl
r38055 r38056 10 10 <xsl:namespace-alias 11 11 stylesheet-prefix="xslt" result-prefix="xsl"/> 12 13 <!-- don't output anything for gsf:format-gs2 elements, 14 they just exist in collectionconfig files to keep the XML valid --> 15 <xsl:template match="gsf:format-gs2" /> 16 12 17 13 18 <xsl:template match="format"> -
main/trunk/greenstone3/web/interfaces/basic/transform/gslib.xsl
r25877 r38056 15 15 <xsl:param name="interface_name"/> 16 16 <xsl:param name="library_name"/> 17 17 <xsl:param name="servlet_url_prefix"/> 18 18 19 <xsl:include href="xml-to-string.xsl"/> 19 20 … … 125 126 <xsl:template name="collectionLinkWithImage"> 126 127 <xsl:choose> 127 <xsl:when test="displayItem [@name='icon']">128 <xsl:when test="displayItemList/displayItem[@name='icon']"> 128 129 <a href="{$library_name}?a=p&sa=about&c={@name}"> 129 130 <img> 130 131 <xsl:attribute name="src"> 131 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem [@name='icon']"/>132 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItemList/displayItem[@name='icon']"/> 132 133 </xsl:attribute> 133 134 <xsl:attribute name="alt"> 134 <xsl:value-of select="displayItem [@name='name']"/>135 <xsl:value-of select="displayItemList/displayItem[@name='name']"/> 135 136 </xsl:attribute> 136 137 </img> … … 139 140 <xsl:otherwise> 140 141 <a class="noimage" href="{$library_name}?a=p&sa=about&c={@name}"> 141 <xsl:value-of select="displayItem [@name='name']"/>142 <xsl:value-of select="displayItemList/displayItem[@name='name']"/> 142 143 </a> 143 144 </xsl:otherwise> 144 </xsl:choose> 145 </xsl:template> 146 147 145 </xsl:choose> 146 </xsl:template> 147 148 <xsl:template name="collectionMeta"> 149 <xsl:param name="name"/> 150 <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name=$name]"/> 151 </xsl:template> 152 148 153 <xsl:template name="serviceClusterList"> 149 154 <xsl:apply-templates select="serviceClusterList"/> … … 152 157 <xsl:template match="serviceClusterList"> 153 158 <xsl:for-each select="serviceCluster"> 154 <a href="{$library_name}?a=p&sa=about&c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem [@name='name']"/></a>159 <a href="{$library_name}?a=p&sa=about&c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItemList/displayItem[@name='name']"/></a> 155 160 </xsl:for-each> 156 161 </xsl:template> … … 163 168 164 169 <xsl:template name="authenticationLink"> 165 <a href="{$library_name}?a=g&rt=r&sa=authen&s={@name}&s1.aup=Login&s1.un=&s1.asn="><xsl:value-of select="displayItem [@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/>170 <a href="{$library_name}?a=g&rt=r&sa=authen&s={@name}&s1.aup=Login&s1.un=&s1.asn="><xsl:value-of select="displayItemList/displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/> 166 171 </xsl:template> 167 172 … … 193 198 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 194 199 <xsl:choose> 195 <xsl:when test="$this-element/displayItem [@name='icon']">200 <xsl:when test="$this-element/displayItemList/displayItem[@name='icon']"> 196 201 <img border="0"> 197 202 <xsl:attribute name="src"> 198 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem [@name='icon']"/>203 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItemList/displayItem[@name='icon']"/> 199 204 </xsl:attribute> 200 205 <xsl:attribute name="alt"> … … 207 212 </xsl:when> 208 213 <xsl:otherwise> 209 <xsl:value-of select="$this-element/displayItem [@name='name']"/>214 <xsl:value-of select="$this-element/displayItemList/displayItem[@name='name']"/> 210 215 </xsl:otherwise> 211 216 </xsl:choose> -
main/trunk/greenstone3/web/interfaces/basic/transform/home.xsl
r25699 r38056 8 8 exclude-result-prefixes="java util"> 9 9 10 10 <xsl:include href="style.xsl"/> 11 11 <xsl:template match="page/pageResponse"> 12 12 … … 15 15 16 16 <head> 17 <xsl:call-template name="baseHref"/> 17 18 <title> 18 19 <gslib:siteHomePageTitle/> -
main/trunk/greenstone3/web/interfaces/basic/transform/pref.xsl
r23972 r38056 16 16 <html> 17 17 <head> 18 <xsl:call-template name="baseHref"/> 18 19 <title> 19 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> -
main/trunk/greenstone3/web/interfaces/basic/transform/query.xsl
r23972 r38056 14 14 15 15 <xsl:output method="html"/> 16 16 <!-- added this so cross collection searching doesn't fail - this is used in the default template in localsite's siteConfig.xml --> 17 <xsl:variable name="opt-doc-link-args"></xsl:variable> 17 18 <!-- the main page layout template is here --> 18 19 <xsl:template match="page"> 19 20 <html> 20 21 <head> 22 <xsl:call-template name="baseHref"/> 21 23 <title> 22 24 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> -
main/trunk/greenstone3/web/interfaces/basic/transform/style.xsl
r25699 r38056 13 13 <xsl:param name="library_name"/> 14 14 15 <xsl:variable name="base-href"> 16 <xsl:choose> 17 <xsl:when test="$servlet_url_prefix"> 18 <xsl:value-of select="$servlet_url_prefix"/> 19 </xsl:when> 20 <!-- don't need this one anymore, keep for backwards compat--> 21 <xsl:when test="/page/pageResponse/metadataList/metadata[@name = 'siteURL']"> 22 <xsl:value-of select="/page/pageResponse/metadataList/metadata[@name = 'siteURL']"/> 23 </xsl:when> 24 <xsl:when test="/page/pageRequest/@baseURL"> 25 <xsl:value-of select="/page/pageRequest/@baseURL"/> 26 </xsl:when> 27 </xsl:choose> 28 </xsl:variable> 29 30 <xsl:template name="baseHref"> 31 <base href="{$base-href}"/> 32 </xsl:template> 33 15 34 <!-- global style info goes here --> 16 35 <xsl:template name="globalStyle">
Note:
See TracChangeset
for help on using the changeset viewer.