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

(-)a/basket/sendbasket.pl (-2 / +2 lines)
Lines 64-70 if ( $email_add ) { Link Here
64
    my $iso2709;
64
    my $iso2709;
65
65
66
    foreach my $bib ( @bibs ) {
66
    foreach my $bib ( @bibs ) {
67
        my $biblio = Koha::Biblios->find( $biblionumber ) or next;
67
        my $biblio = Koha::Biblios->find( $bib ) or next;
68
        $iso2709 .= $biblio->metadata->record->as_usmarc();
68
        $iso2709 .= $biblio->metadata->record->as_usmarc();
69
    }
69
    }
70
70
Lines 84-90 if ( $email_add ) { Link Here
84
        );
84
        );
85
85
86
        my $letter = C4::Letters::GetPreparedLetter(
86
        my $letter = C4::Letters::GetPreparedLetter(
87
            module => 'catalog',
87
            module => 'catalogue',
88
            letter_code => 'CART',
88
            letter_code => 'CART',
89
            lang => $patron->lang,
89
            lang => $patron->lang,
90
            tables => {
90
            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 1746-1756 tables: Link Here
1746
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1746
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1747
            - "<p>Your library</p>"
1747
            - "<p>Your library</p>"
1748
1748
1749
        - module: catalog
1749
        - module: catalogue
1750
          code: LIST
1750
          code: LIST
1751
          branchcode: ""
1751
          branchcode: ""
1752
          name: "Send list"
1752
          name: "Send list"
1753
          is_html: 0
1753
          is_html: 1
1754
          title: "Your list: [% listname | html %]"
1754
          title: "Your list: [% listname | html %]"
1755
          message_transport_type: email
1755
          message_transport_type: email
1756
          lang: default
1756
          lang: default
Lines 1776-1786 tables: Link Here
1776
            - "[% 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 %]"
1776
            - "[% 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 %]"
1777
            - "<hr/></li>[% END %]</ol>"
1777
            - "<hr/></li>[% END %]</ol>"
1778
1778
1779
        - module: catalog
1779
        - module: catalogue
1780
          code: CART
1780
          code: CART
1781
          branchcode: ""
1781
          branchcode: ""
1782
          name: "Send cart"
1782
          name: "Send cart"
1783
          is_html: 0
1783
          is_html: 1
1784
          title: "Your cart"
1784
          title: "Your cart"
1785
          message_transport_type: email
1785
          message_transport_type: email
1786
          lang: default
1786
          lang: default
(-)a/opac/opac-sendbasket.pl (-2 / +2 lines)
Lines 62-68 if ( $email_add ) { Link Here
62
    my @bibs = split( /\//, $bib_list );
62
    my @bibs = split( /\//, $bib_list );
63
    my $iso2709;
63
    my $iso2709;
64
    foreach my $bib ( @bibs ) {
64
    foreach my $bib ( @bibs ) {
65
        my $biblio = Koha::Biblios->find( $biblionumber ) or next;
65
        my $biblio = Koha::Biblios->find( $bib ) or next;
66
        $iso2709 .= $biblio->metadata->record->as_usmarc();
66
        $iso2709 .= $biblio->metadata->record->as_usmarc();
67
    };
67
    };
68
68
Lines 82-88 if ( $email_add ) { Link Here
82
        );
82
        );
83
83
84
        my $letter = C4::Letters::GetPreparedLetter(
84
        my $letter = C4::Letters::GetPreparedLetter(
85
            module => 'catalog',
85
            module => 'catalogue',
86
            letter_code => 'CART',
86
            letter_code => 'CART',
87
            lang => $patron->lang,
87
            lang => $patron->lang,
88
            tables => {
88
            tables => {
(-)a/opac/opac-sendshelf.pl (-1 / +2 lines)
Lines 75-80 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
75
    my $contents = $shelf->get_contents;
75
    my $contents = $shelf->get_contents;
76
    my $iso2709;
76
    my $iso2709;
77
77
78
    my @biblionumbers;
78
    while ( my $content = $contents->next ) {
79
    while ( my $content = $contents->next ) {
79
        push @biblionumbers, $content->biblionumber;
80
        push @biblionumbers, $content->biblionumber;
80
        my $biblio = Koha::Biblios->find($content->biblionumber);
81
        my $biblio = Koha::Biblios->find($content->biblionumber);
Lines 98-104 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
98
         );
99
         );
99
100
100
        my $letter = C4::Letters::GetPreparedLetter(
101
        my $letter = C4::Letters::GetPreparedLetter(
101
            module => 'catalog',
102
            module => 'catalogue',
102
            letter_code => 'LIST',
103
            letter_code => 'LIST',
103
            lang => $patron->lang,
104
            lang => $patron->lang,
104
            tables => {
105
            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