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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc (+9 lines)
Lines 66-71 Link Here
66
            </li>
66
            </li>
67
        [% END %]
67
        [% END %]
68
68
69
        [% IF ( cron ) %]
70
            <li class="active">
71
                <a title="Cronjobs" href="/cgi-bin/koha/admin/preferences.pl?tab=cron">Cronjobs</a>
72
                [% PROCESS subtabs %]
73
        [% END %]
74
            <li>
75
                <a title="Cronjobs" href="/cgi-bin/koha/admin/preferences.pl?tab=cron">Cronjobs</a>
76
        </li>
77
69
        [% IF ( enhanced_content ) %]
78
        [% IF ( enhanced_content ) %]
70
            <li class="active">
79
            <li class="active">
71
                <a title="Enhanced content settings" href="/cgi-bin/koha/admin/preferences.pl?tab=enhanced_content">Enhanced content</a>
80
                <a title="Enhanced content settings" href="/cgi-bin/koha/admin/preferences.pl?tab=enhanced_content">Enhanced content</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cron.pref (+10 lines)
Line 0 Link Here
1
Cronjobs:
2
    Gather Print Notices:
3
        -
4
            - Send gathered print notice emails to
5
            - pref: SendPrintNoticesEmails
6
            - pref: SendPrintNoticesCombineEmails
7
              choices:
8
                0: instead of
9
                1: in addition to
10
            - any email addresses set in the cron
(-)a/misc/cronjobs/gather_print_notices.pl (-1 / +21 lines)
Lines 57-62 if ( !$output_directory || !-d $output_directory || !-w $output_directory ) { Link Here
57
        }
57
        }
58
    );
58
    );
59
}
59
}
60
my $sys_pref_emails = C4::Context->preference("SendPrintNoticesEmails");
61
if($sys_pref_emails)
62
{
63
    my @split_pref_emails = split(/,/, $sys_pref_emails);
64
    my $sys_pref_combine = C4::Context->preference("SendPrintNoticesCombineEmails");
65
    if($sys_pref_combine)
66
    {
67
        @emails = (@emails, @split_pref_emails);
68
    }
69
    else
70
    {
71
        @emails = @split_pref_emails;
72
    }
73
}
74
else
75
{
76
    cronlogaction({info => "SendPrintNotices system pref ignored because it was null or empty."});
77
}
78
79
# uncomment the line below to test the system pref even if you have no files to send
80
# say $_ for @emails;
60
81
61
# Default value is html
82
# Default value is html
62
$html = 1 if not $html and not $csv and not $ods;
83
$html = 1 if not $html and not $csv and not $ods;
63
- 

Return to bug 21627