@@ -, +, @@ - Make sure that if OnSiteCheckoutsForce is set, you can still perform onsite checkouts and only those. - Check the detail page in staff says *currently in local use by* for an on-site checked out item - Check the detail page in OPAC with OPACShowCheckoutName active for the same. --- circ/circulation.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -586,6 +586,7 @@ $template->param( canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => dt_from_string()->set(hour => 23)->set(minute => 59), + onsite_checkout_forced => C4::Context->preference("OnSiteCheckoutsForce"), ); output_html_with_http_headers $query, $cookie, $template->output; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -586,13 +586,13 @@ function verify_images() { [% IF ( item.datedue ) %] - [% IF onsite_checkout %] + [% IF item.onsite_checkout %] Currently in local use [% ELSE %] Checked out [% END %] [% UNLESS ( item.NOTSAMEBRANCH ) %] - [% IF onsite_checkout %] + [% IF item.onsite_checkout %] by [% ELSE %] to --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -569,7 +569,7 @@ No patron matched [% message %] [% IF noissues %] Cannot check out! [% IF onsite_checkout_forced %] - Only on-site checkouts is allowed + Only on-site checkouts are allowed [% END %] [% ELSE %] Attention: --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc @@ -19,7 +19,7 @@ not use an API to fetch items that populates item.datedue. [% END %] [% END %] [% ELSIF ( item.datedue || issue.date_due ) %] - [% IF onsite_checkout %] + [% IF item.onsite_checkout %] [% IF ( OPACShowCheckoutName ) %] Currently in local use by [% item.cardnumber %] [% item.firstname %] [% item.surname %] [% ELSE %] --