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 2449-2451 tables: Link Here
2449
            - "    [%~ END ~%]"
2449
            - "    [%~ END ~%]"
2450
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2450
            - "    [% item_attribute.processing_attribute.name %]: [% value %]"
2451
            - "[% END %]"
2451
            - "[% END %]"
2452
- 
2452
2453
        - module: reserves
2454
          code: HOLDPLACED_PATRON
2455
          branchcode: ""
2456
          name: "Hold is confirmed"
2457
          is_html: 0
2458
          title: "Your hold on [% hold.biblio.title %] is confirmed"
2459
          message_transport_type: email
2460
          lang: default
2461
          content:
2462
            - "Hello [% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %]),"
2463
            - "Your hold on [% hold.biblio.title %] ([% hold.biblio.id %]) has been confirmed."
2464
            - "You will be notified by the library when your item is available for pickup."
2465
            - "Thank you!"

Return to bug 17617