updated to use bittorent & dijjer

news-update
Holden Karau 2006-08-08 16:53:09 +00:00
parent 7704ca64e9
commit e67a25c453
1 changed files with 26 additions and 7 deletions

View File

@ -53,7 +53,9 @@
</xsl:template>
<xsl:template match="mediafile" >
,<a href="/media/files/{@file}"><xsl:value-of select="@type" />(<xsl:value-of select="@size" />)</a>
<xsl:param name="ext" />
<xsl:param name="pre" />
,<a href="{$pre}/media/files/{@file}{$ext}"><xsl:value-of select="@type" />(<xsl:value-of select="@size" />)</a>
</xsl:template>
<xsl:template match="mediaitem">
@ -78,12 +80,29 @@
<xsl:apply-templates select="abstract"/>
</p>
<p>
Download <xsl:value-of select="@title"/> in a number of formats:
<xsl:apply-templates select="mediafile" />
</p>
<p>
Note: We are sorry that these talks are not available through BitTorrent, however under present IST policy we are not allowed to run BitTorrent. We
thank you for your understanding.</p>
Download <xsl:value-of select="@title"/> in a number of formats via
<ul>
<li>bittorrent
<xsl:param name="ext">Unset</xsl:param>
<xsl:apply-templates select="mediafile" >
<xsl:with-param name="ext">.torrent</xsl:with-param>
</xsl:apply-templates>
</li>
<li>
via dijjer (a mostly seemless bittorrent alternative):
<xsl:param name="ext">Unset</xsl:param>
<xsl:apply-templates select="mediafile" >
<xsl:with-param name="pre">http://dijjer.org/get/http://www.csclub.uwaterloo.ca</xsl:with-param>
</xsl:apply-templates>
</li>
<li>
via http (regular web browser):
<xsl:apply-templates select="mediafile" >
<xsl:with-param name="ext"></xsl:with-param>
</xsl:apply-templates>
</li>
</ul>
</p>
<xsl:call-template name="footer"/>
</body>
</html>