View | Details | Raw Unified | Return to bug 15752
Collapse All | Expand All

(-)a/circ/circulation.pl (-1 / +2 lines)
Lines 86-92 my $barcode = $query->param('barcode'); Link Here
86
86
87
if (C4::Context->preference("AutoSwitchPatron") && $barcode) {
87
if (C4::Context->preference("AutoSwitchPatron") && $barcode) {
88
    if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) {
88
    if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) {
89
        print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$barcode);
89
        print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$barcode&autoswitched=1");
90
    }
90
    }
91
}
91
}
92
92
Lines 664-669 $template->param( Link Here
664
    has_modifications         => $has_modifications,
664
    has_modifications         => $has_modifications,
665
    override_high_holds       => $override_high_holds,
665
    override_high_holds       => $override_high_holds,
666
    nopermission              => scalar $query->param('nopermission'),
666
    nopermission              => scalar $query->param('nopermission'),
667
    autoswitched              => $query->param("autoswitched"),
667
);
668
);
668
669
669
output_html_with_http_headers $query, $cookie, $template->output;
670
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +4 lines)
Lines 159-164 $(document).ready(function() { Link Here
159
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
159
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
160
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
160
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
161
161
162
[% IF autoswitched %]
163
    <div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div>
164
[% END %]
165
162
[% IF additional_materials %]
166
[% IF additional_materials %]
163
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
167
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
164
    [% additional_materials %]
168
    [% additional_materials %]
165
- 

Return to bug 15752