Lines 71-81
for ( C4::Context->preference("OPACShowHoldQueueDetails") ) {
Link Here
|
71 |
m/priority/ and $show_priority = 1; |
71 |
m/priority/ and $show_priority = 1; |
72 |
} |
72 |
} |
73 |
|
73 |
|
74 |
sub get_out { |
|
|
75 |
output_html_with_http_headers(shift,shift,shift); # $query, $cookie, $template->output; |
76 |
exit; |
77 |
} |
78 |
|
79 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
74 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
80 |
|
75 |
|
81 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
76 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
Lines 94-100
if ( $patron->category->effective_BlockExpiredPatronOpacActions ) {
Link Here
|
94 |
|
89 |
|
95 |
# cannot reserve, their card has expired and the rules set mean this is not allowed |
90 |
# cannot reserve, their card has expired and the rules set mean this is not allowed |
96 |
$template->param( message => 1, expired_patron => 1 ); |
91 |
$template->param( message => 1, expired_patron => 1 ); |
97 |
get_out( $query, $cookie, $template->output ); |
92 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
98 |
} |
93 |
} |
99 |
} |
94 |
} |
100 |
|
95 |
|
Lines 120-126
if (! $biblionumbers) {
Link Here
|
120 |
|
115 |
|
121 |
if ((! $biblionumbers) && (! $query->param('place_reserve'))) { |
116 |
if ((! $biblionumbers) && (! $query->param('place_reserve'))) { |
122 |
$template->param(message=>1, no_biblionumber=>1); |
117 |
$template->param(message=>1, no_biblionumber=>1); |
123 |
&get_out($query, $cookie, $template->output); |
118 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
124 |
} |
119 |
} |
125 |
|
120 |
|
126 |
# Pass the numbers to the page so they can be fed back |
121 |
# Pass the numbers to the page so they can be fed back |
Lines 132-138
my @biblionumbers = split /\//, $biblionumbers;
Link Here
|
132 |
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) { |
127 |
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) { |
133 |
# TODO: New message? |
128 |
# TODO: New message? |
134 |
$template->param(message=>1, no_biblionumber=>1); |
129 |
$template->param(message=>1, no_biblionumber=>1); |
135 |
&get_out($query, $cookie, $template->output); |
130 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
136 |
} |
131 |
} |
137 |
|
132 |
|
138 |
|
133 |
|
Lines 224-230
if ( $query->param('place_reserve') ) {
Link Here
|
224 |
my $selectionCount = @selectedItems; |
219 |
my $selectionCount = @selectedItems; |
225 |
if (($selectionCount == 0) || (($selectionCount % 3) != 0)) { |
220 |
if (($selectionCount == 0) || (($selectionCount % 3) != 0)) { |
226 |
$template->param(message=>1, bad_data=>1); |
221 |
$template->param(message=>1, bad_data=>1); |
227 |
&get_out($query, $cookie, $template->output); |
222 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
228 |
} |
223 |
} |
229 |
|
224 |
|
230 |
my $failed_holds = 0; |
225 |
my $failed_holds = 0; |
Lines 399-405
foreach my $biblioNum (@biblionumbers) {
Link Here
|
399 |
my $biblioData = $biblioDataHash{$biblioNum}; |
394 |
my $biblioData = $biblioDataHash{$biblioNum}; |
400 |
if (! $biblioData) { |
395 |
if (! $biblioData) { |
401 |
$template->param(message=>1, bad_biblionumber=>$biblioNum); |
396 |
$template->param(message=>1, bad_biblionumber=>$biblioNum); |
402 |
&get_out($query, $cookie, $template->output); |
397 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
403 |
} |
398 |
} |
404 |
|
399 |
|
405 |
my @not_available_at = (); |
400 |
my @not_available_at = (); |