@@ -, +, @@ no sense. --------- global system preferences -> OPAC changing MAL, DAV, PAP to the branches for items for this single biblio. -- 404.pl is triggered. -- No results is triggered (as expected) --- opac/opac-search.pl | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/opac/opac-search.pl +++ a/opac/opac-search.pl @@ -655,6 +655,15 @@ for (my $i=0;$i<@servers;$i++) { } } } + + ## If there's just one result, check if it is hidden + ## before trying to redirect. The biblionumber will + ## be undefined for a hidden result. + if ($total == 1 && ! defined($newresults[0]->{biblionumber})) { + $hits = 0; + $total = 0; + } + ## If there's just one result, redirect to the detail page if ($total == 1 && $format ne 'rss2' && $format ne 'opensearchdescription' && $format ne 'atom') { --