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

(-)a/installer/data/mysql/atomicupdate/bug_17617_-_add_HOLDPLACED_PATRON_notice.pl (+19 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "17617",
5
    description => "Notify patron when their hold has been placed",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, message_transport_type, lang, content) VALUES ("reserves", "HOLDPLACED_PATRON", "", "Hold is confirmed", 0, "Your hold on [% hold.biblio.title %] is confirmed", "email", "default", "Hello [% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %]),
12
Your hold on [% hold.biblio.title %] ([% hold.biblio.id %]) has been confirmed.
13
You will be notified by the library when your item is available for pickup.
14
Thank you!")}
15
        );
16
17
        say $out "Added notice 'HOLDPLACED_PATRON'";
18
    },
19
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +14 lines)
Lines 2455-2457 tables: Link Here
2455
            - "    [%~ END ~%]"
2455
            - "    [%~ END ~%]"
2456
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2456
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2457
            - "[% END %]"
2457
            - "[% END %]"
2458
- 
2458
2459
        - module: reserves
2460
          code: HOLDPLACED_PATRON
2461
          branchcode: ""
2462
          name: "Hold is confirmed"
2463
          is_html: 0
2464
          title: "Your hold on [% hold.biblio.title %] is confirmed"
2465
          message_transport_type: email
2466
          lang: default
2467
          content:
2468
            - "Hello [% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %]),"
2469
            - "Your hold on [% hold.biblio.title %] ([% hold.biblio.id %]) has been confirmed."
2470
            - "You will be notified by the library when your item is available for pickup."
2471
            - "Thank you!"

Return to bug 17617