- string
- "null"
description: notes related to your library or branch
- opac_info:
- type:
- - string
- - "null"
- description: HTML that displays in OPAC
geolocation:
type:
- string
description: Case insensitive 'starts_with' search on notes
required: false
type: string
- - name: opac_info
- in: query
- description: Case insensitive 'starts-with' search on OPAC info
- required: false
- type: string
- $ref: "../swagger.yaml#/parameters/match"
- $ref: "../swagger.yaml#/parameters/order_by"
- $ref: "../swagger.yaml#/parameters/page"
--- /dev/null
+use Modern::Perl;
+
+return {
+ bug_number => 29144,
+ description => "Copy and remove branches.opac_info",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+ $dbh->do(q{
+INSERT IGNORE INTO additional_contents ( category,code,location,branchcode,title,content,lang,published_on )
+SELECT 'html_customizations', CONCAT('OpacLibraryInfo_', branches.branchcode), 'OpacLibraryInfo', branches.branchcode, branches.branchname, branches.opac_info, 'default', NOW()
+FROM branches
+WHERE branches.opac_info IS NOT NULL
+ });
+ $dbh->do(q{
+ALTER TABLE branches DROP COLUMN opac_info;
+ });
+ },
+};
`issuing` tinyint(4) DEFAULT NULL COMMENT 'unused in Koha',
`branchip` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the IP address for your library or branch',
`branchnotes` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'notes related to your library or branch',
- `opac_info` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'HTML that displays in OPAC',
`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',