removed redirect on one result, fixed dcterms:data

git-svn-id: http://yolanda.mister-muffin.de/svn@342 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-05-11 16:30:59 +00:00
parent 84d2094846
commit 037b1582a1
2 changed files with 4 additions and 7 deletions

View file

@ -38,11 +38,6 @@ if($query->param('query'))
{
print $query->redirect("index.pl?warning=warning_no_results");
}
#if there is only one results, redirect to video directly
elsif(($#results == 0) and (not $query->param('page') or $query->param('page') == 1))
{
print $query->redirect(@{$doc->findnodes( "//results/result/rdf:RDF/cc:Work/dc:identifier/text()" )}[0]->data);
}
else
{
output_page($doc);

View file

@ -53,8 +53,10 @@ $video->appendChild( getElementDC( "rightsHolder", "xsd:normalizedString") );
$video->appendChild( getElementDC( "source", "xsd:normalizedString") );
$video->appendChild( getElementDC( "license", "xsd:normalizedString") );
# this is absolutely wrong, there is no dcterms:data
$video->appendChild( getElementDC( "data", "xsd:base64Binary") );
$node = XML::LibXML::Element->new( "data" );
$node->setNamespace( $config->{"xml_namespace_xsi"}, "xsi", 0 );
$node->setAttributeNS( $config->{"xml_namespace_xsi"}, "type", "xsd:base64Binary" );
$video->appendChild( $node );
$instance->appendChild($video);