Added "View" and "Download" sections to the media pages
Made "Abstract", "View", and "Download" sections conditionally display Removed trivial abstracts as per above change Added preview attribute for flvplayer
This commit is contained in:
parent
594118e4e2
commit
e3438e6e56
53
cscweb.xsl
53
cscweb.xsl
|
@ -70,7 +70,9 @@
|
||||||
var s1 = new SWFObject("flash/flvplayer.swf","single","400","300","7");
|
var s1 = new SWFObject("flash/flvplayer.swf","single","400","300","7");
|
||||||
s1.addParam("allowfullscreen","true");
|
s1.addParam("allowfullscreen","true");
|
||||||
s1.addVariable("file","http://csclub.uwaterloo.ca/files/<xsl:value-of select="@file" />");
|
s1.addVariable("file","http://csclub.uwaterloo.ca/files/<xsl:value-of select="@file" />");
|
||||||
<!-- s1.addVariable("image","preview.jpg"); -->
|
<xsl:if test="@preview">
|
||||||
|
s1.addVariable("image","<xsl:value-of select="@preview" />");
|
||||||
|
</xsl:if>
|
||||||
s1.write("player1");
|
s1.write("player1");
|
||||||
</script>
|
</script>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
@ -92,36 +94,37 @@
|
||||||
<xsl:call-template name="header">
|
<xsl:call-template name="header">
|
||||||
<xsl:with-param name="title" select="@title"/>
|
<xsl:with-param name="title" select="@title"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
|
<xsl:if test="abstract">
|
||||||
<h2>Abstract</h2>
|
<h2>Abstract</h2>
|
||||||
<p>
|
<p>
|
||||||
<xsl:apply-templates select="abstract"/>
|
<xsl:apply-templates select="abstract"/>
|
||||||
</p>
|
|
||||||
<xsl:apply-templates select="flvfile">
|
|
||||||
</xsl:apply-templates>
|
|
||||||
<p>
|
|
||||||
</p>
|
</p>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
<xsl:if test="flvfile">
|
||||||
|
<h2>View</h2>
|
||||||
<p>
|
<p>
|
||||||
Download "<xsl:value-of select="@title"/>" in a number of formats via
|
<xsl:apply-templates select="flvfile">
|
||||||
<strong><ul>
|
</xsl:apply-templates>
|
||||||
<li>HTTP (web browser):
|
|
||||||
<xsl:apply-templates select="mediafile">
|
|
||||||
<xsl:with-param name="ext"></xsl:with-param>
|
|
||||||
</xsl:apply-templates>
|
|
||||||
</li>
|
|
||||||
<br/>
|
|
||||||
<li>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>
|
</p>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<br/><br/>
|
||||||
|
BitTorrent:
|
||||||
|
<xsl:apply-templates select="mediafile" >
|
||||||
|
<xsl:with-param name="ext">.torrent</xsl:with-param>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</strong></p>
|
||||||
|
</xsl:if>
|
||||||
|
<br/>
|
||||||
|
|
||||||
<!-- Slashdot It link -->
|
<!-- Slashdot It link -->
|
||||||
<!-- <a
|
<!-- <a
|
||||||
|
|
|
@ -5,16 +5,13 @@
|
||||||
<header/>
|
<header/>
|
||||||
<section title="CSC Media">
|
<section title="CSC Media">
|
||||||
Here you will find a wide variety of audio and video recordings of past
|
Here you will find a wide variety of audio and video recordings of past
|
||||||
CSC Talks. Some of these files are very large, and we do not recommend
|
CSC and other unversity-related talks. Some of these files are very large,
|
||||||
attempting to stream them. Most of these should be available upon request
|
and we do not recommend attempting to stream them. Most of these should be
|
||||||
at the Computer Science Club office to be burnt to CD or DVD should you
|
available upon request at the Computer Science Club office to be burnt to
|
||||||
so choose.
|
CD or DVD should you so choose.
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<mediaitem title="PMAMC&OC SASMS - Spring 2007">
|
<mediaitem title="PMAMC&OC SASMS - Spring 2007">
|
||||||
<abstract>
|
|
||||||
PMAMC&OC SASMS - Spring 2007
|
|
||||||
</abstract>
|
|
||||||
<mediafile file="pmc-sasms-spring-2007.avi" type="XviD" size="643M" />
|
<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.ogg" type="OGG/Theora" size="598M" />
|
||||||
<mediafile file="pmc-sasms-spring-2007.mp4" type="MP4" size="625M" />
|
<mediafile file="pmc-sasms-spring-2007.mp4" type="MP4" size="625M" />
|
||||||
|
@ -32,8 +29,8 @@
|
||||||
The global corporations that profit from copyright are lobbying for
|
The global corporations that profit from copyright are lobbying for
|
||||||
draconian punishments, and to increase their copyright powers, while
|
draconian punishments, and to increase their copyright powers, while
|
||||||
suppressing public access to technology. But if we seriously hope to serve
|
suppressing public access to technology. But if we seriously hope to serve
|
||||||
the only legitimate purpose of copyright--to promote progress, for the
|
the only legitimate purpose of copyright -- to promote progress, for the
|
||||||
benefit of the public--then we must make changes in the other direction.
|
benefit of the public -- then we must make changes in the other direction.
|
||||||
</abstract>
|
</abstract>
|
||||||
</mediaitem>
|
</mediaitem>
|
||||||
|
|
||||||
|
@ -344,7 +341,6 @@
|
||||||
</mediaitem>
|
</mediaitem>
|
||||||
|
|
||||||
<mediaitem title="Larry Smith: Computing's Next Great Empires">
|
<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.ogg" type="OGG" />
|
||||||
<mediafile file="larry-smith-talk.mp3" type="MP3" />
|
<mediafile file="larry-smith-talk.mp3" type="MP3" />
|
||||||
</mediaitem>
|
</mediaitem>
|
||||||
|
|
Loading…
Reference in New Issue