Bugzilla – Attachment 133462 Details for
Bug 30108
Allow making hold dates required
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30108: Database revision, adding new preference
Bug-30108-Database-revision-adding-new-preference.patch (text/plain), 2.55 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-04-20 12:25:40 UTC
(
hide
)
Description:
Bug 30108: Database revision, adding new preference
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-04-20 12:25:40 UTC
Size:
2.55 KB
patch
obsolete
>From 47f276653887e23d67cc95d11e14f57c87d35bf0 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 17 Feb 2022 12:55:20 +0000 >Subject: [PATCH] Bug 30108: Database revision, adding new preference > >Test plan: >Run upgrade or new install. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/atomicupdate/bug_30108.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > 2 files changed, 15 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_30108.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30108.pl b/installer/data/mysql/atomicupdate/bug_30108.pl >new file mode 100755 >index 00000000000..039d5ce0c8c >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30108.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => 30108, >+ description => "Add preference OPACMandatoryHoldDates", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES >+('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice') >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 34523550c07..5586effd049 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -438,6 +438,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OPACLocalCoverImages','0','1','Display local cover images on OPAC search and details pages.','YesNo'), > ('OpacLocationBranchToDisplay','holding','holding|home|both','In the OPAC, under location show which branch for Location in the record details.','Choice'), > ('OpacLocationOnDetail','holding','holding|home|both|column','In the OPAC detail, display the shelving location on its own column or under a library columns.', 'Choice'), >+('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice'), > ('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'), > ('OpacMaintenanceNotice','','','A user-defined block of HTML to appear on screen when OpacMaintenace is enabled','Textarea'), > ('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'), >-- >2.34.1
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 30108
:
130745
|
130746
|
130747
|
131372
|
131376
|
131377
|
131378
|
131379
| 133462 |
133463
|
133464
|
133465
|
134476