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

(-)a/installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql (+4 lines)
Line 0 Link Here
1
INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES
2
('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1';
3
INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES
4
('EnhancedMessagingPreferences', '1', NULL, 'If ON, allows patrons to select to receive additional messages about items due or nearly due.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1';
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 291-296 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
291
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
291
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
292
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
292
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
293
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
293
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
294
('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo'),
294
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
295
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
295
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
296
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
296
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
297
('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 / +8 lines)
Lines 54-60 Patrons: Link Here
54
           choices:
54
           choices:
55
               yes: Allow
55
               yes: Allow
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
         - "Staff to manage which notices patrons will receive and when they will receive them. Note: this only applies to courtesy notices. To manage if patrons have also access to these settings, use OPACEnhancedMessagingPreferences."
58
     -
58
     -
59
         - pref: ExtendedPatronAttributes
59
         - pref: ExtendedPatronAttributes
60
           choices:
60
           choices:
Lines 159-164 Patrons: Link Here
159
               yes: Do
159
               yes: Do
160
               no: "Don't"
160
               no: "Don't"
161
         - charge a fee when a patron changes to a category with an enrollment fee.
161
         - charge a fee when a patron changes to a category with an enrollment fee.
162
     -
163
         - pref: OPACEnhancedMessagingPreferences
164
           choices:
165
               yes: Show
166
               no: "Don't show"
167
         - "patron messaging setting on the OPAC (NOTE: EnhancedMessagingPreferences must be enabled)."
168
162
    "Norwegian patron database":
169
    "Norwegian patron database":
163
     -
170
     -
164
         - pref: NorwegianPatronDBEnable
171
         - pref: NorwegianPatronDBEnable
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc (-6 / +8 lines)
Lines 77-88 Link Here
77
            [% END %]
77
            [% END %]
78
78
79
            [% IF ( EnhancedMessagingPreferences ) %]
79
            [% IF ( EnhancedMessagingPreferences ) %]
80
                [% IF ( messagingview ) %]
80
                [% IF Koha.Preference( 'OPACEnhancedMessagingPreferences' ) %]
81
                    <li class="active">
81
                    [% IF ( messagingview ) %]
82
                [% ELSE %]
82
                        <li class="active">
83
                    <li>
83
                    [% ELSE %]
84
                [% END %]
84
                        <li>
85
                <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
85
                    [% END %]
86
                    <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
87
                 [% END %]
86
            [% END %]
88
            [% END %]
87
89
88
            [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
90
            [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-2 / +5 lines)
Lines 22-27 Link Here
22
                </div>
22
                </div>
23
            </div>
23
            </div>
24
            <div class="span10">
24
            <div class="span10">
25
                [% IF Koha.Preference( 'OPACEnhancedMessagingPreferences' )  %]
25
                <div id="usermessaging">
26
                <div id="usermessaging">
26
                    <h3>Your messaging settings</h3>
27
                    <h3>Your messaging settings</h3>
27
                    [% IF ( settings_updated ) %]
28
                    [% IF ( settings_updated ) %]
Lines 150-156 Link Here
150
                        </fieldset>
151
                        </fieldset>
151
                    </form>
152
                    </form>
152
                </div> <!-- / #usermessaging -->
153
                </div> <!-- / #usermessaging -->
153
            </div> <!-- / .span10 -->
154
                [% ELSE %]
155
                    <h4>You are not allowed to call this page directly</h4>
156
                [% END %]
157
           </div> <!-- / .span10 -->
154
        </div> <!-- / .row-fluid -->
158
        </div> <!-- / .row-fluid -->
155
    </div> <!-- / .container-fluid -->
159
    </div> <!-- / .container-fluid -->
156
</div> <!-- / .main -->
160
</div> <!-- / .main -->
157
- 

Return to bug 12528