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

(-)a/C4/Auth.pm (-1 / +1 lines)
Lines 317-323 sub get_template_and_user { Link Here
317
    $template->param(
317
    $template->param(
318
            "BiblioDefaultView".C4::Context->preference("BiblioDefaultView")         => 1,
318
            "BiblioDefaultView".C4::Context->preference("BiblioDefaultView")         => 1,
319
            EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'),
319
            EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'),
320
            OPACEnhancedMessagingPreferences => C4::Context->preference('OPACEnhancedMessagingPreferences'),
320
            EnhancedMessagingPreferencesOPAC => C4::Context->preference('EnhancedMessagingPreferencesOPAC'),
321
            GoogleJackets                => C4::Context->preference("GoogleJackets"),
321
            GoogleJackets                => C4::Context->preference("GoogleJackets"),
322
            OpenLibraryCovers            => C4::Context->preference("OpenLibraryCovers"),
322
            OpenLibraryCovers            => C4::Context->preference("OpenLibraryCovers"),
323
            KohaAdminEmailAddress        => "" . C4::Context->preference("KohaAdminEmailAddress"),
323
            KohaAdminEmailAddress        => "" . C4::Context->preference("KohaAdminEmailAddress"),
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 417-420 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
417
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UNIMARCField100Language', 'fre','UNIMARC field 100 default language',NULL,'short');
417
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UNIMARCField100Language', 'fre','UNIMARC field 100 default language',NULL,'short');
418
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Persona',0,'Use Mozilla Persona for login','','YesNo');
418
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Persona',0,'Use Mozilla Persona for login','','YesNo');
419
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RenewalSendNotices','0', NULL, '', 'YesNo');
419
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RenewalSendNotices','0', NULL, '', 'YesNo');
420
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACEnhancedMessagingPreferences',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo');
420
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('EnhancedMessagingPreferencesOPAC',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 6439-6445 if ( CheckVersion($DBversion) ) { Link Here
6439
6439
6440
$DBversion = "3.11.00.XXX";
6440
$DBversion = "3.11.00.XXX";
6441
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6441
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6442
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACEnhancedMessagingPreferences',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo')");
6442
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('EnhancedMessagingPreferencesOPAC',1, 'Show the patrons messaging preferences page in the OPAC', NULL, 'YesNo')");
6443
    print "Upgrade to $DBversion done (Bug 9254: Problem with EnhancedMessagingPreferences) \n";
6443
    print "Upgrade to $DBversion done (Bug 9254: Problem with EnhancedMessagingPreferences) \n";
6444
    SetVersion ($DBversion);
6444
    SetVersion ($DBversion);
6445
}
6445
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +1 lines)
Lines 62-68 Patrons: Link Here
62
               no: "Don't allow"
62
               no: "Don't allow"
63
         - patrons to receive notices. Note that this only applies to certain kinds of notices.
63
         - patrons to receive notices. Note that this only applies to certain kinds of notices.
64
     -
64
     -
65
         - pref: OPACEnhancedMessagingPreferences
65
         - pref: EnhancedMessagingPreferencesOPAC
66
           choices:
66
           choices:
67
               yes: Allow
67
               yes: Allow
68
               no: "Don't allow"
68
               no: "Don't allow"
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc (-2 / +1 lines)
Lines 26-32 Link Here
26
      [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-suggestions.pl">my purchase suggestions</a></li>
26
      [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-suggestions.pl">my purchase suggestions</a></li>
27
    [% END %]
27
    [% END %]
28
  [% END %]
28
  [% END %]
29
  [% IF ( EnhancedMessagingPreferences && OPACEnhancedMessagingPreferences ) %]
29
  [% IF ( EnhancedMessagingPreferences && EnhancedMessagingPreferencesOPAC ) %]
30
    [% IF ( messagingview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-messaging.pl">my messaging</a></li>
30
    [% IF ( messagingview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/opac-messaging.pl">my messaging</a></li>
31
  [% END %]
31
  [% END %]
32
  [% IF ( virtualshelves ) %] 
32
  [% IF ( virtualshelves ) %] 
33
- 

Return to bug 9254