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 2187-2197 tables: Link Here
2187
            - "</ul>"
2187
            - "</ul>"
2188
            - "</p>"
2188
            - "</p>"
2189
2189
2190
        - module: catalog
2190
        - module: catalogue
2191
          code: LIST
2191
          code: LIST
2192
          branchcode: ""
2192
          branchcode: ""
2193
          name: "Send list"
2193
          name: "Send list"
2194
          is_html: 0
2194
          is_html: 1
2195
          title: "Your list: [% listname | html %]"
2195
          title: "Your list: [% listname | html %]"
2196
          message_transport_type: email
2196
          message_transport_type: email
2197
          lang: default
2197
          lang: default
Lines 2217-2227 tables: Link Here
2217
            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
2217
            - "[% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% Branches.GetName( item.holdingbranch ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %][% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %][% item.barcode | html %]</li>[% END %]</ul>[% END %]"
2218
            - "<hr/></li>[% END %]</ol>"
2218
            - "<hr/></li>[% END %]</ol>"
2219
2219
2220
        - module: catalog
2220
        - module: catalogue
2221
          code: CART
2221
          code: CART
2222
          branchcode: ""
2222
          branchcode: ""
2223
          name: "Send cart"
2223
          name: "Send cart"
2224
          is_html: 0
2224
          is_html: 1
2225
          title: "Your cart"
2225
          title: "Your cart"
2226
          message_transport_type: email
2226
          message_transport_type: email
2227
          lang: default
2227
          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