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

(-)a/installer/data/mysql/atomicupdate/Bug-9254-Add-OPACEnhancedMessagingPreferences-system-preference.sql (-1 / +1 lines)
Lines 1-6 Link Here
1
INSERT INTO systempreferences
1
INSERT INTO systempreferences
2
    (variable,value,explanation,options,type)
2
    (variable,value,explanation,options,type)
3
VALUES
3
VALUES
4
    ('OPACEnhancedMessagingPreferences',1,
4
    ('EnhancedMessagingPreferencesOPAC',1,
5
     'Show the patrons messaging preferences page in the OPAC',
5
     'Show the patrons messaging preferences page in the OPAC',
6
     NULL, 'YesNo');
6
     NULL, 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 118-123 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
118
('EnableOpacSearchHistory','1','YesNo','Enable or disable opac search history',''),
118
('EnableOpacSearchHistory','1','YesNo','Enable or disable opac search history',''),
119
('EnableSearchHistory','0','','Enable or disable search history','YesNo'),
119
('EnableSearchHistory','0','','Enable or disable search history','YesNo'),
120
('EnhancedMessagingPreferences','0','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'),
120
('EnhancedMessagingPreferences','0','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'),
121
('EnhancedMessagingPreferencesOPAC',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo'),
121
('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'),
122
('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'),
122
('ExpireReservesMaxPickUpDelay','0','','Enabling this allows holds to expire automatically if they have not been picked by within the time period specified in ReservesMaxPickUpDelay','YesNo'),
123
('ExpireReservesMaxPickUpDelay','0','','Enabling this allows holds to expire automatically if they have not been picked by within the time period specified in ReservesMaxPickUpDelay','YesNo'),
123
('ExpireReservesMaxPickUpDelayCharge','0',NULL,'If ExpireReservesMaxPickUpDelay is enabled, and this field has a non-zero value, than a borrower whose waiting hold has expired will be charged this amount.','free'),
124
('ExpireReservesMaxPickUpDelayCharge','0',NULL,'If ExpireReservesMaxPickUpDelay is enabled, and this field has a non-zero value, than a borrower whose waiting hold has expired will be charged this amount.','free'),
Lines 253-259 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
253
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
254
('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'),
255
('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'),
256
('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'),
257
('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'),
258
('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'),
259
('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 (-1 / +1 lines)
Lines 56-62 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
59
         - pref: EnhancedMessagingPreferencesOPAC
60
           choices:
60
           choices:
61
               yes: Allow
61
               yes: Allow
62
               no: "Don't allow"
62
               no: "Don't allow"
(-)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 && Koha.Preference('OPACEnhancedMessagingPreferences') ) %]
81
            [% IF ( EnhancedMessagingPreferences && Koha.Preference('EnhancedMessagingPreferencesOPAC') ) %]
82
                [% IF ( messagingview ) %]
82
                [% IF ( messagingview ) %]
83
                    <li class="active">
83
                    <li class="active">
84
                [% ELSE %]
84
                [% ELSE %]
85
- 

Return to bug 9254