Lines 87-93
my $barcode = $query->param('barcode');
Link Here
|
87 |
|
87 |
|
88 |
if (C4::Context->preference("AutoSwitchPatron") && $barcode) { |
88 |
if (C4::Context->preference("AutoSwitchPatron") && $barcode) { |
89 |
if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) { |
89 |
if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) { |
90 |
print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$barcode); |
90 |
print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$barcode&autoswitched=1"); |
91 |
} |
91 |
} |
92 |
} |
92 |
} |
93 |
|
93 |
|
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; |