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

(-)a/basket/sendbasket.pl (-1 / +5 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 73-78 if ( $email_add ) { Link Here
73
        carp "Error sending mail: empty basket";
74
        carp "Error sending mail: empty basket";
74
        $template->param( error => 1 );
75
        $template->param( error => 1 );
75
76
77
    } elsif ( !defined $user_email or $user_email eq '' ) {
78
        carp "Error sending mail: sender's email address is invalid";
79
        $template->param( error => 1 );
80
76
    } else {
81
    } else {
77
        my %loops = (
82
        my %loops = (
78
            biblio => \@bibs,
83
            biblio => \@bibs,
Lines 100-106 if ( $email_add ) { Link Here
100
            content => Encode::encode("UTF-8", $iso2709),
105
            content => Encode::encode("UTF-8", $iso2709),
101
        };
106
        };
102
107
103
        my $user_email = $patron->first_valid_email_address || C4::Context->preference('KohaAdminEmailAddress');
104
        C4::Letters::EnqueueLetter({
108
        C4::Letters::EnqueueLetter({
105
            letter => $letter,
109
            letter => $letter,
106
            message_transport_type => 'email',
110
            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 1550-1783 tables: Link Here
1550
          code: LIST
1550
          code: LIST
1551
          branchcode: ""
1551
          branchcode: ""
1552
          name: "Send list"
1552
          name: "Send list"
1553
          is_html: 1
1553
          is_html: 0
1554
          title: "Your list: [% listname | html %]"
1554
          title: "Your list: [% listname | html %]"
1555
          message_transport_type: email
1555
          message_transport_type: email
1556
          lang: default
1556
          lang: default
1557
          content:
1557
          content:
1558
            - "<p>Hi,</p>"
1558
            - "Hi,"
1559
            - "<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>"
1559
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
1560
            - "<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>"
1560
            - "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."
1561
            - "<hr/>"
1561
            - "<hr/>[% comment | html %]<hr/>"
1562
            - "<p>[% comment | html %]</p>"
1562
            - "<ol>[% FOREACH biblio IN biblios %]<li>"
1563
            - "<hr/>"
1564
            - "<ol>"
1565
            - "[% FOREACH biblio IN biblios %]"
1566
            - "<li>"
1567
            - "<span>"
1568
            - "[% biblio.title | html %]"
1563
            - "[% biblio.title | html %]"
1569
            - "[% IF ( biblio.subtitle ) %]"
1564
            - "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
1570
            - "[% FOREACH subtitle IN biblio.subtitle.split(' | ') %]"
1565
            - "[% 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 %]"
1571
            - "[% subtitle | html %]"
1566
            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
1572
            - "[% END %]"
1567
            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
1573
            - "[% END %]"
1568
            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
1574
            - "[% biblio.part_number | html %] [% biblio.part_name | html %]"
1569
            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
1575
            - "</span>"
1570
            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
1576
            - "<p>"
1571
            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
1577
            - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
1572
            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
1578
            - "<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]"
1573
            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
1579
            - "[% IF ( biblio.get_authors_from_MARC ) %]"
1574
            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
1580
            - "[% IF ( biblio.author ) %]; [% END %]"
1575
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
1581
            - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
1576
            - "[% 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 %]"
1582
            - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
1577
            - "<hr/></li>[% END %]</ol>"
1583
            - "[% subfield.separator | html %][% subfield.value | html %]"
1584
            - "[% END %]"
1585
            - "[% UNLESS ( loop.last ) %];[% END %]"
1586
            - "[% END %]"
1587
            - "[% END %]"
1588
            - "</span><br/>"
1589
            - "[% END %]"
1590
            - "[% SET biblioitem = biblio.biblioitem %]"
1591
            - "[% IF ( biblioitem.isbn ) %]"
1592
            - "<span>"
1593
            - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
1594
            - "[% isbn | html %]"
1595
            - "[% UNLESS ( loop.last ) %]; [% END %]"
1596
            - "[% END %]"
1597
            - "</span><br/>"
1598
            - "[% END %]"
1599
            - "[% IF ( biblioitem.publishercode ) %]"
1600
            - "<span>"
1601
            - "Published by: [% biblioitem.publishercode | html %]"
1602
            - "[% IF ( biblioitem.publicationyear ) %]"
1603
            - "in [% biblioitem.publicationyear | html %]"
1604
            - "[% END %]"
1605
            - "[% IF ( biblioitem.pages ) %]"
1606
            - ", [% biblioitem.pages | html %]"
1607
            - "[% END %]"
1608
            - "</span><br/>"
1609
            - "[% END %]"
1610
            - "[% IF ( biblio.seriestitle ) %]"
1611
            - "<span>"
1612
            - "Collection: [% biblio.seriestitle | html %]"
1613
            - "</span><br/>"
1614
            - "[% END %]"
1615
            - "[% IF ( biblio.copyrightdate ) %]"
1616
            - "<span>"
1617
            - "Copyright year: [% biblio.copyrightdate | html %]"
1618
            - "</span><br/>"
1619
            - "[% END %]"
1620
            - "[% IF ( biblio.notes ) %]"
1621
            - "<span>"
1622
            - "Notes: [% biblio.notes | html %]"
1623
            - "</span><br/>"
1624
            - "[% END %]"
1625
            - "[% IF ( biblio.unititle ) %]"
1626
            - "<span>"
1627
            - "Unified title: [% biblio.unititle | html %]"
1628
            - "</span><br/>"
1629
            - "[% END %]"
1630
            - "[% IF ( biblio.serial ) %]"
1631
            - "<span>"
1632
            - "Serial: [% biblio.serial | html %]"
1633
            - "</span><br/>"
1634
            - "[% END %]"
1635
            - "[% IF ( biblioitem.lccn ) %]"
1636
            - "<span>"
1637
            - "LCCN: [% biblioitem.lccn | html %]"
1638
            - "</span><br/>"
1639
            - "[% END %]"
1640
            - "[% IF ( biblioitem.url ) %]"
1641
            - "<span>"
1642
            - "URL: [% biblioitem.url | html %]"
1643
            - "</span>"
1644
            - "[% END %]"
1645
            - "</p>"
1646
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]"
1647
            - "[% IF ( OPACBaseURL ) %]"
1648
            - "<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>"
1649
            - "[% END %]"
1650
            - "[% IF ( biblio.items.count > 0 ) %]"
1651
            - "<p>Items:"
1652
            - "<ul>"
1653
            - "[% FOREACH item IN biblio.items %]<li>"
1654
            - "[% item.holding_branch.branchname | html %]"
1655
            - "[% item.location | html %]"
1656
            - "[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]"
1657
            - "[% item.barcode | html %]"
1658
            - "</li>[% END %]"
1659
            - "</ul>"
1660
            - "</p>"
1661
            - "[% END %]"
1662
            - "<hr/>"
1663
            - "</li>"
1664
            - "[% END %]"
1665
            - "</ol>"
1666
1578
1667
        - module: catalog
1579
        - module: catalog
1668
          code: CART
1580
          code: CART
1669
          branchcode: ""
1581
          branchcode: ""
1670
          name: "Send cart"
1582
          name: "Send cart"
1671
          is_html: 1
1583
          is_html: 0
1672
          title: "Your cart"
1584
          title: "Your cart"
1673
          message_transport_type: email
1585
          message_transport_type: email
1674
          lang: default
1586
          lang: default
1675
          content:
1587
          content:
1676
            - "<p>Hi,</p>"
1588
            - "Hi,"
1677
            - "<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>"
1589
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog."
1678
            - "<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>"
1590
            - "[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %]."
1679
            - "<hr/>"
1591
            - "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."
1680
            - "<p>[% comment | html %]</p>"
1592
            - "<hr/>[% comment | html %]<hr/>"
1681
            - "<hr/>"
1593
            - "<ol>[% FOREACH biblio IN biblios %]<li>"
1682
            - "<ol>"
1683
            - "[% FOREACH biblio IN biblios %]"
1684
            - "<li>"
1685
            - "<span>"
1686
            - "[% biblio.title | html %]"
1594
            - "[% biblio.title | html %]"
1687
            - "[% IF ( biblio.subtitle ) %]"
1595
            - "[% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% biblio.part_number | html %] [% biblio.part_name | html %]"
1688
            - "[% FOREACH subtitle IN biblio.subtitle.split(' | ') %]"
1596
            - "[% 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 %]"
1689
            - "[% subtitle | html %]"
1597
            - "[% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]"
1690
            - "[% END %]"
1598
            - "[% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]"
1691
            - "[% END %]"
1599
            - "[% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]"
1692
            - "[% biblio.part_number | html %] [% biblio.part_name | html %]"
1600
            - "[% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]"
1693
            - "</span>"
1601
            - "[% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]"
1694
            - "<p>"
1602
            - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]"
1695
            - "[% IF ( biblio.author || biblio.get_authors_from_MARC ) %]"
1603
            - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]"
1696
            - "<span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]"
1604
            - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]"
1697
            - "[% IF ( biblio.get_authors_from_MARC ) %]"
1605
            - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]"
1698
            - "[% IF ( biblio.author ) %]; [% END %]"
1606
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]"
1699
            - "[% FOREACH author IN biblio.get_authors_from_MARC %]"
1607
            - "[% 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 %]"
1700
            - "[% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]"
1608
            - "<hr/></li>[% END %]</ol>"
1701
            - "[% subfield.separator | html %][% subfield.value | html %]"
1702
            - "[% END %]"
1703
            - "[% UNLESS ( loop.last ) %];[% END %]"
1704
            - "[% END %]"
1705
            - "[% END %]"
1706
            - "</span><br/>"
1707
            - "[% END %]"
1708
            - "[% SET biblioitem = biblio.biblioitem %]"
1709
            - "[% IF ( biblioitem.isbn ) %]"
1710
            - "<span>"
1711
            - "ISBN: [% FOREACH isbn IN biblioitem.isbn %]"
1712
            - "[% isbn | html %]"
1713
            - "[% UNLESS ( loop.last ) %]; [% END %]"
1714
            - "[% END %]"
1715
            - "</span><br/>"
1716
            - "[% END %]"
1717
            - "[% IF ( biblioitem.publishercode ) %]"
1718
            - "<span>"
1719
            - "Published by: [% biblioitem.publishercode | html %]"
1720
            - "[% IF ( biblioitem.publicationyear ) %]"
1721
            - "in [% biblioitem.publicationyear | html %]"
1722
            - "[% END %]"
1723
            - "[% IF ( biblioitem.pages ) %]"
1724
            - ", [% biblioitem.pages | html %]"
1725
            - "[% END %]"
1726
            - "</span><br/>"
1727
            - "[% END %]"
1728
            - "[% IF ( biblio.seriestitle ) %]"
1729
            - "<span>"
1730
            - "Collection: [% biblio.seriestitle | html %]"
1731
            - "</span><br/>"
1732
            - "[% END %]"
1733
            - "[% IF ( biblio.copyrightdate ) %]"
1734
            - "<span>"
1735
            - "Copyright year: [% biblio.copyrightdate | html %]"
1736
            - "</span><br/>"
1737
            - "[% END %]"
1738
            - "[% IF ( biblio.notes ) %]"
1739
            - "<span>"
1740
            - "Notes: [% biblio.notes | html %]"
1741
            - "</span><br/>"
1742
            - "[% END %]"
1743
            - "[% IF ( biblio.unititle ) %]"
1744
            - "<span>"
1745
            - "Unified title: [% biblio.unititle | html %]"
1746
            - "</span><br/>"
1747
            - "[% END %]"
1748
            - "[% IF ( biblio.serial ) %]"
1749
            - "<span>"
1750
            - "Serial: [% biblio.serial | html %]"
1751
            - "</span><br/>"
1752
            - "[% END %]"
1753
            - "[% IF ( biblioitem.lccn ) %]"
1754
            - "<span>"
1755
            - "LCCN: [% biblioitem.lccn | html %]"
1756
            - "</span><br/>"
1757
            - "[% END %]"
1758
            - "[% IF ( biblioitem.url ) %]"
1759
            - "<span>"
1760
            - "URL: [% biblioitem.url | html %]"
1761
            - "</span>"
1762
            - "[% END %]"
1763
            - "</p>"
1764
            - "[% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]"
1765
            - "[% IF ( OPACBaseURL ) %]"
1766
            - "<p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>"
1767
            - "[% END %]"
1768
            - "[% IF ( biblio.items.count > 0 ) %]"
1769
            - "<p>Items:"
1770
            - "<ul>"
1771
            - "[% FOREACH item IN biblio.items %]<li>"
1772
            - "[% item.holding_branch.branchname | html %]"
1773
            - "[% item.location | html %]"
1774
            - "[% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]"
1775
            - "[% item.barcode | html %]"
1776
            - "</li>[% END %]"
1777
            - "</ul>"
1778
            - "</p>"
1779
            - "[% END %]"
1780
            - "<hr/>"
1781
            - "</li>"
1782
            - "[% END %]"
1783
            - "</ol>"
(-)a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql (-216 / +48 lines)
Lines 363-581 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
363
[% END %]
363
[% END %]
364
", 'email');
364
", 'email');
365
365
366
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>
366
INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi,
367
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>
367
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
368
<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>
368
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.
369
<hr/>
369
<hr/>[% comment | html %]<hr/>
370
<p>[% comment | html %]</p>
370
<ol>[% FOREACH biblio IN biblios %]<li>
371
<hr/>
371
    [% biblio.title | html %]
372
<ol>
372
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
373
[% FOREACH biblio IN biblios %]
373
    [% biblio.part_number | html %] [% biblio.part_name | html %]
374
    <li>
374
    [% 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 %]
375
        <span>
375
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
376
            [% biblio.title | html %]
376
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
377
            [% IF ( biblio.subtitle ) %]
377
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
378
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
378
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
379
                    [% subtitle | html %]
379
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
380
                [% END %]
380
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
381
            [% END %]
381
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
382
            [% biblio.part_number | html %] [% biblio.part_name | html %]
382
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
383
        </span>
383
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
384
        <p>
384
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
385
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
385
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
386
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
386
    [% item.location | html %]
387
                [% IF ( biblio.get_authors_from_MARC ) %]
387
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
388
                    [% IF ( biblio.author ) %]; [% END %]
388
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
389
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
389
<hr/></li>[% END %]</ol>", 'email','default' ),
390
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
390
('catalog','CART','','Send cart',0,'Your cart',"Hi,
391
                            [% subfield.separator | html %][% subfield.value | html %]
391
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
392
                        [% END %]
392
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.
393
                        [% UNLESS ( loop.last ) %];[% END %]
393
<hr/>[% comment | html %]<hr/>
394
                    [% END %]
394
<ol>[% FOREACH biblio IN biblios %]<li>
395
                [% END %]
395
    [% biblio.title | html %]
396
                </span><br/>
396
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
397
            [% END %]
397
    [% biblio.part_number | html %] [% biblio.part_name | html %]
398
            [% SET biblioitem = biblio.biblioitem %]
398
    [% 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 %]
399
            [% IF ( biblioitem.isbn ) %]
399
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
400
                <span>
400
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
401
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
401
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
402
                        [% isbn | html %]
402
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
403
                        [% UNLESS ( loop.last ) %]; [% END %]
403
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
404
                    [% END %]
404
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
405
                </span><br/>
405
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
406
            [% END %]
406
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
407
            [% IF ( biblioitem.publishercode ) %]
407
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
408
                <span>
408
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
409
                    Published by: [% biblioitem.publishercode | html %]
409
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
410
                    [% IF ( biblioitem.publicationyear ) %]
410
    [% item.location | html %]
411
                        in [% biblioitem.publicationyear | html %]
411
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
412
                    [% END %]
412
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
413
                    [% IF ( biblioitem.pages ) %]
413
<hr/></li>[% END %]</ol>",'email','default');
414
                        , [% biblioitem.pages | html %]
415
                    [% END %]
416
                </span><br/>
417
            [% END %]
418
            [% IF ( biblio.seriestitle ) %]
419
                <span>
420
                    Collection: [% biblio.seriestitle | html %]
421
                </span><br/>
422
            [% END %]
423
            [% IF ( biblio.copyrightdate ) %]
424
                <span>
425
                    Copyright year: [% biblio.copyrightdate | html %]
426
                </span><br/>
427
            [% END %]
428
            [% IF ( biblio.notes ) %]
429
                <span>
430
                    Notes: [% biblio.notes | html %]
431
                </span><br/>
432
            [% END %]
433
            [% IF ( biblio.unititle ) %]
434
                <span>
435
                    Unified title: [% biblio.unititle | html %]
436
                </span><br/>
437
            [% END %]
438
            [% IF ( biblio.serial ) %]
439
                <span>
440
                    Serial: [% biblio.serial | html %]
441
                </span><br/>
442
            [% END %]
443
            [% IF ( biblioitem.lccn ) %]
444
                <span>
445
                    LCCN: [% biblioitem.lccn | html %]
446
                </span><br/>
447
            [% END %]
448
            [% IF ( biblioitem.url ) %]
449
                <span>
450
                    URL: [% biblioitem.url | html %]
451
                </span>
452
            [% END %]
453
        </p>
454
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
455
        [% IF ( OPACBaseURL ) %]
456
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
457
        [% END %]
458
        [% IF ( biblio.items.count > 0 ) %]
459
            <p>Items:
460
                <ul>
461
                    [% FOREACH item IN biblio.items %]<li>
462
                        [% item.holding_branch.branchname | html %]
463
                        [% item.location | html %]
464
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
465
                        [% item.barcode | html %]
466
                    </li>[% END %]
467
                </ul>
468
            </p>
469
        [% END %]
470
        <hr/>
471
    </li>
472
[% END %]
473
</ol>", 'email','default' ),
474
('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p>
475
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>
476
<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>
477
<hr/>
478
<p>[% comment | html %]</p>
479
<hr/>
480
<ol>
481
[% FOREACH biblio IN biblios %]
482
    <li>
483
        <span>
484
            [% biblio.title | html %]
485
            [% IF ( biblio.subtitle ) %]
486
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
487
                    [% subtitle | html %]
488
                [% END %]
489
            [% END %]
490
            [% biblio.part_number | html %] [% biblio.part_name | html %]
491
        </span>
492
        <p>
493
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
494
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
495
                [% IF ( biblio.get_authors_from_MARC ) %]
496
                    [% IF ( biblio.author ) %]; [% END %]
497
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
498
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
499
                            [% subfield.separator | html %][% subfield.value | html %]
500
                        [% END %]
501
                        [% UNLESS ( loop.last ) %];[% END %]
502
                    [% END %]
503
                [% END %]
504
                </span><br/>
505
            [% END %]
506
            [% SET biblioitem = biblio.biblioitem %]
507
            [% IF ( biblioitem.isbn ) %]
508
                <span>
509
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
510
                        [% isbn | html %]
511
                        [% UNLESS ( loop.last ) %]; [% END %]
512
                    [% END %]
513
                </span><br/>
514
            [% END %]
515
            [% IF ( biblioitem.publishercode ) %]
516
                <span>
517
                    Published by: [% biblioitem.publishercode | html %]
518
                    [% IF ( biblioitem.publicationyear ) %]
519
                        in [% biblioitem.publicationyear | html %]
520
                    [% END %]
521
                    [% IF ( biblioitem.pages ) %]
522
                        , [% biblioitem.pages | html %]
523
                    [% END %]
524
                </span><br/>
525
            [% END %]
526
            [% IF ( biblio.seriestitle ) %]
527
                <span>
528
                    Collection: [% biblio.seriestitle | html %]
529
                </span><br/>
530
            [% END %]
531
            [% IF ( biblio.copyrightdate ) %]
532
                <span>
533
                    Copyright year: [% biblio.copyrightdate | html %]
534
                </span><br/>
535
            [% END %]
536
            [% IF ( biblio.notes ) %]
537
                <span>
538
                    Notes: [% biblio.notes | html %]
539
                </span><br/>
540
            [% END %]
541
            [% IF ( biblio.unititle ) %]
542
                <span>
543
                    Unified title: [% biblio.unititle | html %]
544
                </span><br/>
545
            [% END %]
546
            [% IF ( biblio.serial ) %]
547
                <span>
548
                    Serial: [% biblio.serial | html %]
549
                </span><br/>
550
            [% END %]
551
            [% IF ( biblioitem.lccn ) %]
552
                <span>
553
                    LCCN: [% biblioitem.lccn | html %]
554
                </span><br/>
555
            [% END %]
556
            [% IF ( biblioitem.url ) %]
557
                <span>
558
                    URL: [% biblioitem.url | html %]
559
                </span>
560
            [% END %]
561
        </p>
562
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
563
        [% IF ( OPACBaseURL ) %]
564
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
565
        [% END %]
566
        [% IF ( biblio.items.count > 0 ) %]
567
            <p>Items:
568
                <ul>
569
                    [% FOREACH item IN biblio.items %]<li>
570
                        [% item.holding_branch.branchname | html %]
571
                        [% item.location | html %]
572
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
573
                        [% item.barcode | html %]
574
                    </li>[% END %]
575
                </ul>
576
            </p>
577
        [% END %]
578
        <hr/>
579
    </li>
580
[% END %]
581
</ol>",'email','default');
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql (-216 / +48 lines)
Lines 475-693 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
475
[% END %]
475
[% END %]
476
", 'email');
476
", 'email');
477
477
478
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>
478
INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi,
479
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>
479
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
480
<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>
480
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.
481
<hr/>
481
<hr/>[% comment | html %]<hr/>
482
<p>[% comment | html %]</p>
482
<ol>[% FOREACH biblio IN biblios %]<li>
483
<hr/>
483
    [% biblio.title | html %]
484
<ol>
484
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
485
[% FOREACH biblio IN biblios %]
485
    [% biblio.part_number | html %] [% biblio.part_name | html %]
486
    <li>
486
    [% 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 %]
487
        <span>
487
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
488
            [% biblio.title | html %]
488
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
489
            [% IF ( biblio.subtitle ) %]
489
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
490
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
490
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
491
                    [% subtitle | html %]
491
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
492
                [% END %]
492
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
493
            [% END %]
493
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
494
            [% biblio.part_number | html %] [% biblio.part_name | html %]
494
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
495
        </span>
495
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
496
        <p>
496
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
497
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
497
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
498
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
498
    [% item.location | html %]
499
                [% IF ( biblio.get_authors_from_MARC ) %]
499
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
500
                    [% IF ( biblio.author ) %]; [% END %]
500
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
501
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
501
<hr/></li>[% END %]</ol>", 'email','default' ),
502
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
502
('catalog','CART','','Send cart',0,'Your cart',"Hi,
503
                            [% subfield.separator | html %][% subfield.value | html %]
503
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
504
                        [% END %]
504
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.
505
                        [% UNLESS ( loop.last ) %];[% END %]
505
<hr/>[% comment | html %]<hr/>
506
                    [% END %]
506
<ol>[% FOREACH biblio IN biblios %]<li>
507
                [% END %]
507
    [% biblio.title | html %]
508
                </span><br/>
508
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
509
            [% END %]
509
    [% biblio.part_number | html %] [% biblio.part_name | html %]
510
            [% SET biblioitem = biblio.biblioitem %]
510
    [% 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 %]
511
            [% IF ( biblioitem.isbn ) %]
511
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
512
                <span>
512
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
513
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
513
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
514
                        [% isbn | html %]
514
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
515
                        [% UNLESS ( loop.last ) %]; [% END %]
515
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
516
                    [% END %]
516
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
517
                </span><br/>
517
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
518
            [% END %]
518
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
519
            [% IF ( biblioitem.publishercode ) %]
519
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
520
                <span>
520
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
521
                    Published by: [% biblioitem.publishercode | html %]
521
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
522
                    [% IF ( biblioitem.publicationyear ) %]
522
    [% item.location | html %]
523
                        in [% biblioitem.publicationyear | html %]
523
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
524
                    [% END %]
524
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
525
                    [% IF ( biblioitem.pages ) %]
525
<hr/></li>[% END %]</ol>", 'email','default' );
526
                        , [% biblioitem.pages | html %]
527
                    [% END %]
528
                </span><br/>
529
            [% END %]
530
            [% IF ( biblio.seriestitle ) %]
531
                <span>
532
                    Collection: [% biblio.seriestitle | html %]
533
                </span><br/>
534
            [% END %]
535
            [% IF ( biblio.copyrightdate ) %]
536
                <span>
537
                    Copyright year: [% biblio.copyrightdate | html %]
538
                </span><br/>
539
            [% END %]
540
            [% IF ( biblio.notes ) %]
541
                <span>
542
                    Notes: [% biblio.notes | html %]
543
                </span><br/>
544
            [% END %]
545
            [% IF ( biblio.unititle ) %]
546
                <span>
547
                    Unified title: [% biblio.unititle | html %]
548
                </span><br/>
549
            [% END %]
550
            [% IF ( biblio.serial ) %]
551
                <span>
552
                    Serial: [% biblio.serial | html %]
553
                </span><br/>
554
            [% END %]
555
            [% IF ( biblioitem.lccn ) %]
556
                <span>
557
                    LCCN: [% biblioitem.lccn | html %]
558
                </span><br/>
559
            [% END %]
560
            [% IF ( biblioitem.url ) %]
561
                <span>
562
                    URL: [% biblioitem.url | html %]
563
                </span>
564
            [% END %]
565
        </p>
566
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
567
        [% IF ( OPACBaseURL ) %]
568
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
569
        [% END %]
570
        [% IF ( biblio.items.count > 0 ) %]
571
            <p>Items:
572
                <ul>
573
                    [% FOREACH item IN biblio.items %]<li>
574
                        [% item.holding_branch.branchname | html %]
575
                        [% item.location | html %]
576
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
577
                        [% item.barcode | html %]
578
                    </li>[% END %]
579
                </ul>
580
            </p>
581
        [% END %]
582
        <hr/>
583
    </li>
584
[% END %]
585
</ol>", 'email','default' ),
586
('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p>
587
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>
588
<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>
589
<hr/>
590
<p>[% comment | html %]</p>
591
<hr/>
592
<ol>
593
[% FOREACH biblio IN biblios %]
594
    <li>
595
        <span>
596
            [% biblio.title | html %]
597
            [% IF ( biblio.subtitle ) %]
598
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
599
                    [% subtitle | html %]
600
                [% END %]
601
            [% END %]
602
            [% biblio.part_number | html %] [% biblio.part_name | html %]
603
        </span>
604
        <p>
605
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
606
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
607
                [% IF ( biblio.get_authors_from_MARC ) %]
608
                    [% IF ( biblio.author ) %]; [% END %]
609
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
610
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
611
                            [% subfield.separator | html %][% subfield.value | html %]
612
                        [% END %]
613
                        [% UNLESS ( loop.last ) %];[% END %]
614
                    [% END %]
615
                [% END %]
616
                </span><br/>
617
            [% END %]
618
            [% SET biblioitem = biblio.biblioitem %]
619
            [% IF ( biblioitem.isbn ) %]
620
                <span>
621
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
622
                        [% isbn | html %]
623
                        [% UNLESS ( loop.last ) %]; [% END %]
624
                    [% END %]
625
                </span><br/>
626
            [% END %]
627
            [% IF ( biblioitem.publishercode ) %]
628
                <span>
629
                    Published by: [% biblioitem.publishercode | html %]
630
                    [% IF ( biblioitem.publicationyear ) %]
631
                        in [% biblioitem.publicationyear | html %]
632
                    [% END %]
633
                    [% IF ( biblioitem.pages ) %]
634
                        , [% biblioitem.pages | html %]
635
                    [% END %]
636
                </span><br/>
637
            [% END %]
638
            [% IF ( biblio.seriestitle ) %]
639
                <span>
640
                    Collection: [% biblio.seriestitle | html %]
641
                </span><br/>
642
            [% END %]
643
            [% IF ( biblio.copyrightdate ) %]
644
                <span>
645
                    Copyright year: [% biblio.copyrightdate | html %]
646
                </span><br/>
647
            [% END %]
648
            [% IF ( biblio.notes ) %]
649
                <span>
650
                    Notes: [% biblio.notes | html %]
651
                </span><br/>
652
            [% END %]
653
            [% IF ( biblio.unititle ) %]
654
                <span>
655
                    Unified title: [% biblio.unititle | html %]
656
                </span><br/>
657
            [% END %]
658
            [% IF ( biblio.serial ) %]
659
                <span>
660
                    Serial: [% biblio.serial | html %]
661
                </span><br/>
662
            [% END %]
663
            [% IF ( biblioitem.lccn ) %]
664
                <span>
665
                    LCCN: [% biblioitem.lccn | html %]
666
                </span><br/>
667
            [% END %]
668
            [% IF ( biblioitem.url ) %]
669
                <span>
670
                    URL: [% biblioitem.url | html %]
671
                </span>
672
            [% END %]
673
        </p>
674
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
675
        [% IF ( OPACBaseURL ) %]
676
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
677
        [% END %]
678
        [% IF ( biblio.items.count > 0 ) %]
679
            <p>Items:
680
                <ul>
681
                    [% FOREACH item IN biblio.items %]<li>
682
                        [% item.holding_branch.branchname | html %]
683
                        [% item.location | html %]
684
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
685
                        [% item.barcode | html %]
686
                    </li>[% END %]
687
                </ul>
688
            </p>
689
        [% END %]
690
        <hr/>
691
    </li>
692
[% END %]
693
</ol>",'email','default');
(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql (-216 / +48 lines)
Lines 494-712 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
494
[% END %]
494
[% END %]
495
", 'email');
495
", 'email');
496
496
497
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>
497
INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('catalog','LIST','','Send list',0,'Your list: [% listname | html %]',"Hi,
498
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].</p>
498
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a list from our online catalog called: [% listname | html %].
499
<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>
499
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.
500
<hr/>
500
<hr/>[% comment | html %]<hr/>
501
<p>[% comment | html %]</p>
501
<ol>[% FOREACH biblio IN biblios %]<li>
502
<hr/>
502
    [% biblio.title | html %]
503
<ol>
503
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
504
[% FOREACH biblio IN biblios %]
504
    [% biblio.part_number | html %] [% biblio.part_name | html %]
505
    <li>
505
    [% 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 %]
506
        <span>
506
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
507
            [% biblio.title | html %]
507
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
508
            [% IF ( biblio.subtitle ) %]
508
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
509
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
509
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
510
                    [% subtitle | html %]
510
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
511
                [% END %]
511
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
512
            [% END %]
512
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
513
            [% biblio.part_number | html %] [% biblio.part_name | html %]
513
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
514
        </span>
514
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
515
        <p>
515
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
516
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
516
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
517
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
517
    [% item.location | html %]
518
                [% IF ( biblio.get_authors_from_MARC ) %]
518
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
519
                    [% IF ( biblio.author ) %]; [% END %]
519
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
520
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
520
<hr/></li>[% END %]</ol>", 'email','default' ),
521
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
521
('catalog','CART','','Send cart',0,'Your cart',"Hi,
522
                            [% subfield.separator | html %][% subfield.value | html %]
522
[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.
523
                        [% END %]
523
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.
524
                        [% UNLESS ( loop.last ) %];[% END %]
524
<hr/>[% comment | html %]<hr/>
525
                    [% END %]
525
<ol>[% FOREACH biblio IN biblios %]<li>
526
                [% END %]
526
    [% biblio.title | html %]
527
                </span><br/>
527
    [% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %]
528
            [% END %]
528
    [% biblio.part_number | html %] [% biblio.part_name | html %]
529
            [% SET biblioitem = biblio.biblioitem %]
529
    [% 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 %]
530
            [% IF ( biblioitem.isbn ) %]
530
    [% SET biblioitem = biblio.biblioitem %][% IF ( biblioitem.isbn ) %]ISBN: [% FOREACH isbn IN biblioitem.isbn %][% isbn | html %][% UNLESS ( loop.last ) %]; [% END %][% END %][% END %]
531
                <span>
531
    [% IF ( biblioitem.publishercode ) %]Published by: [% biblioitem.publishercode | html %][% IF ( biblioitem.publicationyear ) %] in [% biblioitem.publicationyear | html %][% END %][% IF ( biblioitem.pages ) %], [% biblioitem.pages | html %][% END %][% END %]
532
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
532
    [% IF ( biblio.seriestitle ) %]Collection: [% biblio.seriestitle | html %][% END %]
533
                        [% isbn | html %]
533
    [% IF ( biblio.copyrightdate ) %]Copyright year: [% biblio.copyrightdate | html %][% END %]
534
                        [% UNLESS ( loop.last ) %]; [% END %]
534
    [% IF ( biblio.notes ) %]Notes: [% biblio.notes | html %][% END %]
535
                    [% END %]
535
    [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %][% END %]
536
                </span><br/>
536
    [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %][% END %]
537
            [% END %]
537
    [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %][% END %]
538
            [% IF ( biblioitem.publishercode ) %]
538
    [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %][% END %]
539
                <span>
539
    [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %][% IF ( OPACBaseURL ) %]In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %][% END %]
540
                    Published by: [% biblioitem.publishercode | html %]
540
    [% IF ( biblio.items.count > 0 ) %]Items: <ul>[% FOREACH item IN biblio.items %]<li>[% item.holding_branch.branchname | html %]
541
                    [% IF ( biblioitem.publicationyear ) %]
541
    [% item.location | html %]
542
                        in [% biblioitem.publicationyear | html %]
542
    [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
543
                    [% END %]
543
    [% item.barcode | html %]</li>[% END %]</ul>[% END %]
544
                    [% IF ( biblioitem.pages ) %]
544
<hr/></li>[% END %]</ol>", 'email','default' );
545
                        , [% biblioitem.pages | html %]
546
                    [% END %]
547
                </span><br/>
548
            [% END %]
549
            [% IF ( biblio.seriestitle ) %]
550
                <span>
551
                    Collection: [% biblio.seriestitle | html %]
552
                </span><br/>
553
            [% END %]
554
            [% IF ( biblio.copyrightdate ) %]
555
                <span>
556
                    Copyright year: [% biblio.copyrightdate | html %]
557
                </span><br/>
558
            [% END %]
559
            [% IF ( biblio.notes ) %]
560
                <span>
561
                    Notes: [% biblio.notes | html %]
562
                </span><br/>
563
            [% END %]
564
            [% IF ( biblio.unititle ) %]
565
                <span>
566
                    Unified title: [% biblio.unititle | html %]
567
                </span><br/>
568
            [% END %]
569
            [% IF ( biblio.serial ) %]
570
                <span>
571
                    Serial: [% biblio.serial | html %]
572
                </span><br/>
573
            [% END %]
574
            [% IF ( biblioitem.lccn ) %]
575
                <span>
576
                    LCCN: [% biblioitem.lccn | html %]
577
                </span><br/>
578
            [% END %]
579
            [% IF ( biblioitem.url ) %]
580
                <span>
581
                    URL: [% biblioitem.url | html %]
582
                </span>
583
            [% END %]
584
        </p>
585
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
586
        [% IF ( OPACBaseURL ) %]
587
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
588
        [% END %]
589
        [% IF ( biblio.items.count > 0 ) %]
590
            <p>Items:
591
                <ul>
592
                    [% FOREACH item IN biblio.items %]<li>
593
                        [% item.holding_branch.branchname | html %]
594
                        [% item.location | html %]
595
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
596
                        [% item.barcode | html %]
597
                    </li>[% END %]
598
                </ul>
599
            </p>
600
        [% END %]
601
        <hr/>
602
    </li>
603
[% END %]
604
</ol>", 'email','default' ),
605
('catalog','CART','','Send cart',1,'Your cart',"<p>Hi,</p>
606
<p>[% borrower.firstname | html %] [% borrower.surname | html %] sent you a cart from our online catalog.</p>
607
<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>
608
<hr/>
609
<p>[% comment | html %]</p>
610
<hr/>
611
<ol>
612
[% FOREACH biblio IN biblios %]
613
    <li>
614
        <span>
615
            [% biblio.title | html %]
616
            [% IF ( biblio.subtitle ) %]
617
                [% FOREACH subtitle IN biblio.subtitle.split(' | ') %]
618
                    [% subtitle | html %]
619
                [% END %]
620
            [% END %]
621
            [% biblio.part_number | html %] [% biblio.part_name | html %]
622
        </span>
623
        <p>
624
            [% IF ( biblio.author || biblio.get_authors_from_MARC ) %]
625
                <span>Author(s): [% IF ( biblio.author ) %][% biblio.author | html %][% END %]
626
                [% IF ( biblio.get_authors_from_MARC ) %]
627
                    [% IF ( biblio.author ) %]; [% END %]
628
                    [% FOREACH author IN biblio.get_authors_from_MARC %]
629
                        [% FOREACH subfield IN author.MARCAUTHOR_SUBFIELDS_LOOP %]
630
                            [% subfield.separator | html %][% subfield.value | html %]
631
                        [% END %]
632
                        [% UNLESS ( loop.last ) %];[% END %]
633
                    [% END %]
634
                [% END %]
635
                </span><br/>
636
            [% END %]
637
            [% SET biblioitem = biblio.biblioitem %]
638
            [% IF ( biblioitem.isbn ) %]
639
                <span>
640
                    ISBN: [% FOREACH isbn IN biblioitem.isbn %]
641
                        [% isbn | html %]
642
                        [% UNLESS ( loop.last ) %]; [% END %]
643
                    [% END %]
644
                </span><br/>
645
            [% END %]
646
            [% IF ( biblioitem.publishercode ) %]
647
                <span>
648
                    Published by: [% biblioitem.publishercode | html %]
649
                    [% IF ( biblioitem.publicationyear ) %]
650
                        in [% biblioitem.publicationyear | html %]
651
                    [% END %]
652
                    [% IF ( biblioitem.pages ) %]
653
                        , [% biblioitem.pages | html %]
654
                    [% END %]
655
                </span><br/>
656
            [% END %]
657
            [% IF ( biblio.seriestitle ) %]
658
                <span>
659
                    Collection: [% biblio.seriestitle | html %]
660
                </span><br/>
661
            [% END %]
662
            [% IF ( biblio.copyrightdate ) %]
663
                <span>
664
                    Copyright year: [% biblio.copyrightdate | html %]
665
                </span><br/>
666
            [% END %]
667
            [% IF ( biblio.notes ) %]
668
                <span>
669
                    Notes: [% biblio.notes | html %]
670
                </span><br/>
671
            [% END %]
672
            [% IF ( biblio.unititle ) %]
673
                <span>
674
                    Unified title: [% biblio.unititle | html %]
675
                </span><br/>
676
            [% END %]
677
            [% IF ( biblio.serial ) %]
678
                <span>
679
                    Serial: [% biblio.serial | html %]
680
                </span><br/>
681
            [% END %]
682
            [% IF ( biblioitem.lccn ) %]
683
                <span>
684
                    LCCN: [% biblioitem.lccn | html %]
685
                </span><br/>
686
            [% END %]
687
            [% IF ( biblioitem.url ) %]
688
                <span>
689
                    URL: [% biblioitem.url | html %]
690
                </span>
691
            [% END %]
692
        </p>
693
        [% SET OPACBaseURL = Koha.Preference('OPACBaseURL') %]
694
        [% IF ( OPACBaseURL ) %]
695
            <p>In online catalog: [% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]</p>
696
        [% END %]
697
        [% IF ( biblio.items.count > 0 ) %]
698
            <p>Items:
699
                <ul>
700
                    [% FOREACH item IN biblio.items %]<li>
701
                        [% item.holding_branch.branchname | html %]
702
                        [% item.location | html %]
703
                        [% IF item.itemcallnumber %]([% item.itemcallnumber | html %])[% END %]
704
                        [% item.barcode | html %]
705
                    </li>[% END %]
706
                </ul>
707
            </p>
708
        [% END %]
709
        <hr/>
710
    </li>
711
[% END %]
712
</ol>",'email','default');
(-)a/opac/opac-sendbasket.pl (-1 / +5 lines)
Lines 59-64 if ( $email_add ) { Link Here
59
    });
59
    });
60
60
61
    my $patron = Koha::Patrons->find( $borrowernumber );
61
    my $patron = Koha::Patrons->find( $borrowernumber );
62
    my $user_email = $patron->first_valid_email_address;
62
63
63
    my $comment = $query->param('comment');
64
    my $comment = $query->param('comment');
64
65
Lines 74-79 if ( $email_add ) { Link Here
74
        carp "Error sending mail: empty basket";
75
        carp "Error sending mail: empty basket";
75
        $template->param( error => 1 );
76
        $template->param( error => 1 );
76
77
78
    } elsif ( !defined $user_email or $user_email eq '' ) {
79
        carp "Error sending mail: sender's email address is invalid";
80
        $template->param( error => 1 );
81
77
    } else {
82
    } else {
78
        my %loops = (
83
        my %loops = (
79
            biblio => \@bibs,
84
            biblio => \@bibs,
Lines 101-107 if ( $email_add ) { Link Here
101
            content => Encode::encode("UTF-8", $iso2709),
106
            content => Encode::encode("UTF-8", $iso2709),
102
        };
107
        };
103
108
104
        my $user_email = $patron->first_valid_email_address || C4::Context->preference('KohaAdminEmailAddress');
105
        C4::Letters::EnqueueLetter({
109
        C4::Letters::EnqueueLetter({
106
            letter => $letter,
110
            letter => $letter,
107
            message_transport_type => 'email',
111
            message_transport_type => 'email',
(-)a/opac/opac-sendshelf.pl (-1 / +6 lines)
Lines 75-80 if ( $email ) { Link Here
75
    );
75
    );
76
76
77
    my $patron = Koha::Patrons->find( $borrowernumber );
77
    my $patron = Koha::Patrons->find( $borrowernumber );
78
    my $user_email = $patron->first_valid_email_address;
78
    my $shelf = Koha::Virtualshelves->find( $shelfid );
79
    my $shelf = Koha::Virtualshelves->find( $shelfid );
79
    my $contents = $shelf->get_contents;
80
    my $contents = $shelf->get_contents;
80
    my @biblionumbers;
81
    my @biblionumbers;
Lines 90-95 if ( $email ) { Link Here
90
        carp "Error sending mail: empty list";
91
        carp "Error sending mail: empty list";
91
        $template->param( error => 1 );
92
        $template->param( error => 1 );
92
93
94
    } elsif ( !defined $user_email or $user_email eq '' ) {
95
        carp "Error sending mail: sender's email address is invalid";
96
        $template->param( error => 1 );
97
93
    } else {
98
    } else {
94
        my %loops = (
99
        my %loops = (
95
            biblio => \@biblionumbers,
100
            biblio => \@biblionumbers,
Lines 123-129 if ( $email ) { Link Here
123
            message_transport_type => 'email',
128
            message_transport_type => 'email',
124
            borrowernumber => $patron->borrowernumber,
129
            borrowernumber => $patron->borrowernumber,
125
            to_address => $email,
130
            to_address => $email,
126
            reply_address => $patron->first_valid_email_address,
131
            reply_address => $user_email,
127
            attachments => [$attachment],
132
            attachments => [$attachment],
128
        });
133
        });
129
134
(-)a/virtualshelves/sendshelf.pl (-2 / +6 lines)
Lines 65-70 if ($to_address) { Link Here
65
    );
65
    );
66
66
67
    my $patron = Koha::Patrons->find( $borrowernumber );
67
    my $patron = Koha::Patrons->find( $borrowernumber );
68
    my $user_email = $patron->first_valid_email_address;
68
    my $shelf = Koha::Virtualshelves->find( $shelfid );
69
    my $shelf = Koha::Virtualshelves->find( $shelfid );
69
    my $contents = $shelf->get_contents;
70
    my $contents = $shelf->get_contents;
70
    my @biblionumbers;
71
    my @biblionumbers;
Lines 80-85 if ($to_address) { Link Here
80
        carp "Error sending mail: empty list";
81
        carp "Error sending mail: empty list";
81
        $template->param( error => 1 );
82
        $template->param( error => 1 );
82
83
84
    } elsif ( !defined $user_email or $user_email eq '' ) {
85
        carp "Error sending mail: sender's email address is invalid";
86
        $template->param( error => 1 );
87
83
    } else {
88
    } else {
84
        my %loops = (
89
        my %loops = (
85
            biblio => \@biblionumbers,
90
            biblio => \@biblionumbers,
Lines 113-119 if ($to_address) { Link Here
113
            message_transport_type => 'email',
118
            message_transport_type => 'email',
114
            borrowernumber => $patron->borrowernumber,
119
            borrowernumber => $patron->borrowernumber,
115
            to_address => $to_address,
120
            to_address => $to_address,
116
            reply_address => $patron->first_valid_email_address,
121
            reply_address => $user_email,
117
            attachments => [$attachment],
122
            attachments => [$attachment],
118
        });
123
        });
119
124
120
- 

Return to bug 3150