Bug 12644 - Add subtitles to staff client cart
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / basket.tt
1 [% BLOCK controls %]
2     <p style="padding: 7px 0; border-top : 1px solid #E8E8E8;">
3         <a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a>
4         | <b>Selected items :</b>
5         <a href="#" id="remove_from_cart">Remove</a>
6
7         [% IF ( loggedinusername ) %]
8              | <a href="#" id="add_to_list">Add to a list</a>
9         [% END %]
10
11         [% IF ( CAN_user_reserveforothers ) %]
12              | <a href="#" id="place_hold">Place hold</a>
13         [% END %]
14
15         [% IF CAN_user_tools_records_batchmod %]
16             | <a href="#" id="batch_modify">Batch modify</a>
17         [% END %]
18
19         [% IF CAN_user_tools_records_batchdel %]
20             | <a href="#" id="batch_delete">Batch delete</a>
21         [% END %]
22     </p>
23 [% END %]
24 [% INCLUDE 'doc-head-open.inc' %]
25 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] Catalog &rsaquo; Your cart</title>
26     [% IF ( print_basket ) %]
27
28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
30 <style type="text/css">
31     @import url([% interface %]/[% theme %]/css/print.css);
32 </style>
33     [% ELSE %][% INCLUDE 'doc-head-close.inc' %]
34 <script type="text/javascript" src="[% interface %]/[% theme %]/js/cart.js"></script>
35 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
36 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
37 [% INCLUDE 'datatables.inc' %]
38         [% END %]
39 </head>
40 [% IF ( print_basket ) %]<body id="cart_basket" class="cart" onload="print();history.back();">[% ELSE %]<body id="cart_basket" class="cart">[% END %]
41
42 <div id="doc" class="yui-t7">
43 <div class="container">
44 [% UNLESS ( print_basket ) %]
45 <h1>Your cart</h1>
46
47 <div id="toolbar" class="btn-toolbar">
48     [% IF ( verbose ) %]
49         <a href="basket.pl" class="btn btn-default btn-sm showdetails showless"><i class="fa fa-folder"></i> Brief display</a>
50     [% ELSE %]
51         <a href="basket.pl" class="btn btn-default btn-sm showdetails showmore"><i class="fa fa-folder-open"></i> More details</a>
52     [% END %]
53
54     <a class="btn btn-default btn-sm" href="basket.pl" id="send_cart"><i class="fa fa-envelope"></i> Send</a>
55     <div class="btn-group">
56         <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#" id="downloadcart"><i class="fa fa-download"></i> Download <span class="caret"></span> </a>
57         <ul class="dropdown-menu">
58             <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=iso2709&amp;bib_list=[% bib_list %]">iso2709</a></li>
59             <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=ris&amp;bib_list=[% bib_list %]">RIS</a></li>
60             <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=bibtex&amp;bib_list=[% bib_list %]">BibTex</a></li>
61         [% FOREACH csv_profile IN csv_profiles %]
62             <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id %]&amp;bib_list=[% bib_list %]">CSV - [% csv_profile.profile %]</a></li>
63         [% END %]
64         </ul>
65     </div>
66     <a class="btn btn-default btn-sm" href="basket.pl" id="print_cart"><i class="fa fa-print"></i> Print</a>
67     <a class="btn btn-default btn-sm" href="basket.pl" id="empty_cart"><i class="fa fa-trash"></i> Empty and close</a>
68     <a class="btn btn-default btn-sm close" href="basket.pl"><i class="fa fa-times-circle"></i> Hide window</a>
69 </div>
70         [% END %]
71
72 [% IF ( verbose ) %]
73     [% UNLESS ( print_basket ) %]
74         [% PROCESS controls %]
75     [% END %]
76             <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
77     [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
78     <h3>
79         [% IF ( print_basket ) %]
80             [% BIBLIO_RESULT.title |html %]
81                 [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %]
82                 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author %][% END %]
83         [% ELSE %]
84                 <input type="checkbox" class="select_record" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" />
85                 [% BIBLIO_RESULT.title |html %]
86                 [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %]
87                 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author %][% END %]
88         [% END %]
89     </h3>
90             <!-- COinS / Openurl -->
91     <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition %]&amp;rft.series=[% BIBLIO_RESULT.series %]&amp;rft.genre="></span>
92     <table>
93         [% IF ( BIBLIO_RESULT.isbn ) %]
94         <tr>
95             <th scope="row">ISBN</th>
96             <td>[% BIBLIO_RESULT.isbn %]</td>
97         </tr>
98         [% END %]
99
100         [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
101         <tr>
102             <th scope="row">Author(s)</th>
103             <td>
104                    [% IF ( BIBLIO_RESULT.author ) %]
105                        <p>[% BIBLIO_RESULT.author %]</p>
106                    [% END %]
107                    [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
108                        [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
109                        <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
110                               [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
111                                   [% MARCAUTHOR_SUBFIELDS_LOO.value %]
112                            [% END %]
113                        </p>
114                        [% END %]
115                    [% END %]
116             </td>
117         </tr>
118         [% END %]
119
120         [% IF ( BIBLIO_RESULT.publishercode ) %]
121             <tr>
122                 <th scope="row">Publisher</th>
123                 <td>[% BIBLIO_RESULT.place %] [% BIBLIO_RESULT.publishercode %] [% BIBLIO_RESULT.publicationyear %]
124                 </td>
125             </tr>
126         [% END %]
127         [% IF ( BIBLIO_RESULT.pages ) %]
128             <tr>
129                 <th scope="row">Details</th>
130                 <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td>
131             </tr>
132         [% END %]
133         [% IF ( BIBLIO_RESULT.seriestitle ) %]
134         <tr>
135             <th scope="row">Collection</th>
136             <td> [% BIBLIO_RESULT.seriestitle %]</td>
137         </tr>
138         [% END %]
139
140         [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
141         <tr>
142             <th scope="row">Subject(s)</th>
143             <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
144                    <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
145                         [% MARCSUBJECT_SUBFIELDS_LOO.separator %][% MARCSUBJECT_SUBFIELDS_LOO.value %][% END %]
146                    </p>
147                 [% END %]</td>
148         </tr>
149         [% END %]
150
151         [% IF ( BIBLIO_RESULT.copyrightdate ) %]
152             <tr><th scope="row">Copyright</th>
153                 <td> [% BIBLIO_RESULT.copyrightdate %]</td>
154             </tr>
155         [% END %]
156
157         [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
158         <tr>
159             <th scope="row">Notes</th>
160             <td>
161             [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
162                 <p>
163                 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
164                     - <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
165                 [% ELSE %]
166                     - [% MARCNOTE.marcnote %]
167                 [% END %]
168             [% END %]
169             </td>
170         </tr>
171         [% END %]
172
173         [% IF ( BIBLIO_RESULT.unititle ) %]
174         <tr>
175             <th scope="row">Unified title</th>
176             <td> [% BIBLIO_RESULT.unititle %]</td>
177         </tr>
178         [% END %]
179         [% IF ( BIBLIO_RESULT.serial ) %]
180         <tr>
181             <th scope="row">Serial</th>
182             <td>[% BIBLIO_RESULT.serial %]</td>
183         </tr>
184         [% END %]
185         [% IF ( BIBLIO_RESULT.dewey ) %]
186         <tr>
187             <th scope="row">Dewey</th>
188             <td>[% BIBLIO_RESULT.dewey %]</td>
189         </tr>
190         [% END %]
191         [% IF ( BIBLIO_RESULT.classification ) %]
192         <tr>
193             <th scope="row">Classification</th>
194             <td> [% BIBLIO_RESULT.classification %]</td>
195         </tr>
196         [% END %]
197         [% IF ( BIBLIO_RESULT.lccn ) %]
198         <tr>
199             <th scope="row">LCCN</th>
200             <td> [% BIBLIO_RESULT.lccn %]</td>
201         </tr>
202         [% END %]
203
204
205         [% IF BIBLIO_RESULT.MARCURLS.size %]
206             <tr>
207                 <th scope="row">URL(s)</th>
208                 <td>
209                    [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
210                         [% IF MARCurl.part %]<p>[% MARCurl.part %]</p>[% END %]
211
212                         <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
213
214                         [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note %]</p>[% END %][% END %]
215                     [% END %]
216                 </td>
217             </tr>
218         [% END %]
219
220         <tr>
221             <th scope="row">Location(s)</th>
222             <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
223                 <p>
224                     [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %]
225                     [% IF ( ITEM_RESULT.itemcallnumber ) %]
226                         ([% ITEM_RESULT.itemcallnumber %])
227                     [% END %]
228                 </p>
229                 [% END %][% ELSE %]This record has no items.[% END %]</td>
230         </tr>
231     </table>
232     [% END %]
233             </form>
234
235 [% ELSE %]
236 [% UNLESS ( print_basket ) %]
237     <form action="/cgi-bin/koha/basket/basket.pl" method="get" name="bookbag_form" id="bookbag_form">
238     [% PROCESS controls %]
239 [% END %]
240
241     <table id="itemst">
242         <thead><tr>
243         [% UNLESS ( print_basket ) %]<th class="NoSort">&nbsp;</th>[% END %]
244         <th class="anti-the">Title</th>
245         <th>Item type</th>
246         <th><a id="items-popover" href="#" data-trigger="hover" data-toggle="popover" data-placement="top" title="Item sorting" data-content="Items are sorted by the highest or lowest callnumber in a group of items respectively.">Items</a></th>
247         </tr></thead>
248
249         [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
250                 <tr>
251             [% UNLESS ( print_basket ) %]<td>
252                         <input type="checkbox" class="select_record" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" />
253
254                 </td> [% END %]
255             <td><a href="[% BIBLIO_RESULT.dest %]?biblionumber=[% BIBLIO_RESULT.biblionumber %]" class="open_title">
256                         [% BIBLIO_RESULT.title |html %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %]
257                     </a>
258                         [% BIBLIO_RESULT.author %]
259                         <p>[% IF ( BIBLIO_RESULT.publishercode ) %]- [% BIBLIO_RESULT.publishercode %]
260                         [% IF ( BIBLIO_RESULT.place ) %] [% BIBLIO_RESULT.place %][% END %][% END %]
261                         [% IF ( BIBLIO_RESULT.pages ) %] - [% BIBLIO_RESULT.pages %][% IF ( BIBLIO_RESULT.item('size') ) %] [% BIBLIO_RESULT.item('size') %]
262                         [% END %]
263                         [% END %]</p>
264                         [% IF ( BIBLIO_RESULT.notes ) %]
265                         <p>[% BIBLIO_RESULT.notes %]</p>
266                         [% END %]
267                                                     <!-- COinS / Openurl -->
268     <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition %]&amp;rft.series=[% BIBLIO_RESULT.series %]&amp;rft.genre="></span>
269
270                                                 </td>
271             <td>[% BIBLIO_RESULT.description %]</td>
272             <td class="callnumbers">
273                 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
274                     [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
275                         <div><span class="nowrap"><strong><span class="callnumber">[% ITEM_RESULT.itemcallnumber %]</span></strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div>
276                     [% END %]
277                 [% ELSE %]
278                     This record has no items.
279                 [% END %]
280             </td>
281             </tr>
282         [% END %]
283     </table></form>
284 [% END %]
285
286 <form name="myform" action="basket/basket.pl" method="get">
287     <input type="hidden" name="records" id="records" />
288 </form>
289
290 </div>
291 </div>
292 </body>
293 </html>