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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 230-235 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
230
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
230
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
231
('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'),
231
('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'),
232
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
232
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
233
('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo'),
233
('OpacExportOptions','bibtex|dc|marcxml|marc8|utf8|marcstd|mods|ris','','Define export options available on OPAC detail page.','free'),
234
('OpacExportOptions','bibtex|dc|marcxml|marc8|utf8|marcstd|mods|ris','','Define export options available on OPAC detail page.','free'),
234
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
235
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
235
('OPACFineNoRenewals','100','','Fine limit above which user cannot renew books via OPAC','Integer'),
236
('OPACFineNoRenewals','100','','Fine limit above which user cannot renew books via OPAC','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+6 lines)
Lines 138-140 Patrons: Link Here
138
         - pref: CardnumberLength
138
         - pref: CardnumberLength
139
         - "characters long. The length can be a single number to specify an exact length, a range separated by a comma (i.e., 'Min,Max'), or a maximum with no minimum (i.e., ',Max')."
139
         - "characters long. The length can be a single number to specify an exact length, a range separated by a comma (i.e., 'Min,Max'), or a maximum with no minimum (i.e., ',Max')."
140
         - "If 'cardnumber' is included in the BorrowerMandatoryField list, the minimum length, if not specified here, defaults to one."
140
         - "If 'cardnumber' is included in the BorrowerMandatoryField list, the minimum length, if not specified here, defaults to one."
141
     -
142
         - pref: OPACEnhancedMessagingPreferences
143
           choices:
144
               yes: Show
145
               no: "Don't show"
146
         - "patron messaging setting on the OPAC (NOTE: EnhancedMessagingPreferences must be enabled)."
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc (-6 / +8 lines)
Lines 79-90 Link Here
79
            [% END %]
79
            [% END %]
80
80
81
            [% IF ( EnhancedMessagingPreferences ) %]
81
            [% IF ( EnhancedMessagingPreferences ) %]
82
                [% IF ( messagingview ) %]
82
                [% IF Koha.Preference( 'OPACEnhancedMessagingPreferences' ) %]
83
                    <li class="active">
83
                    [% IF ( messagingview ) %]
84
                [% ELSE %]
84
                        <li class="active">
85
                    <li>
85
                    [% ELSE %]
86
                [% END %]
86
                        <li>
87
                <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
87
                    [% END %]
88
                    <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
89
                 [% END %]
88
            [% END %]
90
            [% END %]
89
91
90
            [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
92
            [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-2 / +6 lines)
Lines 5-11 Link Here
5
</head>
5
</head>
6
<body id="opac-messaging">
6
<body id="opac-messaging">
7
[% INCLUDE 'masthead.inc' %]
7
[% INCLUDE 'masthead.inc' %]
8
9
<div class="main">
8
<div class="main">
10
    <ul class="breadcrumb">
9
    <ul class="breadcrumb">
11
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
10
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
Lines 21-26 Link Here
21
                </div>
20
                </div>
22
            </div>
21
            </div>
23
            <div class="span10">
22
            <div class="span10">
23
                [% IF (Authorized) %]
24
                <div id="usermessaging">
24
                <div id="usermessaging">
25
                    <h3>Your messaging settings</h3>
25
                    <h3>Your messaging settings</h3>
26
                    [% IF ( settings_updated ) %]
26
                    [% IF ( settings_updated ) %]
Lines 120-125 Link Here
120
                        </fieldset>
120
                        </fieldset>
121
                    </form>
121
                    </form>
122
                </div> <!-- / #usermessaging -->
122
                </div> <!-- / #usermessaging -->
123
                [% ELSE %]
124
                    <h4>You are not allowed to call this page directly</h4>
125
                    <span> To report this problem, you can <a href="mailto:[% admin %]">email the Koha Administrator</a>.</span>
126
                [% END %]
123
            </div> <!-- / .span10 -->
127
            </div> <!-- / .span10 -->
124
        </div> <!-- / .row-fluid -->
128
        </div> <!-- / .row-fluid -->
125
    </div> <!-- / .container-fluid -->
129
    </div> <!-- / .container-fluid -->
Lines 142-145 Link Here
142
  });
146
  });
143
//]]>
147
//]]>
144
</script>
148
</script>
145
[% END %]
149
[% END %]
(-)a/opac/opac-messaging.pl (-2 / +3 lines)
Lines 68-73 $template->param( BORROWER_INFO => [ $borrower ], Link Here
68
                  messagingview         => 1,
68
                  messagingview         => 1,
69
                  SMSnumber => defined $borrower->{'smsalertnumber'} ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'},
69
                  SMSnumber => defined $borrower->{'smsalertnumber'} ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'},
70
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
70
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
71
                  TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification") );
71
                  TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification"),
72
                  admin                        =>  C4::Context->preference('KohaAdminEmailAddress'),
73
                  Authorized                   =>  C4::Context->preference('OPACEnhancedMessagingPreferences'));
72
74
73
output_html_with_http_headers $query, $cookie, $template->output;
75
output_html_with_http_headers $query, $cookie, $template->output;
74
- 

Return to bug 12528