Encoding ampersand
[koha.git] / opac / opac-searchresults.pl
index 4d2c8e1..bf2de2c 100755 (executable)
@@ -14,7 +14,6 @@ my ($template, $borrowernumber, $cookie)
                             query => $query,
                             type => "opac",
                             authnotrequired => 1,
-                            flagsrequired => {borrow => 1},
                         });
 
 
@@ -89,7 +88,7 @@ foreach my $res (@results) {
 
 
 my $startfrom=$query->param('startfrom');
-($startfrom) || ($startfrom=1);
+($startfrom) || ($startfrom=0);
 
 my $resultsarray=\@results;
 ($resultsarray) || (@$resultsarray=());
@@ -122,6 +121,8 @@ if ($count>$number_of_results) {
     }
 }
 
-$template->param(numbers => $numbers);
+$template->param(numbers => $numbers,
+                            LibraryName => C4::Context->preference("LibraryName"),
+);
 
 output_html_with_http_headers $query, $cookie, $template->output;