Added "View" and "Download" sections to the media pages

Made "Abstract", "View", and "Download" sections conditionally display
Removed trivial abstracts as per above change
This commit is contained in:
David Bartley 2007-07-13 03:11:27 -04:00
parent 594118e4e2
commit c84168f63d
2 changed files with 25 additions and 28 deletions

View File

@ -92,36 +92,37 @@
<xsl:call-template name="header">
<xsl:with-param name="title" select="@title"/>
</xsl:call-template>
<xsl:if test="abstract">
<h2>Abstract</h2>
<p>
<xsl:apply-templates select="abstract"/>
</p>
</xsl:if>
<xsl:if test="flvfile">
<h2>View</h2>
<p>
<xsl:apply-templates select="flvfile">
</xsl:apply-templates>
<p>
</p>
</xsl:if>
<p>
Download "<xsl:value-of select="@title"/>" in a number of formats via
<strong><ul>
<li>HTTP (web browser):
<xsl:if test="mediafile">
<h2>Download</h2>
<p><strong>
HTTP (web browser):
<xsl:apply-templates select="mediafile">
<xsl:with-param name="ext"></xsl:with-param>
</xsl:apply-templates>
</li>
<br/>
<li>BitTorrent:
<br/><br/>
BitTorrent:
<xsl:apply-templates select="mediafile" >
<xsl:with-param name="ext">.torrent</xsl:with-param>
</xsl:apply-templates>
</li>
<!-- <li>Dijjer (a mostly seamless BitTorrent alternative):
<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> -->
</ul></strong>
</p>
</strong></p>
</xsl:if>
<br/>
<!-- Slashdot It link -->
<!-- <a

View File

@ -12,9 +12,6 @@
<ul>
<mediaitem title="PMAMC&amp;OC SASMS - Spring 2007">
<abstract>
PMAMC&amp;OC SASMS - Spring 2007
</abstract>
<mediafile file="pmc-sasms-spring-2007.avi" type="XviD" size="643M" />
<mediafile file="pmc-sasms-spring-2007.ogg" type="OGG/Theora" size="598M" />
<mediafile file="pmc-sasms-spring-2007.mp4" type="MP4" size="625M" />
@ -344,7 +341,6 @@
</mediaitem>
<mediaitem title="Larry Smith: Computing's Next Great Empires">
<abstract>Not available</abstract>
<mediafile file="larry-smith-talk.ogg" type="OGG" />
<mediafile file="larry-smith-talk.mp3" type="MP3" />
</mediaitem>