From 09eca66dad83c839d3bd6cb922db88784e1d258b Mon Sep 17 00:00:00 2001 From: josch Date: Wed, 19 Dec 2007 23:32:01 +0000 Subject: [PATCH] removed scriptname, argument, value, sort and orderby from GET parameters git-svn-id: http://yolanda.mister-muffin.de/svn@214 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/search.pl | 6 +- trunk/video.pl | 13 +- trunk/xsl/xhtml/results.xsl | 231 +----------------------------------- 3 files changed, 4 insertions(+), 246 deletions(-) diff --git a/trunk/search.pl b/trunk/search.pl index cf943de..0a6811a 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -15,11 +15,7 @@ if($query->param('query') or $query->param('orderby')) #TODO: clean up scriptname, argument, value only being there because of #TODO: account.pl also calling fill_results() which will be changed $page->{'search'} = ['']; - $page->{'results'}->{'scriptname'} = 'search.pl'; - $page->{'results'}->{'argument'} = 'query'; - $page->{'results'}->{'value'} = $query->param('query'); - $page->{'results'}->{'orderby'} = $query->param('orderby'); - $page->{'results'}->{'sort'} = $query->param('sort'); + $page->{'results'}->{'query'} = $query->param('query'); my @args = (); diff --git a/trunk/video.pl b/trunk/video.pl index 8078579..9aedd39 100644 --- a/trunk/video.pl +++ b/trunk/video.pl @@ -207,17 +207,8 @@ elsif($query->url_param('title') or $query->url_param('id')) } else { - #when an ambigous title was passed there may me many results - display them like search.pl does - - $page->{'results'}->{'scriptname'} = 'video.pl'; - $page->{'results'}->{'argument'} = 'title'; - $page->{'results'}->{'value'} = $query->param('title'); - $page->{'results'}->{'orderby'} = $query->param('orderby'); - $page->{'results'}->{'sort'} = $query->param('sort'); - - $page->{'search'} = ['']; - - fill_results(@args); + #when an ambigous title was passed there may me many results + #redirect to an appropriate search or throw an error with a link to such a search } } else diff --git a/trunk/xsl/xhtml/results.xsl b/trunk/xsl/xhtml/results.xsl index 987365b..b378cff 100644 --- a/trunk/xsl/xhtml/results.xsl +++ b/trunk/xsl/xhtml/results.xsl @@ -47,107 +47,6 @@ - - - -
- - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
@@ -178,136 +77,8 @@ - - - - - -
-
- - - -
- - - - - - - - - order by: - - - pagesize: - - -
-
-
- -
- - +