Bugzilla – Attachment 127011 Details for
Bug 27360
Libraries should be able to pick which branches display on the public 'Libraries' page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27360: Add public field to branches table
Bug-27360-Add-public-field-to-branches-table.patch (text/plain), 2.15 KB, created by
Kyle M Hall (khall)
on 2021-10-27 15:32:24 UTC
(
hide
)
Description:
Bug 27360: Add public field to branches table
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-10-27 15:32:24 UTC
Size:
2.15 KB
patch
obsolete
>From 6264613bdd96d0de82e0237dcdedf649e534c235 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 27 Oct 2021 14:48:16 +0100 >Subject: [PATCH] Bug 27360: Add public field to branches table > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> >--- > installer/data/mysql/atomicupdate/bug_27360.pl | 16 ++++++++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 17 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_27360.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_27360.pl b/installer/data/mysql/atomicupdate/bug_27360.pl >new file mode 100644 >index 0000000000..d5ced6d62f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_27360.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "27360", >+ description => "Make display of libraries configurable", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ unless ( column_exists('branches', 'public') ) { >+ $dbh->do(q{ >+ ALTER TABLE branches ADD public tinyint DEFAULT 1 AFTER pickup_location >+ }); >+ } >+ }, >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index e61c06592f..dcdd528aba 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1485,6 +1485,7 @@ CREATE TABLE `branches` ( > `geolocation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'geolocation of your library', > `marcorgcode` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode', > `pickup_location` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'the ability to act as a pickup location', >+ `public` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'whether this library should show in the opac', > PRIMARY KEY (`branchcode`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; > /*!40101 SET character_set_client = @saved_cs_client */; >-- >2.20.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 27360
:
126997
|
126998
|
126999
|
127000
|
127007
|
127008
|
127009
|
127011
|
127012
|
127013
|
127144
|
127145
|
127146
|
127147
|
127158
|
127159
|
127160
|
127161
|
127162
|
127163
|
127253
|
127629