- [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
+ [% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
[% ELSE %]
@@ -72,6 +72,15 @@
+ [% IF ( nobiblio ) %]
+
@@ -1537,7 +1548,7 @@
return false;
});
- [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
+ [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
[% IF ( PatronAutoComplete ) %]
$( "#patron" ).autocomplete({
source: "/cgi-bin/koha/circ/ysearch.pl",
--- a/reserve/request.pl
+++ a/reserve/request.pl
@@ -309,8 +309,8 @@ foreach my $biblionumber (@biblionumbers) {
my $biblio = Koha::Biblios->find( $biblionumber );
unless ($biblio) {
$biblioloopiter{noitems} = 1;
- $template->param('noitems' => 1);
- next;
+ $template->param('nobiblio' => 1);
+ last;
}
my $force_hold_level;
--
+ [%IF (multi_hold) %]
+ Cannot place hold: one or more records cannot be found.
+ [% ELSE %]
+ Cannot place hold: this record cannot be found.
+ [% END %]
+
+ [% END %]
[% IF ( noitems ) %]
[%IF (multi_hold) %]
@@ -93,13 +102,15 @@
[% END %]
- [% UNLESS ( multi_hold ) %]
- Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]
- [% ELSE %] -Confirm holds
+ [% UNLESS ( nobiblio ) %] + [% UNLESS ( multi_hold ) %] +Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]
+ [% ELSE %] +Confirm holds
+ [% END %] [% END %] - [% UNLESS club OR patron OR patron.borrowernumber OR noitems %] + [% UNLESS club OR patron OR patron.borrowernumber OR noitems OR nobiblio %] [% IF ( messageborrower ) %]Patron not found
@@ -323,7 +334,7 @@ [% END %] - [% ELSIF NOT noitems # /UNLESS patron %] + [% ELSIF NOT ( noitems || nobiblio ) # /UNLESS patron %] [% IF ( checked_previously && !multi_hold ) %]
@@ -1004,7 +1015,7 @@
- [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
+ [% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
[% ELSE %]