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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+7 lines)
Lines 572-577 OPAC: Link Here
572
                  summary: "in user summary box on OPAC homepage (the system preference 'OPACUserSummary' must be enabled)"
572
                  summary: "in user summary box on OPAC homepage (the system preference 'OPACUserSummary' must be enabled)"
573
                  user: "on patron's 'your summary' page"
573
                  user: "on patron's 'your summary' page"
574
            - ". Note that displayed savings may be inaccurate if checkout history is anonymized."
574
            - ". Note that displayed savings may be inaccurate if checkout history is anonymized."
575
        -
576
            - pref: OPACDisableSendList
577
              default: 0
578
              choices:
579
                  1: "Don't allow"
580
                  0: Allow
581
            - "OPAC users to email lists via a 'Send list' button"
575
    OpenURL:
582
    OpenURL:
576
        -
583
        -
577
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
584
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt (-1 / +1 lines)
Lines 25-31 Link Here
25
                            </div>
25
                            </div>
26
                        [% END %]
26
                        [% END %]
27
                    [% ELSE %]
27
                    [% ELSE %]
28
                        [% IF ( invalidlist ) %]
28
                        [% IF ( invalidlist || Koha.Preference('OPACDisableSendList') ) %]
29
                            <div class="alert alert-warning">
29
                            <div class="alert alert-warning">
30
                                <p>You do not have permission to send this list.</p>
30
                                <p>You do not have permission to send this list.</p>
31
                            </div>
31
                            </div>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-1 / +1 lines)
Lines 258-264 Link Here
258
                                            </div>
258
                                            </div>
259
                                        </div>
259
                                        </div>
260
260
261
                                        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
261
                                        [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( ! Koha.Preference('OPACDisableSendList') ) %]
262
                                            <span class="sendlist"
262
                                            <span class="sendlist"
263
                                                ><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send"><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send list</a></span
263
                                                ><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send"><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send list</a></span
264
                                            >
264
                                            >
(-)a/opac/opac-sendshelf.pl (-1 / +6 lines)
Lines 52-57 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
52
    }
52
    }
53
);
53
);
54
54
55
if ( C4::Context->preference('OPACDisableSendList') ) {
56
    output_html_with_http_headers $query, $cookie, $template->output, undef,
57
        { force_no_caching => 1 };
58
    exit;
59
}
60
55
my $shelfid = $query->param('shelfid');
61
my $shelfid = $query->param('shelfid');
56
my $email   = $query->param('email');
62
my $email   = $query->param('email');
57
my $op      = $query->param('op') // q{};
63
my $op      = $query->param('op') // q{};
58
- 

Return to bug 39374