Tim's Podcast-Wünsche:
* Links http statt https * summary -> subtitle * Aussagekräftiger summary * author * podcast beschränkt auf pentaradio * immer guid/@isPermaLink='false' git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@623 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
b4eff648b2
commit
06a9c057b9
|
@ -17,7 +17,7 @@
|
|||
|
||||
<xsl:include href="date.xsl" />
|
||||
|
||||
<xsl:variable name="baseurl">https://www.c3d2.de/</xsl:variable>
|
||||
<xsl:variable name="baseurl">http://www.c3d2.de/</xsl:variable>
|
||||
|
||||
<xsl:template match="news">
|
||||
<rss version="2.0">
|
||||
|
@ -28,18 +28,21 @@
|
|||
<description>Pentaradio als MP3</description>
|
||||
<language>de</language>
|
||||
<copyright>http://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<itunes:subtitle>Pentaradio als MP3</itunes:subtitle>
|
||||
<itunes:summary>Radio vom CCC Dresden</itunes:summary>
|
||||
<itunes:subtitle>Radio vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Pentaradio sind unregelmäßige Sendungen auf coloRadio, bestehend aus einem informativen Rahmenprogramm und Beiträgen zu einem sendungsspezifischen Thema.
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/ck.png" />
|
||||
<itunes:category text="Society & culture"/>
|
||||
<itunes:category text="Talk">
|
||||
<itunes:category text="Radio"/>
|
||||
</itunes:category>
|
||||
<itunes:author>Chaos Computer Club Dresden</itunes:author>
|
||||
|
||||
<xsl:for-each select="newsfile">
|
||||
<xsl:sort select="date:seconds(document(.)/item/@date)" data-type="number" order="descending" />
|
||||
<!--xsl:if test="position() <= 10"-->
|
||||
<xsl:if test="count(document(.)/item/resource) > 0">
|
||||
<xsl:if test="starts-with(., 'content/news/pentaradio') and (count(document(.)/item/resource) > 0)">
|
||||
|
||||
<xsl:apply-templates select="document(.)/item/resource" mode="preselect">
|
||||
<xsl:with-param name="newsfile" select="."/>
|
||||
|
@ -86,7 +89,6 @@
|
|||
<xsl:with-param name="resource_url" select="@url"/>
|
||||
<xsl:with-param name="resource_size" select="@size"/>
|
||||
<xsl:with-param name="resource_type" select="@type"/>
|
||||
<xsl:with-param name="guid_is_permalink" select="count(../resource) = 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -102,7 +104,6 @@
|
|||
<xsl:with-param name="resource_url" select="@url"/>
|
||||
<xsl:with-param name="resource_size" select="@size"/>
|
||||
<xsl:with-param name="resource_type" select="@type"/>
|
||||
<xsl:with-param name="guid_is_permalink" select="count(../../resource) = 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -115,7 +116,6 @@
|
|||
<xsl:param name="resource_url"/>
|
||||
<xsl:param name="resource_size"/>
|
||||
<xsl:param name="resource_type"/>
|
||||
<xsl:param name="guid_is_permalink"/>
|
||||
|
||||
<item>
|
||||
<xsl:variable name="href">
|
||||
|
@ -133,14 +133,7 @@
|
|||
type="{$resource_type}"
|
||||
/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$guid_is_permalink">
|
||||
<guid isPermaLink="true"><xsl:value-of select="$href"/></guid>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<guid isPermaLink="false"><xsl:value-of select="$resource_url"/></guid>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<guid isPermaLink="false"><xsl:value-of select="concat($href, '+++', $resource_url)"/></guid>
|
||||
|
||||
<pubDate>
|
||||
<xsl:call-template name="date-to-rfc822">
|
||||
|
|
Loading…
Reference in New Issue