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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tt (-74 / +139 lines)
Lines 3-92 Your cart Link Here
3
<END_SUBJECT>
3
<END_SUBJECT>
4
4
5
[% USE HtmlToText %]
5
[% USE HtmlToText %]
6
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 50) %]
6
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
7
[% myhtmltext | html2text %]
7
[% myhtmltext | html2text %]
8
8
9
<HEADER>
9
<HEADER>
10
10
[% FILTER html2text %]
11
[% FILTER html2text %]
11
<p>Hi,
12
    <p>Hi,</p>
12
</p>
13
13
<p>[% firstname %] [% surname %] sent you a cart from our online catalog.</p>
14
    <p>[% firstname %] [% surname %] sent you a cart from our online catalog.</p>
14
15
15
<p>Please note that the attached file is a MARC bibliographic records file
16
    <p>Please note that the attached file is a MARC bibliographic records file
16
which can be imported into personal bibliographic software like EndNote,
17
    which can be imported into personal bibliographic software like EndNote,
17
Reference Manager or ProCite.</p>
18
    Reference Manager or ProCite.</p>
19
    <hr/>
18
[% END %]
20
[% END %]
19
<END_HEADER>
21
<END_HEADER>
20
22
21
<MESSAGE>
23
<MESSAGE>
22
[% FILTER html2text %]
24
[% FILTER html2text %]
23
<hr/>
24
25
25
[% IF comment %]
26
    [% IF comment %]
26
<p>[% comment %]</p>
27
        <p>[% comment %]</p>
27
<hr/>
28
        <hr/>
28
[% END %]
29
    [% END %]
30
    <ol>
31
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
32
        <li>
33
            <span>
34
                [% BIBLIO_RESULT.title %]
35
                [% IF ( BIBLIO_RESULT.subtitle ) %] [% BIBLIO_RESULT.subtitle %][% END %]
36
            </span>
37
38
            <p>
39
            [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
40
            <span>Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author %][% END %]
41
42
            [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
43
                [% IF ( BIBLIO_RESULT.author ) %]; [% END %]
44
                [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
45
                    [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
46
                        [% MARCAUTHOR_SUBFIELDS_LOO.separator %][% MARCAUTHOR_SUBFIELDS_LOO.value %]
47
                    [% END %]
48
                    [% UNLESS ( loop.last ) %];[% END %]
49
                [% END %]
50
            [% END %]
51
            </span><br/>
52
            [% END %]
53
54
            [% IF ( BIBLIO_RESULT.ISBN ) %]
55
            <span>
56
                ISBN: [% BIBLIO_RESULT.ISBN %]
57
            </span><br/>
58
            [% END %]
59
60
            [% IF BIBLIO_RESULT.publishercode %]
61
            <span>
62
                Published by: [% BIBLIO_RESULT.publishercode %]
63
                [% IF ( BIBLIO_RESULT.publicationyear ) %]
64
                    in [% BIBLIO_RESULT.publicationyear %]
65
                [% END %]
66
                [% IF ( BIBLIO_RESULT.pages ) %]
67
                    , [% BIBLIO_RESULT.pages %]
68
                [% END %]
69
                [% IF BIBLIO_RESULT.size %]
70
                , [% BIBLIO_RESULT.size %]
71
                [% END %]
72
            </span><br/>
73
            [% END %]
74
75
            [% IF BIBLIO_RESULT.collection %]
76
            <span>
77
                Collection: [% BIBLIO_RESULT.seriestitle %]
78
            </span><br/>
79
            [% END %]
80
81
            [% IF ( BIBLIO_RESULT.subject ) %]
82
            <span>
83
                Subject: [% BIBLIO_RESULT.subject %]
84
            <span><br/>
85
            [% END %]
86
87
            [% IF ( BIBLIO_RESULT.copyrightdate ) %]
88
            <span>
89
                Copyright year: [% BIBLIO_RESULT.copyrightdate %]
90
            </span><br/>
91
            [% END %]
92
93
            [% IF ( BIBLIO_RESULT.notes ) %]
94
            <span>
95
                Notes : [% BIBLIO_RESULT.notes %]
96
            </span><br/>
97
            [% END %]
98
99
            [% IF ( BIBLIO_RESULT.unititle ) %]
100
            <span>
101
                Unified title: [% BIBLIO_RESULT.unititle %]
102
            </span><br/>
103
            [% END %]
104
105
            [% IF ( BIBLIO_RESULT.serial ) %]
106
            <span>
107
                Serial: [% BIBLIO_RESULT.serial %]
108
            </span><br/>
109
            [% END %]
110
111
            [% IF ( BIBLIO_RESULT.dewey ) %]
112
            <span>
113
                Dewey: [% BIBLIO_RESULT.dewey %]
114
            </span><br/>
115
            [% END %]
116
117
            [% IF ( BIBLIO_RESULT.classification ) %]
118
            <span>
119
                Classification: [% BIBLIO_RESULT.classification %]
120
            </span><br/>
121
            [% END %]
122
123
            [% IF ( BIBLIO_RESULT.lccn ) %]
124
            <span>
125
                LCCN: [% BIBLIO_RESULT.lccn %]
126
            </span><br/>
127
            [% END %]
128
            [% IF ( BIBLIO_RESULT.url ) %]
129
            <span>
130
                URL: [% BIBLIO_RESULT.url |url %]
131
            </span>
132
            [% END %]
133
            </p>
134
135
            [% IF ( OPACBaseURL ) %]
136
            <p>
137
                In online catalog: [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
138
            </p>
139
            [% END %]
140
            [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
141
            <p>Items:
142
            <ul>
143
                [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li>
144
                    [% ITEM_RESULT.branchname %]
145
                    [% ITEM_RESULT.location %]
146
                    [% IF ITEM_RESULT.itemcallnumber %]([% ITEM_RESULT.itemcallnumber %])[% END %]
147
                    [% ITEM_RESULT.barcode %]
148
                </li>[% END %]
149
            </ul>
150
            </p>
151
            [% END %]
152
            <hr/>
153
        </li>
154
    [% END %]
155
    </ol>
29
156
30
<ol>
31
[% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
32
<li>
33
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber= [% BIBLIO_RESULT.biblionumber %]">[% BIBLIO_RESULT.title %]</a>
34
[% IF ( BIBLIO_RESULT.subtitle ) %] [% BIBLIO_RESULT.subtitle %][% END %]
35
<ul>
36
[% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
37
<li>Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author %][% END %][% IF ( BIBLIO_RESULT.MARCAUTHORS ) %][% IF ( BIBLIO_RESULT.author ) %]; [% END %][% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %][% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %][% MARCAUTHOR_SUBFIELDS_LOO.value %][% END %][% UNLESS ( loop.last ) %]; [% ELSE %][% END %][% END %][% END %][% END %]</li>
38
[% IF ( BIBLIO_RESULT.ISBN ) %]
39
<li>ISBN: [% BIBLIO_RESULT.ISBN %]</li>
40
[% END %]
41
[% IF BIBLIO_RESULT.publishercode %]
42
<li>
43
Published by: [% BIBLIO_RESULT.publishercode %][% IF ( BIBLIO_RESULT.publicationyear ) %] in [% BIBLIO_RESULT.publicationyear %][% END %][% IF ( BIBLIO_RESULT.pages ) %], [% BIBLIO_RESULT.pages %][% END %][% IF BIBLIO_RESULT.size %], [% BIBLIO_RESULT.size %][% END %]
44
</li>
45
[% END %]
46
[% IF BIBLIO_RESULT.collection %]
47
<li>Collection: [% BIBLIO_RESULT.seriestitle %]</li>
48
[% END %]
49
[% IF ( BIBLIO_RESULT.subject ) %]
50
<li>Subject: [% BIBLIO_RESULT.subject %]<li>
51
[% END %]
52
[% IF ( BIBLIO_RESULT.copyrightdate ) %]
53
<li>Copyright year: [% BIBLIO_RESULT.copyrightdate %]</li>
54
[% END %]
55
[% IF ( BIBLIO_RESULT.notes ) %]
56
<li>Notes : [% BIBLIO_RESULT.notes %]</li>
57
[% END %]
58
[% IF ( BIBLIO_RESULT.unititle ) %]
59
<li>Unified title: [% BIBLIO_RESULT.unititle %]</li>
60
[% END %]
61
[% IF ( BIBLIO_RESULT.serial ) %]
62
<li>Serial: [% BIBLIO_RESULT.serial %]</li>
63
[% END %]
64
[% IF ( BIBLIO_RESULT.dewey ) %]
65
<li>Dewey: [% BIBLIO_RESULT.dewey %]</li>
66
[% END %]
67
[% IF ( BIBLIO_RESULT.classification ) %]
68
<li>Classification: [% BIBLIO_RESULT.classification %]</li>
69
[% END %]
70
[% IF ( BIBLIO_RESULT.lccn ) %]
71
<li>LCCN: [% BIBLIO_RESULT.lccn %]</li>
72
[% END %]
73
[% IF ( BIBLIO_RESULT.url ) %]
74
<li>URL : [% BIBLIO_RESULT.url %]</li>
75
[% END %]
76
<li>Items:
77
<ul>
78
[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
79
<li>
80
[% ITEM_RESULT.branchname %]
81
[% ITEM_RESULT.location %]
82
[% IF ITEM_RESULT.itemcallnumber %]([% ITEM_RESULT.itemcallnumber %])[% END %]
83
[% ITEM_RESULT.barcode %]
84
</li>
85
[% END %]
86
</ul>
87
</ul>
88
</li>
89
[% END %]
90
</ol>
91
[% END %]
157
[% END %]
92
<END_MESSAGE>
158
<END_MESSAGE>
93
- 

Return to bug 8621