Lines 56-71
unless (C4::Context->preference('WebBasedSelfCheck')) {
Link Here
|
56 |
|
56 |
|
57 |
if (C4::Context->preference('AutoSelfCheckAllowed')) |
57 |
if (C4::Context->preference('AutoSelfCheckAllowed')) |
58 |
{ |
58 |
{ |
59 |
my $AutoSelfCheckID = C4::Context->preference('AutoSelfCheckID'); |
59 |
my $AutoSelfCheckID = C4::Context->preference('AutoSelfCheckID'); |
60 |
my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass'); |
60 |
my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass'); |
61 |
$query->param(-name=>'userid',-values=>[$AutoSelfCheckID]); |
61 |
$query->param(-name=>'userid',-values=>[$AutoSelfCheckID]); |
62 |
$query->param(-name=>'password',-values=>[$AutoSelfCheckPass]); |
62 |
$query->param(-name=>'password',-values=>[$AutoSelfCheckPass]); |
63 |
$query->param(-name=>'koha_login_context',-values=>['sco']); |
63 |
$query->param(-name=>'koha_login_context',-values=>['sco']); |
64 |
} |
64 |
} |
65 |
my ($template, $loggedinuser, $cookie) = get_template_and_user({ |
65 |
my ($template, $loggedinuser, $cookie) = get_template_and_user({ |
66 |
template_name => "sco/sco-main.tmpl", |
66 |
template_name => "sco/sco-main.tmpl", |
67 |
authnotrequired => 0, |
67 |
authnotrequired => 0, |
68 |
flagsrequired => { circulate => "circulate_remaining_permissions" }, |
68 |
flagsrequired => { circulate => "circulate_remaining_permissions" }, |
69 |
query => $query, |
69 |
query => $query, |
70 |
type => "opac", |
70 |
type => "opac", |
71 |
debug => 1, |
71 |
debug => 1, |
Lines 239-251
if ($borrower->{cardnumber}) {
Link Here
|
239 |
patronlogin => $patronlogin, |
239 |
patronlogin => $patronlogin, |
240 |
patronpw => $patronpw, |
240 |
patronpw => $patronpw, |
241 |
noitemlinks => 1 , |
241 |
noitemlinks => 1 , |
242 |
borrowernumber => $borrower->{'borrowernumber'}, |
242 |
borrowernumber => $borrower->{'borrowernumber'}, |
243 |
); |
243 |
); |
244 |
my $inputfocus = ($return_only == 1) ? 'returnbook' : |
244 |
my $inputfocus = ($return_only == 1) ? 'returnbook' : |
245 |
($confirm_required == 1) ? 'confirm' : 'barcode' ; |
245 |
($confirm_required == 1) ? 'confirm' : 'barcode' ; |
246 |
$template->param( |
246 |
$template->param( |
247 |
inputfocus => $inputfocus, |
247 |
inputfocus => $inputfocus, |
248 |
nofines => 1, |
248 |
nofines => 1, |
249 |
"dateformat_" . C4::Context->preference('dateformat') => 1, |
249 |
"dateformat_" . C4::Context->preference('dateformat') => 1, |
250 |
); |
250 |
); |
251 |
if (C4::Context->preference('ShowPatronImageInWebBasedSelfCheck')) { |
251 |
if (C4::Context->preference('ShowPatronImageInWebBasedSelfCheck')) { |
252 |
- |
|
|