set cortado attributes, fixed url in search.pl

git-svn-id: http://yolanda.mister-muffin.de/svn@136 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-24 13:17:31 +00:00
parent cd2518d9e3
commit ef8cdb725b
4 changed files with 18 additions and 8 deletions

View file

@ -2,7 +2,10 @@
require "include.pl";
require "functions.pl";
#initialize session data
CGI::Session->name($session_name);
$query = new CGI;
$session = new CGI::Session;
#do we have an id?
if($query->param('id'))

View file

@ -105,9 +105,10 @@ elsif($query->param('sort'))
{
'cc:Work' =>
{
'rdf:about' => "./video.pl?title=$title&id=$id",
'rdf:about' => "$domain/download/$id",
'dc:title' => [$title],
'dc:date' => [$timestamp],
'dc:identifier' => ["$domain/video/$title/$id"],
'dc:publisher' => [$username]
},
'cc:License' =>

View file

@ -216,9 +216,7 @@ if($query->url_param('title') or $query->url_param('id'))
print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page', AttrIndent => 1);
}
else
{ foreach $key (sort keys(%ENV)) {
print "$key = $ENV{$key}<p>";
}
{
%page = ();
#if a username is associated with session id, username is nonempty

View file

@ -293,7 +293,7 @@
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
</xsl:attribute>
<img>
<xsl:attribute name="src">
@ -324,16 +324,24 @@
<applet
code="com.fluendo.player.Cortado.class"
archive="/java/cortado-ovt-stripped-0.2.2.jar"
width="350"
height="250"
>
<xsl:attribute name="width">
<xsl:value-of select="@width" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="@height" />
</xsl:attribute>
<param name="url">
<xsl:attribute name="value">
<xsl:value-of select="concat(rdf:RDF/cc:Work/@rdf:about,'/view=true')" />
</xsl:attribute>
</param>
<param name="seekable" value="true"/>
<param name="duration" value="8"/>
<param name="duration">
<xsl:attribute name="value">
<xsl:value-of select="@duration" />
</xsl:attribute>
</param>
<param name="keepAspect" value="true"/>
<param name="video" value="true"/>
<param name="audio" value="true"/>