View | Details | Raw Unified | Return to bug 8628
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_8628-digital-signs-permissions.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'edit_digital_signs', 'Create and edit digital signs for the OPAC') });
4
5
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (Bug 8628 - adding permission for managing digital signs)\n";
7
}
(-)a/installer/data/mysql/atomicupdate/bug_8628-digital-signs-sysprefs.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES
4
                ('OPACDigitalSigns',0,NULL,'Turn digital signs in the OPAC on or off.','YesNo'),
5
                ('OPACDigitalSignsCSS','',NULL,'Extra CSS to be included in all signs','Textarea'),
6
                ('OPACDigitalSignsSwatches','abcde',NULL,'List the swatches that can be chosen when creating a new sign','free')
7
            });
8
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 8628 - Adding OPACDigitalSigns, OPACDigitalSignsCSS and OPACDigitalSignsSwatches system preferences)\n";
11
}
(-)a/installer/data/mysql/atomicupdate/bug_8628-digital-signs.perl (+37 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{DROP TABLE IF EXISTS sign_streams });
4
    $dbh->do(q{DROP TABLE IF EXISTS signs });
5
    $dbh->do(q{CREATE TABLE sign_streams (
6
                sign_stream_id int(11) NOT NULL auto_increment,    -- primary key, used to identify streams
7
                saved_sql_id int(11) NOT NULL,              -- foreign key from the saved_sql table
8
                name varchar(64),                           -- name/title of the sign
9
                PRIMARY KEY (sign_stream_id),
10
                CONSTRAINT sign_streams_ibfk_1 FOREIGN KEY (saved_sql_id) REFERENCES saved_sql (id) ON DELETE CASCADE
11
              ) ENGINE=InnoDB DEFAULT CHARSET=utf8 });
12
    $dbh->do(q{CREATE TABLE signs (
13
                sign_id int(11) NOT NULL auto_increment,     -- primary key, used to identify signs
14
                name varchar(64),                            -- name/title of the deck
15
                webapp int(1) NOT NULL DEFAULT 0,            -- display as web app or normal page
16
                transition char(16) NOT NULL DEFAULT 'none', -- transition to use between pages, must be one of the transitions defined by jQuery Mobile (see their docs)
17
                swatch char(1) NOT NULL DEFAULT '',          -- swatches determine the colors of page elements
18
                idleafter int(11) NOT NULL default 0,        -- seconds to wait before automatic page turning cicks in
19
                pagedelay int(11) NOT NULL default 0,        -- seconds to wait before turning to a new page/record
20
                reloadafter int(11) NOT NULL default 0,      -- seconds to wait before reloading all the pages
21
                PRIMARY KEY (sign_id)
22
              ) ENGINE=InnoDB DEFAULT CHARSET=utf8 });
23
24
    $dbh->do(q{DROP TABLE IF EXISTS signs_to_streams });
25
    $dbh->do(q{CREATE TABLE signs_to_streams (
26
                sign_to_stream_id int(11) NOT NULL auto_increment, -- primary key, used to identify connections between signs and streams (the same stream can be attached to a sign more than once, with different parameters)
27
                sign_stream_id int(11) NOT NULL,                   -- foreign key from the decks sign_streams table
28
                sign_id int(11) NOT NULL,                          -- foreign key from the signs table
29
                params varchar(255) NOT NULL DEFAULT '',           -- list of parameters for the SQL associated with the sign_stream
30
                PRIMARY KEY (sign_to_stream_id),
31
                CONSTRAINT signs_to_streams_ibfk_1 FOREIGN KEY (sign_stream_id) REFERENCES sign_streams (sign_stream_id) ON DELETE CASCADE,
32
                CONSTRAINT signs_to_streams_ibfk_2 FOREIGN KEY (sign_id) REFERENCES signs (sign_id) ON DELETE CASCADE
33
              ) ENGINE=InnoDB DEFAULT CHARSET=utf8 });
34
35
    SetVersion( $DBversion );
36
    print "Upgrade to $DBversion done (Bug 8628 - add signs, sign_streams and signs_to_streams tables)\n";
37
}
(-)a/installer/data/mysql/kohastructure.sql (+45 lines)
Lines 4415-4420 CREATE TABLE return_claims ( Link Here
4415
    CONSTRAINT `rc_resolved_by_ibfk` FOREIGN KEY (`resolved_by`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE
4415
    CONSTRAINT `rc_resolved_by_ibfk` FOREIGN KEY (`resolved_by`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE
4416
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
4416
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
4417
4417
4418
--
4419
-- Table structure for table 'sign_streams'
4420
--
4421
4422
DROP TABLE IF EXISTS sign_streams;
4423
CREATE TABLE sign_streams (
4424
  `sign_stream_id` int(11) NOT NULL auto_increment, -- primary key, used to identify streams
4425
  `saved_sql_id` int(11) NOT NULL, -- foreign key from the saved_sql table
4426
  `name` varchar(64), -- name/title of the sign
4427
  PRIMARY KEY (`sign_stream_id`),
4428
  CONSTRAINT `sign_streams_ibfk_1` FOREIGN KEY (`saved_sql_id`) REFERENCES `saved_sql` (`id`) ON DELETE CASCADE
4429
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
4430
4431
--
4432
-- Table structure for table 'signs'
4433
--
4434
4435
DROP TABLE IF EXISTS signs;
4436
CREATE TABLE signs (
4437
  `sign_id` int(11) NOT NULL auto_increment, -- primary key, used to identify signs
4438
  `name` varchar(64), -- name/title of the deck
4439
  `webapp` int(1) NOT NULL DEFAULT 0, -- display as web app or normal page
4440
  `transition` char(16) NOT NULL DEFAULT 'none', -- transition to use between pages, must be one of the transitions defined by jQuery Mobile (see their docs)
4441
  `swatch` char(1) NOT NULL DEFAULT '', -- swatches determine the colors of page elements
4442
  `idleafter` int(11) NOT NULL default 0, -- seconds to wait before automatic page turning clicks in
4443
  `pagedelay` int(11) NOT NULL default 0, -- seconds to wait before turning to a new page/record
4444
  `reloadafter` int(11) NOT NULL default 0, -- seconds to wait before reloading all the pages
4445
  PRIMARY KEY (`sign_id`)
4446
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
4447
4448
--
4449
-- Table structure for table 'signs_to_streams'
4450
--
4451
4452
DROP TABLE IF EXISTS signs_to_streams;
4453
CREATE TABLE signs_to_streams (
4454
  `sign_to_stream_id` int(11) NOT NULL auto_increment, -- primary key, used to identify connections between signs and streams (the same stream can be attached to a sign more than once, with different parameters)
4455
  `sign_stream_id` int(11) NOT NULL, -- foreign key from the decks sign_streams table
4456
  `sign_id` int(11) NOT NULL, -- foreign key from the signs table
4457
  `params` varchar(255) NOT NULL DEFAULT '', -- list of parameters for the SQL associated with the sign_stream
4458
  PRIMARY KEY (`sign_to_stream_id`),
4459
  CONSTRAINT `signs_to_streams_ibfk_1` FOREIGN KEY (`sign_stream_id`) REFERENCES `sign_streams` (`sign_stream_id`) ON DELETE CASCADE,
4460
  CONSTRAINT `signs_to_streams_ibfk_2` FOREIGN KEY (`sign_id`) REFERENCES `signs` (`sign_id`) ON DELETE CASCADE
4461
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
4462
4418
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
4463
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
4419
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
4464
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
4420
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
4465
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
(-)a/installer/data/mysql/sysprefs.sql (-1 / +4 lines)
Lines 93-99 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
93
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
93
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
94
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
94
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
95
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
95
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
96
('BibtexExportAdditionalFields',  '', NULL ,  'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
96
('BibtexExportAdditionalFields', '', NULL, 'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.', 'textarea'),
97
('BlockExpiredPatronOpacActions','1',NULL,'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis','YesNo'),
97
('BlockExpiredPatronOpacActions','1',NULL,'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis','YesNo'),
98
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
98
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
99
('BlockReturnOfWithdrawnItems','1','0','If enabled, items that are marked as withdrawn cannot be returned.','YesNo'),
99
('BlockReturnOfWithdrawnItems','1','0','If enabled, items that are marked as withdrawn cannot be returned.','YesNo'),
Lines 375-380 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
375
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
375
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
376
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
376
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
377
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
377
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
378
('OPACDigitalSigns',0,NULL, 'Turn digital signs in the OPAC on or off.','YesNo'),
379
('OPACDigitalSignsCSS','',NULL,'Extra CSS to be included in all signs','Textarea'),
380
('OPACDigitalSignsSwatches','abcde',NULL,'List the swatches that can be chosen when creating a new sign','free'),
378
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
381
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
379
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
382
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
380
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
383
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),

Return to bug 8628