@@ -, +, @@ automatically switched --- circ/circulation.pl | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -87,7 +87,7 @@ my $barcode = $query->param('barcode'); if (C4::Context->preference("AutoSwitchPatron") && $barcode) { if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) { - print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$barcode); + print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$barcode&autoswitched=1"); } } @@ -664,6 +664,7 @@ $template->param( has_modifications => $has_modifications, override_high_holds => $override_high_holds, nopermission => scalar $query->param('nopermission'), + autoswitched => $query->param("autoswitched"), ); output_html_with_http_headers $query, $cookie, $template->output; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -159,6 +159,10 @@ $(document).ready(function() { [% IF ( was_renewed ) %]
Patron's account has been renewed until [% expiry | $KohaDates %]
[% END %] +[% IF autoswitched %] +
Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.
+[% END %] + [% IF additional_materials %]
Note about the accompanying materials:
[% additional_materials %] --