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

(-)a/basket/sendbasket.pl (-2 / +2 lines)
Lines 65-71 if ( $email_add ) { Link Here
65
    my $iso2709;
65
    my $iso2709;
66
66
67
    foreach my $bib ( @bibs ) {
67
    foreach my $bib ( @bibs ) {
68
        my $biblio = Koha::Biblios->find( $biblionumber ) or next;
68
        my $biblio = Koha::Biblios->find( $bib ) or next;
69
        $iso2709 .= $biblio->metadata->record->as_usmarc();
69
        $iso2709 .= $biblio->metadata->record->as_usmarc();
70
    }
70
    }
71
71
Lines 85-91 if ( $email_add ) { Link Here
85
        );
85
        );
86
86
87
        my $letter = C4::Letters::GetPreparedLetter(
87
        my $letter = C4::Letters::GetPreparedLetter(
88
            module => 'catalog',
88
            module => 'catalogue',
89
            letter_code => 'CART',
89
            letter_code => 'CART',
90
            lang => $patron->lang,
90
            lang => $patron->lang,
91
            tables => {
91
            tables => {
(-)a/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.perl (-2 / +2 lines)
Lines 1-7 Link Here
1
$DBversion = 'XXX';
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES
3
    $dbh->do(q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES
4
('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi,
4
('catalogue','LIST','','Send list',1,'Your list: [% listname | html %]',"Hi,
5
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
5
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
6
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.
6
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.
7
<hr/>[% comment | html %]<hr/>
7
<hr/>[% comment | html %]<hr/>
Lines 25-31 Please note that the attached file is a MARC bibliographic records file which ca Link Here
25
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
25
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
26
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
26
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
27
<hr/></li>[% END %]</ol>", 'email','default' ),
27
<hr/></li>[% END %]</ol>", 'email','default' ),
28
        ('catalog','CART','','Send cart',0,'Your cart',"Hi,
28
        ('catalogue','CART','','Send cart',1,'Your cart',"Hi,
29
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
29
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
30
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.
30
Please note that the attached file is a MARC bibliographic records file which can be imported into personal bibliographic software like EndNote, Reference Manager or ProCite.
31
<hr/>[% comment | html %]<hr/>
31
<hr/>[% comment | html %]<hr/>
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-4 / +4 lines)
Lines 1699-1709 tables: Link Here
1699
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1699
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1700
            - "<p>Your library</p>"
1700
            - "<p>Your library</p>"
1701
1701
1702
        - module: catalog
1702
        - module: catalogue
1703
          code: LIST
1703
          code: LIST
1704
          branchcode: ""
1704
          branchcode: ""
1705
          name: "Send list"
1705
          name: "Send list"
1706
          is_html: 0
1706
          is_html: 1
1707
          title: "Your list: [% listname | html %]"
1707
          title: "Your list: [% listname | html %]"
1708
          message_transport_type: email
1708
          message_transport_type: email
1709
          lang: default
1709
          lang: default
Lines 1729-1739 tables: Link Here
1729
            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %][% item.location | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
1729
            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %][% item.location | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
1730
            - "<hr/></li>[% END %]</ol>"
1730
            - "<hr/></li>[% END %]</ol>"
1731
1731
1732
        - module: catalog
1732
        - module: catalogue
1733
          code: CART
1733
          code: CART
1734
          branchcode: ""
1734
          branchcode: ""
1735
          name: "Send cart"
1735
          name: "Send cart"
1736
          is_html: 0
1736
          is_html: 1
1737
          title: "Your cart"
1737
          title: "Your cart"
1738
          message_transport_type: email
1738
          message_transport_type: email
1739
          lang: default
1739
          lang: default
(-)a/opac/opac-sendbasket.pl (-2 / +2 lines)
Lines 66-72 if ( $email_add ) { Link Here
66
    my $iso2709;
66
    my $iso2709;
67
67
68
    foreach my $bib ( @bibs ) {
68
    foreach my $bib ( @bibs ) {
69
        my $biblio = Koha::Biblios->find( $biblionumber ) or next;
69
        my $biblio = Koha::Biblios->find( $bib ) or next;
70
        $iso2709 .= $biblio->metadata->record->as_usmarc();
70
        $iso2709 .= $biblio->metadata->record->as_usmarc();
71
    };
71
    };
72
72
Lines 86-92 if ( $email_add ) { Link Here
86
        );
86
        );
87
87
88
        my $letter = C4::Letters::GetPreparedLetter(
88
        my $letter = C4::Letters::GetPreparedLetter(
89
            module => 'catalog',
89
            module => 'catalogue',
90
            letter_code => 'CART',
90
            letter_code => 'CART',
91
            lang => $patron->lang,
91
            lang => $patron->lang,
92
            tables => {
92
            tables => {
(-)a/opac/opac-sendshelf.pl (-1 / +2 lines)
Lines 78-83 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
78
    my $contents = $shelf->get_contents;
78
    my $contents = $shelf->get_contents;
79
    my $iso2709;
79
    my $iso2709;
80
80
81
    my @biblionumbers;
81
    while ( my $content = $contents->next ) {
82
    while ( my $content = $contents->next ) {
82
        push @biblionumbers, $content->biblionumber;
83
        push @biblionumbers, $content->biblionumber;
83
        my $biblio = Koha::Biblios->find($content->biblionumber);
84
        my $biblio = Koha::Biblios->find($content->biblionumber);
Lines 101-107 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
101
         );
102
         );
102
103
103
        my $letter = C4::Letters::GetPreparedLetter(
104
        my $letter = C4::Letters::GetPreparedLetter(
104
            module => 'catalog',
105
            module => 'catalogue',
105
            letter_code => 'LIST',
106
            letter_code => 'LIST',
106
            lang => $patron->lang,
107
            lang => $patron->lang,
107
            tables => {
108
            tables => {
(-)a/virtualshelves/sendshelf.pl (-3 / +2 lines)
Lines 69-75 if ($to_address) { Link Here
69
        }
69
        }
70
    );
70
    );
71
71
72
    my $patron = Koha:::Patrons->find( $borrowernumber );
72
    my $patron = Koha::Patrons->find( $borrowernumber );
73
    my $user_email = $patron->first_valid_email_address;
73
    my $user_email = $patron->first_valid_email_address;
74
    my $contents = $shelf->get_contents;
74
    my $contents = $shelf->get_contents;
75
    my @biblionumbers;
75
    my @biblionumbers;
Lines 98-104 if ($to_address) { Link Here
98
        );
98
        );
99
99
100
        my $letter = C4::Letters::GetPreparedLetter(
100
        my $letter = C4::Letters::GetPreparedLetter(
101
            module => 'catalog',
101
            module => 'catalogue',
102
            letter_code => 'LIST',
102
            letter_code => 'LIST',
103
            lang => $patron->lang,
103
            lang => $patron->lang,
104
            tables => {
104
            tables => {
105
- 

Return to bug 3150