@@ -, +, @@
there is no way to check out to that patron.
"Override debarment temporarily" - clicking on it
should allow checking out to that patron.
---
circ/circulation.pl | 10 +++++--
.../prog/en/modules/circ/circulation.tt | 25 ++++++++++++++++++++
2 files changed, 32 insertions(+), 3 deletions(-)
--- a/circ/circulation.pl
+++ a/circ/circulation.pl
@@ -96,6 +96,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user (
my $branches = GetBranches();
+my $force_allow_issue = $query->param('forceallow') || 0;
+
my @failedrenews = $query->param('failedrenew'); # expected to be itemnumbers
our %renew_failed = ();
for (@failedrenews) { $renew_failed{$_} = 1; }
@@ -242,7 +244,8 @@ if ($borrowernumber) {
#borrowercard expired, no issues
$template->param(
flagged => "1",
- noissues => "1",
+ noissues => ($force_allow_issue) ? 0 : "1",
+ forceallow => $force_allow_issue,
expired => "1",
renewaldate => format_date("$renew_year-$renew_month-$renew_day")
);
@@ -335,7 +338,7 @@ if ($barcode) {
);
$blocker = 1;
}
- if( !$blocker ){
+ if( !$blocker || $force_allow_issue ){
my $confirm_required = 0;
unless($issueconfirmed){
# Get the item title for more information
@@ -595,7 +598,8 @@ foreach my $flag ( sort keys %$flags ) {
$flags->{$flag}->{'message'} =~ s#\n#
#g;
if ( $flags->{$flag}->{'noissues'} ) {
$template->param(
- noissues => 'true',
+ noissues => ($force_allow_issue) ? 0 : 'true',
+ forceallow => $force_allow_issue,
);
if ( $flag eq 'GNA' ) {
$template->param( gna => 'true' );
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -293,6 +293,8 @@ var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]