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

(-)a/installer/data/mysql/atomicupdate/bug-22581.perl (+12 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    $dbh->do( qq{
5
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
6
        VALUES  ('OPACShowMusicalInscripts','0','','Display musical inscripts on the OPAC record details page when available.','YesNo'),
7
                ('OPACPlayMusicalInscripts','0','','If displayed musical inscripts, play midi conversion on the OPAC record details page.','YesNo')
8
    } );
9
10
    SetVersion( $DBversion );
11
    print "Upgrade to $DBversion done (Bug 22581 - add new OPACShowMusicalInscripts and OPACPlayMusicalInscripts system preferences)\n";
12
}
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 428-433 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
428
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
428
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
429
('OPACShowCheckoutName','0','','Displays in the OPAC the name of patron who has checked out the material. WARNING: Most sites should leave this off. It is intended for corporate or special sites which need to track who has the item.','YesNo'),
429
('OPACShowCheckoutName','0','','Displays in the OPAC the name of patron who has checked out the material. WARNING: Most sites should leave this off. It is intended for corporate or special sites which need to track who has the item.','YesNo'),
430
('OPACShowHoldQueueDetails','none','none|priority|holds|holds_priority','Show holds details in OPAC','Choice'),
430
('OPACShowHoldQueueDetails','none','none|priority|holds|holds_priority','Show holds details in OPAC','Choice'),
431
('OPACShowMusicalInscripts','0','','Display musical inscripts on the OPAC record details page when available.','YesNo'),
432
('OPACPlayMusicalInscripts','0','','If displayed musical inscripts, play midi conversion on the OPAC record details page.','YesNo'),
431
('OpacShowRecentComments','0',NULL,'If ON a link to recent comments will appear in the OPAC masthead','YesNo'),
433
('OpacShowRecentComments','0',NULL,'If ON a link to recent comments will appear in the OPAC masthead','YesNo'),
432
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
434
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
433
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
435
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +14 lines)
Lines 161-166 OPAC: Link Here
161
                  column: "on a separate column"
161
                  column: "on a separate column"
162
            - "for items on the OPAC record details page."
162
            - "for items on the OPAC record details page."
163
            - "<br />Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the <a href='/cgi-bin/koha/admin/columns_settings.pl'>configure columns</a> administration page"
163
            - "<br />Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the <a href='/cgi-bin/koha/admin/columns_settings.pl'>configure columns</a> administration page"
164
        -
165
            - pref: OPACShowMusicalInscripts
166
              default: 0
167
              choices:
168
                yes: Show
169
                no: "Don't show"
170
            - musical inscripts on the OPAC record details page.
171
        -
172
            - pref: OPACPlayMusicalInscripts
173
              default: 0,'','If displayed musical inscripts, play midi conversion for items on the OPAC record details page.'
174
              choices:
175
                yes: Play
176
                no: "Don't play"
177
            - MIDI representation of musical inscripts on the OPAC record details page.
164
        -
178
        -
165
            - pref: OpacKohaUrl
179
            - pref: OpacKohaUrl
166
              default: 0
180
              default: 0
167
- 

Return to bug 22581