@@ -, +, @@ - AutoSelfCheckAllowed => 'Allow' - AutoSelfCheckId and AutoSelfCheckPass => Set these to a patron with - WebBasedSelfCheck -> 'Enable' - OpacShibOnly -> "Don't allow" - SelfCheckoutByLogin -> 'Shibboleth' --- ..._30444-edit_SelfCheckoutByLogin_syspref.pl | 16 +++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 2 +- opac/sco/sco-main.pl | 24 +++++++++++++++---- 3 files changed, 37 insertions(+), 5 deletions(-) create mode 100755 installer/data/mysql/atomicupdate/bug_30444-edit_SelfCheckoutByLogin_syspref.pl --- a/installer/data/mysql/atomicupdate/bug_30444-edit_SelfCheckoutByLogin_syspref.pl +++ a/installer/data/mysql/atomicupdate/bug_30444-edit_SelfCheckoutByLogin_syspref.pl @@ -0,0 +1,16 @@ +use Modern::Perl; + +return { + bug_number => "30444", + description => "Edit existing system preference SelfCheckoutByLogin", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + # Update existing values + $dbh->do(q{UPDATE systempreferences SET value = 'cardnumber' WHERE variable = "SelfCheckoutByLogin" AND value = 0}); + $dbh->do(q{UPDATE systempreferences SET value = 'username' WHERE variable = "SelfCheckoutByLogin" AND value = 1}); + + $dbh->do(q{UPDATE systempreferences SET explanation = "Have patrons login into the web-based self checkout system with their username/password, their cardnumber, or using shibboleth" WHERE variable = "SelfCheckoutByLogin"}); + }, +}; --- a/installer/data/mysql/mandatory/sysprefs.sql +++ a/installer/data/mysql/mandatory/sysprefs.sql @@ -606,7 +606,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SelfCheckInTimeout','120','','Define the number of seconds before the self check-in module times out.','Integer'), ('SelfCheckInUserCSS','',NULL,'Add CSS to be included in the self check-in module in an embedded