diff --git a/trunk/include.pl b/trunk/include.pl index 906cc7b..e230409 100644 --- a/trunk/include.pl +++ b/trunk/include.pl @@ -20,5 +20,8 @@ $session_name = 'sid'; $XMLDecl = ''; $locale = "en-US"; $stylesheet = "./style/gnutube.css"; +$xmlns_dc = "http://purl.org/dc/elements/1.1/"; +$xmlns_cc = "http://web.resource.org/cc/"; +$xmlns_rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 1; diff --git a/trunk/search.pl b/trunk/search.pl index a5e0bef..c37fcfb 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -9,10 +9,15 @@ $session = new CGI::Session; #check if query is set if($query->param('query')) { - $page = XMLin("$gnutube_root/search.xml", ForceArray => 1, KeyAttr => {} ); + %page = (); #if a username is associated with session id, username is nonempty - $page->{username} = get_username_from_sid($session->id); + $page->{'username'} = get_username_from_sid($session->id); + $page->{'locale'} = $locale; + $page->{'stylesheet'} = $stylesheet; + $page->{'xmlns:dc'} = $xmlns_dc; + $page->{'xmlns:cc'} = $xmlns_cc; + $page->{'xmlns:rdf'} = $xmlns_rdf; $page->{results}->{query} = decode_utf8($query->param('query')); diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index 7bff3f6..bbd60f6 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -147,7 +147,7 @@ - +
GNUtube logo top (160x25) @@ -198,7 +198,7 @@ - +
THE SEARCH FOR ""