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

(-)a/installer/data/mysql/atomicupdate/Bug-9254-Add-OPACEnhancedMessagingPreferences-system-preference.sql (+6 lines)
Line 0 Link Here
1
INSERT INTO systempreferences
2
    (variable,value,explanation,options,type)
3
VALUES
4
    ('OPACEnhancedMessagingPreferences',1,
5
     'Show the patrons messaging preferences page in the OPAC',
6
     NULL, 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 253-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
253
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
253
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
254
('OPACdidyoumean',NULL,NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
254
('OPACdidyoumean',NULL,NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
255
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
255
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
256
('OPACEnhancedMessagingPreferences',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo'),
256
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
257
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
257
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
258
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
258
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
259
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+6 lines)
Lines 56-61 Patrons: Link Here
56
               no: "Don't allow"
56
               no: "Don't allow"
57
         - patrons to choose which notices they receive and when they receive them. Note that this only applies to certain kinds of notices.
57
         - patrons to choose which notices they receive and when they receive them. Note that this only applies to certain kinds of notices.
58
     -
58
     -
59
         - pref: OPACEnhancedMessagingPreferences
60
           choices:
61
               yes: Allow
62
               no: "Don't allow"
63
         - patrons to choose which notices they receive and when they receive them in the OPAC. Note that this only works if EnhancedMessagingPreferences is active.
64
     -
59
         - pref: ExtendedPatronAttributes
65
         - pref: ExtendedPatronAttributes
60
           choices:
66
           choices:
61
               yes: Enable
67
               yes: Enable
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc (-2 / +1 lines)
Lines 78-84 Link Here
78
                [% END %]
78
                [% END %]
79
            [% END %]
79
            [% END %]
80
80
81
            [% IF ( EnhancedMessagingPreferences ) %]
81
            [% IF ( EnhancedMessagingPreferences && Koha.Preferences('OPACEnhancedMessagingPreferences') ) %]
82
                [% IF ( messagingview ) %]
82
                [% IF ( messagingview ) %]
83
                    <li class="active">
83
                    <li class="active">
84
                [% ELSE %]
84
                [% ELSE %]
85
- 

Return to bug 9254