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

(-)a/installer/data/mysql/atomicupdate/bug_28153_add_holdreminder_notice_preference.perl (+16 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO `message_attributes`
5
            (`message_attribute_id`, message_name, `takes_days`)
6
        VALUES (10, 'Hold_Reminder', 0)
7
    });
8
    $dbh->do( q{
9
        INSERT IGNORE INTO `message_transports`
10
            (`message_attribute_id`, `message_transport_type`, `is_digest`, `letter_module`, `letter_code`)
11
        VALUES  (10, 'email', 0, 'circulation', 'HOLD_REMINDER'),
12
                (10, 'sms', 0, 'circulation', 'HOLD_REMINDER'),
13
                (10, 'phone', 0, 'circulation', 'HOLD_REMINDER')
14
    });
15
    NewVersion( $DBversion, 28153, "Add Hold reminder messaging preference");
16
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (+1 lines)
Lines 19-24 Link Here
19
      <td>[% IF ( messaging_preference.Item_Due ) %]Item due
19
      <td>[% IF ( messaging_preference.Item_Due ) %]Item due
20
          [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
20
          [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
21
          [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
21
          [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
22
          [% ELSIF ( messaging_preference.Hold_Reminder ) %]Hold reminder
22
          [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
23
          [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
23
          [% ELSIF ( messaging_preference.Item_Checkout ) %]
24
          [% ELSIF ( messaging_preference.Item_Checkout ) %]
24
            [% IF Koha.Preference( 'RenewalSendNotice' ) %]
25
            [% IF Koha.Preference( 'RenewalSendNotice' ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (+1 lines)
Lines 61-66 Link Here
61
                                            <td>[% IF ( messaging_preference.Item_Due ) %]Item due
61
                                            <td>[% IF ( messaging_preference.Item_Due ) %]Item due
62
                                                [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
62
                                                [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
63
                                                [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
63
                                                [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
64
                                                [% ELSIF ( messaging_preference.Hold_Reminder ) %]Hold reminder
64
                                                [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
65
                                                [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
65
                                                [% ELSIF ( messaging_preference.Item_Checkout ) %]
66
                                                [% ELSIF ( messaging_preference.Item_Checkout ) %]
66
                                                    [% IF Koha.Preference( 'RenewalSendNotice' ) %]
67
                                                    [% IF Koha.Preference( 'RenewalSendNotice' ) %]
(-)a/misc/cronjobs/holds_reminder.pl (-4 / +3 lines)
Lines 60-66 holds_reminder.pl Link Here
60
   -lettercode   <lettercode>     predefined notice to use, default is HOLD_REMINDER
60
   -lettercode   <lettercode>     predefined notice to use, default is HOLD_REMINDER
61
   -library      <branchname>     only deal with holds from this library (repeatable : several libraries can be given)
61
   -library      <branchname>     only deal with holds from this library (repeatable : several libraries can be given)
62
   -holidays                      use the calendar to not count holidays as waiting days
62
   -holidays                      use the calendar to not count holidays as waiting days
63
   -mtt          <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold filled
63
   -mtt          <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold reminder
64
                                  populating this will force send even if patron has not chosen to receive hold notices
64
                                  populating this will force send even if patron has not chosen to receive hold notices
65
                                  email and sms will fallback to print if borrower does not have an address/phone
65
                                  email and sms will fallback to print if borrower does not have an address/phone
66
   -date                          Send notices as would have been sent on a specific date
66
   -date                          Send notices as would have been sent on a specific date
Lines 255-262 foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP Link Here
255
    my %done;
255
    my %done;
256
256
257
    # If passed message transports we force use those, otherwise we will use the patrons preferences
257
    # If passed message transports we force use those, otherwise we will use the patrons preferences
258
    # for the 'Hold_Filled' notice
258
    # for the 'Hold_Reminder' notice
259
    my $sending_params = @mtts ? { message_transports => \@mtts } : { message_name => "Hold_Filled" };
259
    my $sending_params = @mtts ? { message_transports => \@mtts } : { message_name => "Hold_Reminder" };
260
260
261
261
262
    my %patrons;
262
    my %patrons;
263
- 

Return to bug 28153