Bugzilla – Attachment 101385 Details for
Bug 24476
Allow patrons to opt-out of auto-renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24476 Standardize on 'auto renew(al)' and improve db update
Bug-24476-Standardize-on-auto-renewal-and-improve-.patch (text/plain), 6.26 KB, created by
Katrin Fischer
on 2020-03-22 17:17:24 UTC
(
hide
)
Description:
Bug 24476 Standardize on 'auto renew(al)' and improve db update
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-03-22 17:17:24 UTC
Size:
6.26 KB
patch
obsolete
>From 3ec6f98e94fbc31d3b8176c93eb4a70e3295d071 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 22 Mar 2020 17:07:57 +0000 >Subject: [PATCH] Bug 24476 Standardize on 'auto renew(al)' and improve db > update > >There were several versions: auto renew, auto-renew, autorenew >I've decided to use auto renew (from automatic renewal) to keep >things a bit more consistent. > >The DB update was missing AFTER and IGNORE for the sys pref. >Also fixed a tiny typo (tp > to) >Also changed >--- > .../mysql/atomicupdate/bug_24476_opt_out_of_auto_renewal.perl | 8 ++++---- > installer/data/mysql/sysprefs.sql | 2 +- > .../intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 4 ++-- > 4 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_24476_opt_out_of_auto_renewal.perl b/installer/data/mysql/atomicupdate/bug_24476_opt_out_of_auto_renewal.perl >index c83325f067..151c9b29c3 100644 >--- a/installer/data/mysql/atomicupdate/bug_24476_opt_out_of_auto_renewal.perl >+++ b/installer/data/mysql/atomicupdate/bug_24476_opt_out_of_auto_renewal.perl >@@ -1,16 +1,16 @@ > $DBversion = 'XXX'; > if( CheckVersion( $DBversion ) ) { > unless( column_exists('borrowers','autorenew_checkouts') ){ >- $dbh->do( "ALTER TABLE borrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1" ); >+ $dbh->do( "ALTER TABLE borrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" ); > } > unless( column_exists('deletedborrowers','autorenew_checkouts') ){ >- $dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1" ); >+ $dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" ); > } > $dbh->do(q{ >- INSERT INTO systempreferences >+ INSERT IGNORE INTO systempreferences > ( `variable`, `value`, `options`, `explanation`, `type` ) > VALUES >- ('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account tp choose whether their checkouts are auto renewed or not','YesNo') >+ ('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account to choose whether their checkouts are auto renewed or not','YesNo') > }); > SetVersion( $DBversion ); > print "Upgrade to $DBversion done (Bug 24476 - Allow patrons to opt-out of autorenewal)\n"; >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 712e94d327..f88b207e6e 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -34,7 +34,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AllowMultipleIssuesOnABiblio',1,'Allow/Don\'t allow patrons to check out multiple items from one biblio','','YesNo'), > ('AllowNotForLoanOverride','0','','If ON, Koha will allow the librarian to loan a not for loan item.','YesNo'), > ('AllowOfflineCirculation','0','','If on, enables HTML5 offline circulation functionality.','YesNo'), >-('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account tp choose whether their checkouts are auto renewed or not','YesNo'), >+('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account to choose whether their checkouts are auto renewed or not','YesNo'), > ('AllowPatronToSetCheckoutsVisibilityForGuarantor', '0', NULL, 'If enabled, the patron can set checkouts to be visible to his or her guarantor', 'YesNo'), > ('AllowPatronToSetFinesVisibilityForGuarantor', '0', NULL, 'If enabled, the patron can set fines to be visible to his or her guarantor', 'YesNo'), > ('AllowPKIAuth','None','None|Common Name|emailAddress','Use the field from a client-side SSL certificate to look a user in the Koha database','Choice'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >index 43d9c2810d..13c2e70352 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >@@ -256,7 +256,7 @@ Patrons: > choices: > yes: Allow patrons > no: Allow only staff >- - "to allow/disallow auto-renewal for account. If allowed a patron will be able to update their own account to allow/disallow autorenewals" >+ - "to allow/disallow auto renewal for account. If allowed a patron will be able to update their own account to allow/disallow auto renewals" > > Privacy: > - >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index e649229d19..f886df0c5e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -52,7 +52,7 @@ > [% IF Koha.Preference('AllowPatronToControlAutorenewal') %] > <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post"> > <label for="yes-autorenew_checkouts"> >- Allow auto-renewal: >+ Allow auto renewal: > </label> > [% IF ( borrower.autorenew_checkouts ) %] > <label class="radio inline" for="yes-autorenew_checkouts"> >@@ -76,7 +76,7 @@ > [% END %] > <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> > <input type="hidden" name="update_arc" value="1" /> >- <input type="submit" value="Update autorenewal preference" /> >+ <input type="submit" value="Update auto renewal preference" /> > </form> > [% END %] > [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24476
:
97766
|
97767
|
97768
|
97769
|
97770
|
97831
|
97832
|
97833
|
97834
|
97835
|
97836
|
97923
|
97924
|
97925
|
97926
|
97927
|
97928
|
97997
|
97998
|
97999
|
98000
|
98001
|
98002
|
99793
|
99794
|
99795
|
99796
|
99797
|
99798
|
99799
|
99800
|
100022
|
100023
|
100024
|
100025
|
100026
|
100027
|
100028
|
100029
|
101385
|
101419
|
101420
|
101421
|
101422
|
101423
|
101424
|
101425
|
101426
|
101427
|
101511
|
101512
|
101513
|
101514
|
101515
|
101516
|
101517
|
101518
|
101519
|
101520
|
101521
|
101542