diff options
author | jeff <jeff> | 2010-06-05 05:56:07 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-06-05 05:56:07 +0000 |
commit | 4317635c55495a4c89413e59bd55f64aa001e38c (patch) | |
tree | ffb2ae60630965d3fedf33f807f4154de95423ff /httemplate/search/elements/search-html.html | |
parent | 339c9336a908446c63980bff864bdc270c408e23 (diff) |
fix urls
Diffstat (limited to 'httemplate/search/elements/search-html.html')
-rw-r--r-- | httemplate/search/elements/search-html.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html index d8cc2fcab..98f9c4476 100644 --- a/httemplate/search/elements/search-html.html +++ b/httemplate/search/elements/search-html.html @@ -102,7 +102,7 @@ % $cgi->delete('maxrecords'); % $cgi->param('_dummy', 1); - ( show <SELECT NAME="maxrecords" onChange="window.location = '<% $self_url %>;maxrecords=' + this.options[this.selectedIndex].value;"> + ( show <SELECT NAME="maxrecords" onChange="window.location = '<% "$self_url?". $cgi->query_string %>;maxrecords=' + this.options[this.selectedIndex].value;"> % foreach my $max ( map { $_ * $confmax } qw( 1 5 10 25 ) ) { <OPTION VALUE="<% $max %>" <% ( $maxrecords == $max ) ? 'SELECTED' : '' %>><% $max %></OPTION> @@ -143,18 +143,18 @@ Download full results<BR> % $cgi->param('_type', "$xlsname.xls" ); - as <A HREF="<% $cgi->self_url %>">Excel spreadsheet</A><BR> + as <A HREF="<% "$self_url?". $cgi->query_string %>">Excel spreadsheet</A><BR> % $cgi->param('_type', 'csv'); - as <A HREF="<% $cgi->self_url %>">CSV file</A><BR> + as <A HREF="<% "$self_url?". $cgi->query_string %>">CSV file</A><BR> % if ( defined($opt{xml_elements}) ) { % $cgi->param('_type', 'xml'); - as <A HREF="<% $cgi->self_url %>">XML file</A><BR> + as <A HREF="<% "$self_url?". $cgi->query_string %>">XML file</A><BR> % } % $cgi->param('_type', 'html-print'); - as <A HREF="<% $cgi->self_url %>">printable copy</A> + as <A HREF="<% "$self_url?". $cgi->query_string %>">printable copy</A> </TD> % $cgi->param('_type', "html" ); @@ -464,7 +464,7 @@ my $confmax = $args{'confmax'}; my $maxrecords = $args{'maxrecords'}; my $offset = $args{'offset'}; my %opt = %{ $args{'opt'} }; -my $self_url = $opt{'url'} || $cgi->self_url; +my $self_url = $opt{'url'} || $cgi->url('-path_info' => 1, '-full' =>1); my $count_sth = dbh->prepare($opt{'count_query'}) or die "Error preparing $opt{'count_query'}: ". dbh->errstr; |