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 62-67 Link Here
62
                                            <td>[% IF ( messaging_preference.Item_Due ) %]Item due
62
                                            <td>[% IF ( messaging_preference.Item_Due ) %]Item due
63
                                                [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
63
                                                [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice
64
                                                [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
64
                                                [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled
65
                                                [% ELSIF ( messaging_preference.Hold_Reminder ) %]Hold reminder
65
                                                [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
66
                                                [% ELSIF ( messaging_preference.Item_Check_in ) %]Item check-in
66
                                                [% ELSIF ( messaging_preference.Item_Checkout ) %]
67
                                                [% ELSIF ( messaging_preference.Item_Checkout ) %]
67
                                                    [% IF Koha.Preference( 'RenewalSendNotice' ) %]
68
                                                    [% IF Koha.Preference( 'RenewalSendNotice' ) %]
(-)a/misc/cronjobs/holds/holds_reminder.pl (-4 / +3 lines)
Lines 61-67 holds_reminder.pl Link Here
61
   -lettercode   <lettercode>     predefined notice to use, default is HOLD_REMINDER
61
   -lettercode   <lettercode>     predefined notice to use, default is HOLD_REMINDER
62
   -library      <branchname>     only deal with holds from this library (repeatable : several libraries can be given)
62
   -library      <branchname>     only deal with holds from this library (repeatable : several libraries can be given)
63
   -holidays                      use the calendar to not count holidays as waiting days
63
   -holidays                      use the calendar to not count holidays as waiting days
64
   -mtt          <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold filled
64
   -mtt          <message_transport_type> type of messages to send, default is to use patrons messaging preferences for Hold reminder
65
                                  populating this will force send even if patron has not chosen to receive hold notices
65
                                  populating this will force send even if patron has not chosen to receive hold notices
66
                                  email and sms will fallback to print if borrower does not have an address/phone
66
                                  email and sms will fallback to print if borrower does not have an address/phone
67
   -date                          Send notices as would have been sent on a specific date
67
   -date                          Send notices as would have been sent on a specific date
Lines 265-272 foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP Link Here
265
    my %done;
265
    my %done;
266
266
267
    # If passed message transports we force use those, otherwise we will use the patrons preferences
267
    # If passed message transports we force use those, otherwise we will use the patrons preferences
268
    # for the 'Hold_Filled' notice
268
    # for the 'Hold_Reminder' notice
269
    my $sending_params = @mtts ? { message_transports => \@mtts } : { message_name => "Hold_Filled" };
269
    my $sending_params = @mtts ? { message_transports => \@mtts } : { message_name => "Hold_Reminder" };
270
270
271
271
272
    my %patrons;
272
    my %patrons;
273
- 

Return to bug 28153