borrower => $borrower,
);
-output_html_with_http_headers( $cgi, $cookie, $template->output );
+output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } );
borrowernumber => $borrowernumber,
);
-output_html_with_http_headers( $cgi, $cookie, $template->output );
+output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } );
$error = 1;
}
- output_html_with_http_headers( $cgi, $cookie, $template->output ) if $error;
+ output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } ) if $error;
}
else {
Koha::Plugins::Handler->run(
);
}
$template->param( authorized => $authorized, errcode => $errcode, );
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
biblionumber => $biblionumber,
);
}
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
method => $op
);
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
patron => $patron,
);
-output_html_with_http_headers $cgi, $cookie, $template->output;
+output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
m/priority/ and $show_priority = 1;
}
-sub get_out {
- output_html_with_http_headers(shift,shift,shift); # $query, $cookie, $template->output;
- exit;
-}
-
my $patron = Koha::Patrons->find( $borrowernumber );
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup');
# cannot reserve, their card has expired and the rules set mean this is not allowed
$template->param( message => 1, expired_patron => 1 );
- get_out( $query, $cookie, $template->output );
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
}
if ((! $biblionumbers) && (! $query->param('place_reserve'))) {
$template->param(message=>1, no_biblionumber=>1);
- &get_out($query, $cookie, $template->output);
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
# Pass the numbers to the page so they can be fed back
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) {
# TODO: New message?
$template->param(message=>1, no_biblionumber=>1);
- &get_out($query, $cookie, $template->output);
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
my $selectionCount = @selectedItems;
if (($selectionCount == 0) || (($selectionCount % 3) != 0)) {
$template->param(message=>1, bad_data=>1);
- &get_out($query, $cookie, $template->output);
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
my $failed_holds = 0;
my $biblioData = $biblioDataHash{$biblioNum};
if (! $biblioData) {
$template->param(message=>1, bad_biblionumber=>$biblioNum);
- &get_out($query, $cookie, $template->output);
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
my $frameworkcode = GetFrameworkCode( $biblioData->{biblionumber} );
$template->param( error => 1 );
}
$template->param( email_add => $email_add );
- output_html_with_http_headers $query, $cookie, $template->output;
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
else {
my $new_session_id = $cookie->value;
csrf_token => Koha::Token->new->generate_csrf(
{ session_id => $new_session_id, } ),
);
- output_html_with_http_headers $query, $cookie, $template->output;
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
shelfid => $shelfid,
email => $email,
);
- output_html_with_http_headers $query, $cookie, $template->output;
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}else{
$template->param( shelfid => $shelfid,
url => "/cgi-bin/koha/opac-sendshelf.pl",
);
- output_html_with_http_headers $query, $cookie, $template->output;
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
} else {
$template->param( invalidlist => 1,
url => "/cgi-bin/koha/opac-sendshelf.pl",
);
- output_html_with_http_headers $query, $cookie, $template->output;
+ output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
}
show_accept($pvar) if $pvar->{op} eq 'accept';
}
load_template_vars($pvar);
-output_html_with_http_headers $pvar->{query}, $pvar->{cookie},
- $pvar->{template}->output;
+output_html_with_http_headers $pvar->{query}, $pvar->{cookie}, $pvar->{template}->output, undef, { force_no_caching => 1 };
#-------------------------------------------------------------------------------
patrons_pending_suggestions_count => $patrons_pending_suggestions_count,
);
-output_html_with_http_headers $input, $cookie, $template->output;
+output_html_with_http_headers $input, $cookie, $template->output, undef, { force_no_caching => 1 };
);
$template->param( 'invalidGoogleOpenIDConnectLogin' => $reason );
$template->param( 'loginprompt' => 1 );
- output_html_with_http_headers $cgi_query, $cookie, $template->output;
+ output_html_with_http_headers $cgi_query, $cookie, $template->output, undef, { force_no_caching => 1 };
return;
}