Browse Source

treat everything lower-case to make sorting case-insensitive

tags/stw2018
Max Mehl 1 year ago
parent
commit
ec55104663
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tags/tags.xsl

+ 3
- 3
tags/tags.xsl View File

@@ -47,16 +47,16 @@
<!--display dynamic list of news items-->
<xsl:template match="all-tags-news">
<ul class="taglist">
<xsl:for-each select="/buildinfo/document/set/news/tags/tag"><xsl:sort select="." order="ascending" />
<xsl:for-each select="/buildinfo/document/set/news/tags/tag"><xsl:sort select="translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" order="ascending" />
<xsl:call-template name="taglink"><xsl:with-param name="type" select="'news-tags'"/></xsl:call-template>
</xsl:for-each>
</ul>
</xsl:template>

<!--display dynamic list of newsletters items-->
<!--display dynamic list of event items-->
<xsl:template match="all-tags-events">
<ul class="taglist">
<xsl:for-each select="/buildinfo/document/set/event/tags/tag"><xsl:sort select="." order="ascending" />
<xsl:for-each select="/buildinfo/document/set/event/tags/tag"><xsl:sort select="translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" order="ascending" />
<xsl:call-template name="taglink"><xsl:with-param name="type" select="'event-tags'"/></xsl:call-template>
</xsl:for-each>
</ul>

Loading…
Cancel
Save