Bugzilla – Attachment 156253 Details for
Bug 34910
Do not allow checkout for anonymous patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34910: Do not allow checkout for anonymous patron
Bug-34910-Do-not-allow-checkout-for-anonymous-patr.patch (text/plain), 1.98 KB, created by
Fridolin Somers
on 2023-09-27 06:08:47 UTC
(
hide
)
Description:
Bug 34910: Do not allow checkout for anonymous patron
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2023-09-27 06:08:47 UTC
Size:
1.98 KB
patch
obsolete
>From e46bd2ba9c209a69cea2ae54a10d9ef59e9735a7 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 25 Sep 2023 21:53:45 -1000 >Subject: [PATCH] Bug 34910: Do not allow checkout for anonymous patron > >--- > circ/circulation.pl | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++++ > 2 files changed, 8 insertions(+) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 99cee0c87b..cf509bfe90 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -472,6 +472,10 @@ if ( $patron ) { > $template->param( is_debarred=> 1 ); > $noissues = 1; > } >+ if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { >+ $template->param( is_anonymous => 1 ); >+ $noissues = 1; >+ } > my $account = $patron->account; > if( ( my $owing = $account->non_issues_charges ) > 0 ) { > my $noissuescharge = C4::Context->preference("noissuescharge") || 5; # FIXME If noissuescharge == 0 then 5, why?? >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 3388e387a5..55d9229f8e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -96,6 +96,10 @@ > <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> > [% END %] > >+ [% IF is_anonymous %] >+ <div class="dialog alert">This is the anonymous patron, so circulation is disabled.</div> >+ [% END %] >+ > [% IF ( NEEDSCONFIRMATION ) %] > <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1"> > [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %] >-- >2.42.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34910
:
156253
|
156254
|
156255
|
156289
|
156290
|
157059
|
157060
|
157061
|
157062
|
157156
|
157157
|
157158
|
157159