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 665-670
$template->param(
Link Here
|
665 |
has_modifications => $has_modifications, |
665 |
has_modifications => $has_modifications, |
666 |
override_high_holds => $override_high_holds, |
666 |
override_high_holds => $override_high_holds, |
667 |
nopermission => scalar $query->param('nopermission'), |
667 |
nopermission => scalar $query->param('nopermission'), |
|
|
668 |
autoswitched => $query->param("autoswitched"), |
668 |
); |
669 |
); |
669 |
|
670 |
|
670 |
output_html_with_http_headers $query, $cookie, $template->output; |
671 |
output_html_with_http_headers $query, $cookie, $template->output; |