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 59-64 Link Here
59
        [% END %]
59
        [% END %]
60
        </li>
60
        </li>
61
61
62
        [% IF ( cron ) %]
63
            <li class="active">
64
                <a title="Cronjobs" href="/cgi-bin/koha/admin/preferences.pl?tab=cron">Cronjobs</a>
65
                [% PROCESS subtabs %]
66
        [% END %]
67
            <li>
68
                <a title="Cronjobs" href="/cgi-bin/koha/admin/preferences.pl?tab=cron">Cronjobs</a>
69
        </li>
70
62
        [% IF ( enhanced_content ) %]
71
        [% IF ( enhanced_content ) %]
63
            <li class="active">
72
            <li class="active">
64
                <a title="Enhanced content settings" href="/cgi-bin/koha/admin/preferences.pl?tab=enhanced_content">Enhanced content</a>
73
                <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 54-59 if ( !$output_directory || !-d $output_directory || !-w $output_directory ) { Link Here
54
        -msg => qq{\nError: You must specify a valid and writeable directory to dump the print notices in.\n},
54
        -msg => qq{\nError: You must specify a valid and writeable directory to dump the print notices in.\n},
55
    });
55
    });
56
}
56
}
57
my $sys_pref_emails = C4::Context->preference("SendPrintNoticesEmails");
58
if($sys_pref_emails)
59
{
60
    my @split_pref_emails = split(/,/, $sys_pref_emails);
61
    my $sys_pref_combine = C4::Context->preference("SendPrintNoticesCombineEmails");
62
    if($sys_pref_combine)
63
    {
64
        @emails = (@emails, @split_pref_emails);
65
    }
66
    else
67
    {
68
        @emails = @split_pref_emails;
69
    }
70
}
71
else 
72
{
73
    cronlogaction({info => "SendPrintNotices system pref ignored because it was null or empty."});
74
}
75
76
# uncomment the line below to test the system pref even if you have no files to send
77
# say $_ for @emails;
57
78
58
# Default value is html
79
# Default value is html
59
$html = 1 if not $html and not $csv and not $ods;
80
$html = 1 if not $html and not $csv and not $ods;
60
- 

Return to bug 21627