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

(-)a/basket/sendbasket.pl (-2 / +5 lines)
Lines 56-62 if ( $email_add ) { Link Here
56
            token  => scalar $query->param('csrf_token'),
56
            token  => scalar $query->param('csrf_token'),
57
        });
57
        });
58
58
59
    my $patron = Koha:::Patrons->find( $borrowernumber );
59
    my $patron = Koha::Patrons->find( $borrowernumber );
60
    my $user_email = $patron->first_valid_email_address;
60
61
61
    my $comment = $query->param('comment');
62
    my $comment = $query->param('comment');
62
63
Lines 71-76 if ( $email_add ) { Link Here
71
    if ( !defined $iso2709 ) {
72
    if ( !defined $iso2709 ) {
72
        carp "Error sending mail: empty basket";
73
        carp "Error sending mail: empty basket";
73
        $template->param( error => 1 );
74
        $template->param( error => 1 );
75
    } elsif ( !defined $user_email or $user_email eq '' ) {
76
        carp "Error sending mail: sender's email address is invalid";
77
        $template->param( error => 1 );
74
    } else {
78
    } else {
75
        my %loops = (
79
        my %loops = (
76
            biblio => \@bibs,
80
            biblio => \@bibs,
Lines 98-104 if ( $email_add ) { Link Here
98
            content => Encode::encode("UTF-8", $iso2709),
102
            content => Encode::encode("UTF-8", $iso2709),
99
        };
103
        };
100
104
101
        my $user_email = $patron->first_valid_email_address || C4::Context->preference('KohaAdminEmailAddress');
102
        C4::Letters::EnqueueLetter({
105
        C4::Letters::EnqueueLetter({
103
            letter => $letter,
106
            letter => $letter,
104
            message_transport_type => 'email',
107
            message_transport_type => 'email',
(-)a/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.perl (-216 / +48 lines)
Lines 1-222 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',1,'Your list: [% listname | html %]',"<p>Hi,</p>
4
('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi,
5
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>
5
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
6
<p>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.</p>
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/>
7
<hr/>[% comment | html %]<hr/>
8
<p>[% comment | html %]</p>
8
<ol>[% FOREACH biblio IN biblios %]<li>
9
<hr/>
9
    [% biblio.title | html %]
10
<ol>
10
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
11
[% FOREACH biblio IN biblios %]
11
    [% biblio.part_number | html %] [% biblio.part_name | html %]
12
    <li>
12
    [% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]
13
        <span>
13
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
14
            [% biblio.title | html %]
14
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
15
            [% IF ( biblio.subtitle ) %]
15
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
16
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
16
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
17
                    [% subtitle | html %]
17
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
18
                [% END %]
18
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
19
            [% END %]
19
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
20
            [% biblio.part_number | html %] [% biblio.part_name | html %]
20
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
21
        </span>
21
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
22
        <p>
22
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
23
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
23
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
24
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
24
    [% item.location | html %]
25
                [% IF ( biblio.get_authors_from_MARC ) %]
25
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
26
                    [% IF ( biblio.author ) %]; [% END %]
26
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
27
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
27
<hr/></li>[% END %]</ol>", 'email','default' ),
28
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
28
        ('catalog','CART','','Send cart',0,'Your cart',"Hi,
29
                            [% subfield.separator | html %][% subfield.value | html %]
29
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
30
                        [% END %]
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
                        [% UNLESS ( loop.last ) %];[% END %]
31
<hr/>[% comment | html %]<hr/>
32
                    [% END %]
32
<ol>[% FOREACH biblio IN biblios %]<li>
33
                [% END %]
33
    [% biblio.title | html %]
34
                </span><br/>
34
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
35
            [% END %]
35
    [% biblio.part_number | html %] [% biblio.part_name | html %]
36
            [% SET biblioitem = biblio.biblioitem %]
36
    [% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]
37
            [% IF ( biblioitem.isbn ) %]
37
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
38
                <span>
38
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
39
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
39
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
40
                        [% isbn | html %]
40
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
41
                        [% UNLESS ( loop.last ) %]; [% END %]
41
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
42
                    [% END %]
42
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
43
                </span><br/>
43
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
44
            [% END %]
44
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
45
            [% IF ( biblioitem.publishercode ) %]
45
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
46
                <span>
46
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
47
                    Published by: [% biblioitem.publishercode | html %]
47
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
48
                    [% IF ( biblioitem.publicationyear ) %]
48
    [% item.location | html %]
49
                        in [% biblioitem.publicationyear | html %]
49
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
50
                    [% END %]
50
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
51
                    [% IF ( biblioitem.pages ) %]
51
<hr/></li>[% END %]</ol>",'email','default') });
52
                        , [% biblioitem.pages | html %]
53
                    [% END %]
54
                </span><br/>
55
            [% END %]
56
            [% IF ( biblio.seriestitle ) %]
57
                <span>
58
                    Collection: [% biblio.seriestitle | html %]
59
                </span><br/>
60
            [% END %]
61
            [% IF ( biblio.copyrightdate ) %]
62
                <span>
63
                    Copyright year: [% biblio.copyrightdate | html %]
64
                </span><br/>
65
            [% END %]
66
            [% IF ( biblio.notes ) %]
67
                <span>
68
                    Notes: [% biblio.notes | html %]
69
                </span><br/>
70
            [% END %]
71
            [% IF ( biblio.unititle ) %]
72
                <span>
73
                    Unified title: [% biblio.unititle | html %]
74
                </span><br/>
75
            [% END %]
76
            [% IF ( biblio.serial ) %]
77
                <span>
78
                    Serial: [% biblio.serial | html %]
79
                </span><br/>
80
            [% END %]
81
            [% IF ( biblioitem.lccn ) %]
82
                <span>
83
                    LCCN: [% biblioitem.lccn | html %]
84
                </span><br/>
85
            [% END %]
86
            [% IF ( biblioitem.url ) %]
87
                <span>
88
                    URL: [% biblioitem.url | html %]
89
                </span>
90
            [% END %]
91
        </p>
92
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
93
        [% IF ( OPACBaseURL ) %]
94
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
95
        [% END %]
96
        [% IF ( biblio.items.count > 0 ) %]
97
            <p>Items:
98
                <ul>
99
                    [% FOREACH item IN biblio.items %]<li>
100
                        [% item.holding_branch.branchname | html %]
101
                        [% item.location | html %]
102
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
103
                        [% item.barcode | html %]
104
                    </li>[% END %]
105
                </ul>
106
            </p>
107
        [% END %]
108
        <hr/>
109
    </li>
110
[% END %]
111
</ol>", 'email','default' ),
112
        ('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p>
113
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>
114
<p>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.</p>
115
<hr/>
116
<p>[% comment | html %]</p>
117
<hr/>
118
<ol>
119
[% FOREACH biblio IN biblios %]
120
    <li>
121
        <span>
122
            [% biblio.title | html %]
123
            [% IF ( biblio.subtitle ) %]
124
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
125
                    [% subtitle | html %]
126
                [% END %]
127
            [% END %]
128
            [% biblio.part_number | html %] [% biblio.part_name | html %]
129
        </span>
130
        <p>
131
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
132
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
133
                [% IF ( biblio.get_authors_from_MARC ) %]
134
                    [% IF ( biblio.author ) %]; [% END %]
135
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
136
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
137
                            [% subfield.separator | html %][% subfield.value | html %]
138
                        [% END %]
139
                        [% UNLESS ( loop.last ) %];[% END %]
140
                    [% END %]
141
                [% END %]
142
                </span><br/>
143
            [% END %]
144
            [% SET biblioitem = biblio.biblioitem %]
145
            [% IF ( biblioitem.isbn ) %]
146
                <span>
147
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
148
                        [% isbn | html %]
149
                        [% UNLESS ( loop.last ) %]; [% END %]
150
                    [% END %]
151
                </span><br/>
152
            [% END %]
153
            [% IF ( biblioitem.publishercode ) %]
154
                <span>
155
                    Published by: [% biblioitem.publishercode | html %]
156
                    [% IF ( biblioitem.publicationyear ) %]
157
                        in [% biblioitem.publicationyear | html %]
158
                    [% END %]
159
                    [% IF ( biblioitem.pages ) %]
160
                        , [% biblioitem.pages | html %]
161
                    [% END %]
162
                </span><br/>
163
            [% END %]
164
            [% IF ( biblio.seriestitle ) %]
165
                <span>
166
                    Collection: [% biblio.seriestitle | html %]
167
                </span><br/>
168
            [% END %]
169
            [% IF ( biblio.copyrightdate ) %]
170
                <span>
171
                    Copyright year: [% biblio.copyrightdate | html %]
172
                </span><br/>
173
            [% END %]
174
            [% IF ( biblio.notes ) %]
175
                <span>
176
                    Notes: [% biblio.notes | html %]
177
                </span><br/>
178
            [% END %]
179
            [% IF ( biblio.unititle ) %]
180
                <span>
181
                    Unified title: [% biblio.unititle | html %]
182
                </span><br/>
183
            [% END %]
184
            [% IF ( biblio.serial ) %]
185
                <span>
186
                    Serial: [% biblio.serial | html %]
187
                </span><br/>
188
            [% END %]
189
            [% IF ( biblioitem.lccn ) %]
190
                <span>
191
                    LCCN: [% biblioitem.lccn | html %]
192
                </span><br/>
193
            [% END %]
194
            [% IF ( biblioitem.url ) %]
195
                <span>
196
                    URL: [% biblioitem.url | html %]
197
                </span>
198
            [% END %]
199
        </p>
200
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
201
        [% IF ( OPACBaseURL ) %]
202
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
203
        [% END %]
204
        [% IF ( biblio.items.count > 0 ) %]
205
            <p>Items:
206
                <ul>
207
                    [% FOREACH item IN biblio.items %]<li>
208
                        [% item.holding_branch.branchname | html %]
209
                        [% item.location | html %]
210
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
211
                        [% item.barcode | html %]
212
                    </li>[% END %]
213
                </ul>
214
            </p>
215
        [% END %]
216
        <hr/>
217
    </li>
218
[% END %]
219
</ol>",'email','default') });
220
52
221
    NewVersion( $DBversion, 3150, 'Add LIST and CART notices' );
53
    NewVersion( $DBversion, 3150, 'Add LIST and CART notices' );
222
}
54
}
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-216 / +41 lines)
Lines 1637-1870 tables: Link Here
1637
          code: LIST
1637
          code: LIST
1638
          branchcode: ""
1638
          branchcode: ""
1639
          name: "Send list"
1639
          name: "Send list"
1640
          is_html: 1
1640
          is_html: 0
1641
          title: "Your list: [% listname | html %]"
1641
          title: "Your list: [% listname | html %]"
1642
          message_transport_type: email
1642
          message_transport_type: email
1643
          lang: default
1643
          lang: default
1644
          content:
1644
          content:
1645
            - "<p>Hi,</p>"
1645
            - "Hi,"
1646
            - "<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>"
1646
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
1647
            - "<p>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.</p>"
1647
            - "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."
1648
            - "<hr/>"
1648
            - "<hr/>[% comment | html %]<hr/>"
1649
            - "<p>[% comment | html %]</p>"
1649
            - "<ol>[% FOREACH biblio IN biblios %]<li>"
1650
            - "<hr/>"
1651
            - "<ol>"
1652
            - "[% FOREACH biblio IN biblios %]"
1653
            - "<li>"
1654
            - "<span>"
1655
            - "[% biblio.title | html %]"
1650
            - "[% biblio.title | html %]"
1656
            - "[% IF ( biblio.subtitle ) %]"
1651
- "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
1657
            - "[% FOREACH subtitle IN biblio.subtitle.split(' | ') %]"
1652
            - "[% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]"
1658
            - "[% subtitle | html %]"
1653
            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
1659
            - "[% END %]"
1654
            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
1660
            - "[% END %]"
1655
            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
1661
            - "[% biblio.part_number | html %] [% biblio.part_name | html %]"
1656
            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
1662
            - "</span>"
1657
            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
1663
            - "<p>"
1658
            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
1664
            - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
1659
            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
1665
            - "<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]"
1660
            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
1666
            - "[% IF ( biblio.get_authors_from_MARC ) %]"
1661
            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
1667
            - "[% IF ( biblio.author ) %]; [% END %]"
1662
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
1668
            - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
1663
            - "[% 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 %]"
1669
            - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
1664
            - "<hr/></li>[% END %]</ol>"
1670
            - "[% subfield.separator | html %][% subfield.value | html %]"
1671
            - "[% END %]"
1672
            - "[% UNLESS ( loop.last ) %];[% END %]"
1673
            - "[% END %]"
1674
            - "[% END %]"
1675
            - "</span><br/>"
1676
            - "[% END %]"
1677
            - "[% SET biblioitem = biblio.biblioitem %]"
1678
            - "[% IF ( biblioitem.isbn ) %]"
1679
            - "<span>"
1680
            - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
1681
            - "[% isbn | html %]"
1682
            - "[% UNLESS ( loop.last ) %]; [% END %]"
1683
            - "[% END %]"
1684
            - "</span><br/>"
1685
            - "[% END %]"
1686
            - "[% IF ( biblioitem.publishercode ) %]"
1687
            - "<span>"
1688
            - "Published by: [% biblioitem.publishercode | html %]"
1689
            - "[% IF ( biblioitem.publicationyear ) %]"
1690
            - "in [% biblioitem.publicationyear | html %]"
1691
            - "[% END %]"
1692
            - "[% IF ( biblioitem.pages ) %]"
1693
            - ", [% biblioitem.pages | html %]"
1694
            - "[% END %]"
1695
            - "</span><br/>"
1696
            - "[% END %]"
1697
            - "[% IF ( biblio.seriestitle ) %]"
1698
            - "<span>"
1699
            - "Collection: [% biblio.seriestitle | html %]"
1700
            - "</span><br/>"
1701
            - "[% END %]"
1702
            - "[% IF ( biblio.copyrightdate ) %]"
1703
            - "<span>"
1704
            - "Copyright year: [% biblio.copyrightdate | html %]"
1705
            - "</span><br/>"
1706
            - "[% END %]"
1707
            - "[% IF ( biblio.notes ) %]"
1708
            - "<span>"
1709
            - "Notes: [% biblio.notes | html %]"
1710
            - "</span><br/>"
1711
            - "[% END %]"
1712
            - "[% IF ( biblio.unititle ) %]"
1713
            - "<span>"
1714
            - "Unified title: [% biblio.unititle | html %]"
1715
            - "</span><br/>"
1716
            - "[% END %]"
1717
            - "[% IF ( biblio.serial ) %]"
1718
            - "<span>"
1719
            - "Serial: [% biblio.serial | html %]"
1720
            - "</span><br/>"
1721
            - "[% END %]"
1722
            - "[% IF ( biblioitem.lccn ) %]"
1723
            - "<span>"
1724
            - "LCCN: [% biblioitem.lccn | html %]"
1725
            - "</span><br/>"
1726
            - "[% END %]"
1727
            - "[% IF ( biblioitem.url ) %]"
1728
            - "<span>"
1729
            - "URL: [% biblioitem.url | html %]"
1730
            - "</span>"
1731
            - "[% END %]"
1732
            - "</p>"
1733
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]"
1734
            - "[% IF ( OPACBaseURL ) %]"
1735
            - "<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>"
1736
            - "[% END %]"
1737
            - "[% IF ( biblio.items.count > 0 ) %]"
1738
            - "<p>Items:"
1739
            - "<ul>"
1740
            - "[% FOREACH item IN biblio.items %]<li>"
1741
            - "[% item.holding_branch.branchname | html %]"
1742
            - "[% item.location | html %]"
1743
            - "[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]"
1744
            - "[% item.barcode | html %]"
1745
            - "</li>[% END %]"
1746
            - "</ul>"
1747
            - "</p>"
1748
            - "[% END %]"
1749
            - "<hr/>"
1750
            - "</li>"
1751
            - "[% END %]"
1752
            - "</ol>"
1753
1665
1754
        - module: catalog
1666
        - module: catalog
1755
          code: CART
1667
          code: CART
1756
          branchcode: ""
1668
          branchcode: ""
1757
          name: "Send cart"
1669
          name: "Send cart"
1758
          is_html: 1
1670
          is_html: 0
1759
          title: "Your cart"
1671
          title: "Your cart"
1760
          message_transport_type: email
1672
          message_transport_type: email
1761
          lang: default
1673
          lang: default
1762
          content:
1674
          content:
1763
            - "<p>Hi,</p>"
1675
            - "Hi,"
1764
            - "<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>"
1676
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog."
1765
            - "<p>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.</p>"
1677
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
1766
            - "<hr/>"
1678
            - "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."
1767
            - "<p>[% comment | html %]</p>"
1679
            - "<hr/>[% comment | html %]<hr/>"
1768
            - "<hr/>"
1680
            - "<ol>[% FOREACH biblio IN biblios %]<li>"
1769
            - "<ol>"
1770
            - "[% FOREACH biblio IN biblios %]"
1771
            - "<li>"
1772
            - "<span>"
1773
            - "[% biblio.title | html %]"
1681
            - "[% biblio.title | html %]"
1774
            - "[% IF ( biblio.subtitle ) %]"
1682
- "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
1775
            - "[% FOREACH subtitle IN biblio.subtitle.split(' | ') %]"
1683
            - "[% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]"
1776
            - "[% subtitle | html %]"
1684
            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
1777
            - "[% END %]"
1685
            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
1778
            - "[% END %]"
1686
            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
1779
            - "[% biblio.part_number | html %] [% biblio.part_name | html %]"
1687
            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
1780
            - "</span>"
1688
            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
1781
            - "<p>"
1689
            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
1782
            - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
1690
            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
1783
            - "<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]"
1691
            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
1784
            - "[% IF ( biblio.get_authors_from_MARC ) %]"
1692
            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
1785
            - "[% IF ( biblio.author ) %]; [% END %]"
1693
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
1786
            - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
1694
            - "[% 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 %]"
1787
            - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
1695
            - "<hr/></li>[% END %]</ol>"
1788
            - "[% subfield.separator | html %][% subfield.value | html %]"
1789
            - "[% END %]"
1790
            - "[% UNLESS ( loop.last ) %];[% END %]"
1791
            - "[% END %]"
1792
            - "[% END %]"
1793
            - "</span><br/>"
1794
            - "[% END %]"
1795
            - "[% SET biblioitem = biblio.biblioitem %]"
1796
            - "[% IF ( biblioitem.isbn ) %]"
1797
            - "<span>"
1798
            - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
1799
            - "[% isbn | html %]"
1800
            - "[% UNLESS ( loop.last ) %]; [% END %]"
1801
            - "[% END %]"
1802
            - "</span><br/>"
1803
            - "[% END %]"
1804
            - "[% IF ( biblioitem.publishercode ) %]"
1805
            - "<span>"
1806
            - "Published by: [% biblioitem.publishercode | html %]"
1807
            - "[% IF ( biblioitem.publicationyear ) %]"
1808
            - "in [% biblioitem.publicationyear | html %]"
1809
            - "[% END %]"
1810
            - "[% IF ( biblioitem.pages ) %]"
1811
            - ", [% biblioitem.pages | html %]"
1812
            - "[% END %]"
1813
            - "</span><br/>"
1814
            - "[% END %]"
1815
            - "[% IF ( biblio.seriestitle ) %]"
1816
            - "<span>"
1817
            - "Collection: [% biblio.seriestitle | html %]"
1818
            - "</span><br/>"
1819
            - "[% END %]"
1820
            - "[% IF ( biblio.copyrightdate ) %]"
1821
            - "<span>"
1822
            - "Copyright year: [% biblio.copyrightdate | html %]"
1823
            - "</span><br/>"
1824
            - "[% END %]"
1825
            - "[% IF ( biblio.notes ) %]"
1826
            - "<span>"
1827
            - "Notes: [% biblio.notes | html %]"
1828
            - "</span><br/>"
1829
            - "[% END %]"
1830
            - "[% IF ( biblio.unititle ) %]"
1831
            - "<span>"
1832
            - "Unified title: [% biblio.unititle | html %]"
1833
            - "</span><br/>"
1834
            - "[% END %]"
1835
            - "[% IF ( biblio.serial ) %]"
1836
            - "<span>"
1837
            - "Serial: [% biblio.serial | html %]"
1838
            - "</span><br/>"
1839
            - "[% END %]"
1840
            - "[% IF ( biblioitem.lccn ) %]"
1841
            - "<span>"
1842
            - "LCCN: [% biblioitem.lccn | html %]"
1843
            - "</span><br/>"
1844
            - "[% END %]"
1845
            - "[% IF ( biblioitem.url ) %]"
1846
            - "<span>"
1847
            - "URL: [% biblioitem.url | html %]"
1848
            - "</span>"
1849
            - "[% END %]"
1850
            - "</p>"
1851
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]"
1852
            - "[% IF ( OPACBaseURL ) %]"
1853
            - "<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>"
1854
            - "[% END %]"
1855
            - "[% IF ( biblio.items.count > 0 ) %]"
1856
            - "<p>Items:"
1857
            - "<ul>"
1858
            - "[% FOREACH item IN biblio.items %]<li>"
1859
            - "[% item.holding_branch.branchname | html %]"
1860
            - "[% item.location | html %]"
1861
            - "[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]"
1862
            - "[% item.barcode | html %]"
1863
            - "</li>[% END %]"
1864
            - "</ul>"
1865
            - "</p>"
1866
            - "[% END %]"
1867
            - "<hr/>"
1868
            - "</li>"
1869
            - "[% END %]"
1870
            - "</ol>"
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql (-216 / +48 lines)
Lines 504-722 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
504
[% END %]
504
[% END %]
505
", 'email');
505
", 'email');
506
506
507
INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('catalog','LIST','','Send list',1,'Your list: [% listname | html %]',"<p>Hi,</p>
507
INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('catalog','LIST','','Send list',1,'Your list: [% listname | html %]',"Hi,
508
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>
508
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
509
<p>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.</p>
509
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.
510
<hr/>
510
<hr/>[% comment | html %]<hr/>
511
<p>[% comment | html %]</p>
511
<ol>[% FOREACH biblio IN biblios %]<li>
512
<hr/>
512
    [% biblio.title | html %]
513
<ol>
513
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
514
[% FOREACH biblio IN biblios %]
514
    [% biblio.part_number | html %] [% biblio.part_name | html %]
515
    <li>
515
    [% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]
516
        <span>
516
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
517
            [% biblio.title | html %]
517
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
518
            [% IF ( biblio.subtitle ) %]
518
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
519
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
519
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
520
                    [% subtitle | html %]
520
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
521
                [% END %]
521
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
522
            [% END %]
522
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
523
            [% biblio.part_number | html %] [% biblio.part_name | html %]
523
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
524
        </span>
524
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
525
        <p>
525
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
526
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
526
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
527
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
527
    [% item.location | html %]
528
                [% IF ( biblio.get_authors_from_MARC ) %]
528
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
529
                    [% IF ( biblio.author ) %]; [% END %]
529
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
530
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
530
<hr/></li>[% END %]</ol>", 'email','default' ),
531
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
531
        ('catalog','CART','','Send cart',0,'Your cart',"Hi,
532
                            [% subfield.separator | html %][% subfield.value | html %]
532
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
533
                        [% END %]
533
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.
534
                        [% UNLESS ( loop.last ) %];[% END %]
534
<hr/>[% comment | html %]<hr/>
535
                    [% END %]
535
<ol>[% FOREACH biblio IN biblios %]<li>
536
                [% END %]
536
    [% biblio.title | html %]
537
                </span><br/>
537
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
538
            [% END %]
538
    [% biblio.part_number | html %] [% biblio.part_name | html %]
539
            [% SET biblioitem = biblio.biblioitem %]
539
    [% IF ( biblio.author || biblio.get_marc_authors ) %]Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %][% IF ( biblio.get_marc_authors ) %][% IF ( biblio.author ) %]; [% END %][% FOREACH author IN biblio.get_marc_authors %][% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %][% subfield.separator | html %][% subfield.value | html %][% END %][% UNLESS ( loop.last ) %];[% END %][% END %][% END %][% END %]
540
            [% IF ( biblioitem.isbn ) %]
540
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
541
                <span>
541
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
542
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
542
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
543
                        [% isbn | html %]
543
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
544
                        [% UNLESS ( loop.last ) %]; [% END %]
544
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
545
                    [% END %]
545
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
546
                </span><br/>
546
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
547
            [% END %]
547
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
548
            [% IF ( biblioitem.publishercode ) %]
548
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
549
                <span>
549
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
550
                    Published by: [% biblioitem.publishercode | html %]
550
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
551
                    [% IF ( biblioitem.publicationyear ) %]
551
    [% item.location | html %]
552
                        in [% biblioitem.publicationyear | html %]
552
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
553
                    [% END %]
553
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
554
                    [% IF ( biblioitem.pages ) %]
554
<hr/></li>[% END %]</ol>",'email','default');
555
                        , [% biblioitem.pages | html %]
556
                    [% END %]
557
                </span><br/>
558
            [% END %]
559
            [% IF ( biblio.seriestitle ) %]
560
                <span>
561
                    Collection: [% biblio.seriestitle | html %]
562
                </span><br/>
563
            [% END %]
564
            [% IF ( biblio.copyrightdate ) %]
565
                <span>
566
                    Copyright year: [% biblio.copyrightdate | html %]
567
                </span><br/>
568
            [% END %]
569
            [% IF ( biblio.notes ) %]
570
                <span>
571
                    Notes: [% biblio.notes | html %]
572
                </span><br/>
573
            [% END %]
574
            [% IF ( biblio.unititle ) %]
575
                <span>
576
                    Unified title: [% biblio.unititle | html %]
577
                </span><br/>
578
            [% END %]
579
            [% IF ( biblio.serial ) %]
580
                <span>
581
                    Serial: [% biblio.serial | html %]
582
                </span><br/>
583
            [% END %]
584
            [% IF ( biblioitem.lccn ) %]
585
                <span>
586
                    LCCN: [% biblioitem.lccn | html %]
587
                </span><br/>
588
            [% END %]
589
            [% IF ( biblioitem.url ) %]
590
                <span>
591
                    URL: [% biblioitem.url | html %]
592
                </span>
593
            [% END %]
594
        </p>
595
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
596
        [% IF ( OPACBaseURL ) %]
597
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
598
        [% END %]
599
        [% IF ( biblio.items.count > 0 ) %]
600
            <p>Items:
601
                <ul>
602
                    [% FOREACH item IN biblio.items %]<li>
603
                        [% item.holding_branch.branchname | html %]
604
                        [% item.location | html %]
605
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
606
                        [% item.barcode | html %]
607
                    </li>[% END %]
608
                </ul>
609
            </p>
610
        [% END %]
611
        <hr/>
612
    </li>
613
[% END %]
614
</ol>", 'email','default' ),
615
('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p>
616
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>
617
<p>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.</p>
618
<hr/>
619
<p>[% comment | html %]</p>
620
<hr/>
621
<ol>
622
[% FOREACH biblio IN biblios %]
623
    <li>
624
        <span>
625
            [% biblio.title | html %]
626
            [% IF ( biblio.subtitle ) %]
627
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
628
                    [% subtitle | html %]
629
                [% END %]
630
            [% END %]
631
            [% biblio.part_number | html %] [% biblio.part_name | html %]
632
        </span>
633
        <p>
634
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
635
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
636
                [% IF ( biblio.get_authors_from_MARC ) %]
637
                    [% IF ( biblio.author ) %]; [% END %]
638
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
639
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
640
                            [% subfield.separator | html %][% subfield.value | html %]
641
                        [% END %]
642
                        [% UNLESS ( loop.last ) %];[% END %]
643
                    [% END %]
644
                [% END %]
645
                </span><br/>
646
            [% END %]
647
            [% SET biblioitem = biblio.biblioitem %]
648
            [% IF ( biblioitem.isbn ) %]
649
                <span>
650
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
651
                        [% isbn | html %]
652
                        [% UNLESS ( loop.last ) %]; [% END %]
653
                    [% END %]
654
                </span><br/>
655
            [% END %]
656
            [% IF ( biblioitem.publishercode ) %]
657
                <span>
658
                    Published by: [% biblioitem.publishercode | html %]
659
                    [% IF ( biblioitem.publicationyear ) %]
660
                        in [% biblioitem.publicationyear | html %]
661
                    [% END %]
662
                    [% IF ( biblioitem.pages ) %]
663
                        , [% biblioitem.pages | html %]
664
                    [% END %]
665
                </span><br/>
666
            [% END %]
667
            [% IF ( biblio.seriestitle ) %]
668
                <span>
669
                    Collection: [% biblio.seriestitle | html %]
670
                </span><br/>
671
            [% END %]
672
            [% IF ( biblio.copyrightdate ) %]
673
                <span>
674
                    Copyright year: [% biblio.copyrightdate | html %]
675
                </span><br/>
676
            [% END %]
677
            [% IF ( biblio.notes ) %]
678
                <span>
679
                    Notes: [% biblio.notes | html %]
680
                </span><br/>
681
            [% END %]
682
            [% IF ( biblio.unititle ) %]
683
                <span>
684
                    Unified title: [% biblio.unititle | html %]
685
                </span><br/>
686
            [% END %]
687
            [% IF ( biblio.serial ) %]
688
                <span>
689
                    Serial: [% biblio.serial | html %]
690
                </span><br/>
691
            [% END %]
692
            [% IF ( biblioitem.lccn ) %]
693
                <span>
694
                    LCCN: [% biblioitem.lccn | html %]
695
                </span><br/>
696
            [% END %]
697
            [% IF ( biblioitem.url ) %]
698
                <span>
699
                    URL: [% biblioitem.url | html %]
700
                </span>
701
            [% END %]
702
        </p>
703
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
704
        [% IF ( OPACBaseURL ) %]
705
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
706
        [% END %]
707
        [% IF ( biblio.items.count > 0 ) %]
708
            <p>Items:
709
                <ul>
710
                    [% FOREACH item IN biblio.items %]<li>
711
                        [% item.holding_branch.branchname | html %]
712
                        [% item.location | html %]
713
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
714
                        [% item.barcode | html %]
715
                    </li>[% END %]
716
                </ul>
717
            </p>
718
        [% END %]
719
        <hr/>
720
    </li>
721
[% END %]
722
</ol>",'email','default');
(-)a/opac/opac-sendbasket.pl (-1 / +4 lines)
Lines 58-63 if ( $email_add ) { Link Here
58
    });
58
    });
59
59
60
    my $patron = Koha::Patrons->find( $borrowernumber );
60
    my $patron = Koha::Patrons->find( $borrowernumber );
61
    my $user_email = $patron->first_valid_email_address;
61
62
62
    my $comment    = $query->param('comment');
63
    my $comment    = $query->param('comment');
63
64
Lines 72-77 if ( $email_add ) { Link Here
72
    if ( !defined $iso2709 ) {
73
    if ( !defined $iso2709 ) {
73
        carp "Error sending mail: empty basket";
74
        carp "Error sending mail: empty basket";
74
        $template->param( error => 1 );
75
        $template->param( error => 1 );
76
    } elsif ( !defined $user_email or $user_email eq '' ) {
77
        carp "Error sending mail: sender's email address is invalid";
78
        $template->param( error => 1 );
75
    } else {
79
    } else {
76
        my %loops = (
80
        my %loops = (
77
            biblio => \@bibs,
81
            biblio => \@bibs,
Lines 99-105 if ( $email_add ) { Link Here
99
            content => Encode::encode("UTF-8", $iso2709),
103
            content => Encode::encode("UTF-8", $iso2709),
100
        };
104
        };
101
105
102
        my $user_email = $patron->first_valid_email_address || C4::Context->preference('KohaAdminEmailAddress');
103
        C4::Letters::EnqueueLetter({
106
        C4::Letters::EnqueueLetter({
104
            letter => $letter,
107
            letter => $letter,
105
            message_transport_type => 'email',
108
            message_transport_type => 'email',
(-)a/opac/opac-sendshelf.pl (-2 / +5 lines)
Lines 73-79 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
73
    );
73
    );
74
74
75
    my $patron = Koha::Patrons->find( $borrowernumber );
75
    my $patron = Koha::Patrons->find( $borrowernumber );
76
76
    my $user_email = $patron->first_valid_email_address;
77
    my $shelf = Koha::Virtualshelves->find( $shelfid );
77
    my $shelf = Koha::Virtualshelves->find( $shelfid );
78
    my $contents = $shelf->get_contents;
78
    my $contents = $shelf->get_contents;
79
    my $iso2709;
79
    my $iso2709;
Lines 87-92 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
87
    if ( !defined $iso2709 ) {
87
    if ( !defined $iso2709 ) {
88
        carp "Error sending mail: empty list";
88
        carp "Error sending mail: empty list";
89
        $template->param( error => 1 );
89
        $template->param( error => 1 );
90
    } elsif ( !defined $user_email or $user_email eq '' ) {
91
        carp "Error sending mail: sender's email address is invalid";
92
        $template->param( error => 1 );
90
    } else {
93
    } else {
91
         my %loops = (
94
         my %loops = (
92
             biblio => \@biblionumbers,
95
             biblio => \@biblionumbers,
Lines 120-126 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
120
            message_transport_type => 'email',
123
            message_transport_type => 'email',
121
            borrowernumber => $patron->borrowernumber,
124
            borrowernumber => $patron->borrowernumber,
122
            to_address => $email,
125
            to_address => $email,
123
            reply_address => $patron->first_valid_email_address,
126
            reply_address => $user_email,
124
            attachments => [$attachment],
127
            attachments => [$attachment],
125
        });
128
        });
126
129
(-)a/virtualshelves/sendshelf.pl (-2 / +5 lines)
Lines 70-75 if ($to_address) { Link Here
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 $contents = $shelf->get_contents;
74
    my $contents = $shelf->get_contents;
74
    my @biblionumbers;
75
    my @biblionumbers;
75
    my $iso2709;
76
    my $iso2709;
Lines 83-88 if ($to_address) { Link Here
83
    if ( !defined $iso2709 ) {
84
    if ( !defined $iso2709 ) {
84
        carp "Error sending mail: empty basket";
85
        carp "Error sending mail: empty basket";
85
        $template->param( error => 1 );
86
        $template->param( error => 1 );
87
    } elsif ( !defined $user_email or $user_email eq '' ) {
88
        carp "Error sending mail: sender's email address is invalid";
89
        $template->param( error => 1 );
86
    } else {
90
    } else {
87
        my %loops = (
91
        my %loops = (
88
            biblio => \@biblionumbers,
92
            biblio => \@biblionumbers,
Lines 116-122 if ($to_address) { Link Here
116
            message_transport_type => 'email',
120
            message_transport_type => 'email',
117
            borrowernumber => $patron->borrowernumber,
121
            borrowernumber => $patron->borrowernumber,
118
            to_address => $to_address,
122
            to_address => $to_address,
119
            reply_address => $patron->first_valid_email_address,
123
            reply_address => $user_email,
120
            attachments => [$attachment],
124
            attachments => [$attachment],
121
        });
125
        });
122
126
123
- 

Return to bug 3150