Bug 22023: Further improve responsive layout handling of staff client menu bar
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / basket.tt
blobd98466567525e6c917e77f093f2738f514d1def0
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% BLOCK controls %]
5     <p class="cart-controls">
6         <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>
7         | <b>Selected items :</b>
8         <a href="#" id="remove_from_cart">Remove</a>
10         [% IF ( loggedinusername ) %]
11             | <a href="#" id="add_to_list">Add to a list</a>
12         [% END %]
14         [% IF ( CAN_user_reserveforothers ) %]
15             | <a href="#" id="place_hold">Place hold</a>
16         [% END %]
18         [% IF CAN_user_tools_records_batchmod %]
19             | <a href="#" id="batch_modify">Batch modify</a>
20         [% END %]
22         [% IF CAN_user_tools_records_batchdel %]
23             | <a href="#" id="batch_delete">Batch delete</a>
24         [% END %]
25     </p>
26 [% END %]
27 [% INCLUDE 'doc-head-open.inc' %]
28 <title>Koha &rsaquo; Catalog &rsaquo; Your cart</title>
29 [% INCLUDE 'doc-head-close.inc' %]
30 </head>
32 <body id="cart_basket" class="cart">
34     <div class="main container-fluid">
35         <div class="row">
36             <div class="col-md-12">
38                 <div class="container">
40                     <h1>Your cart</h1>
42                     <div id="toolbar" class="btn-toolbar">
43                         [% IF ( verbose ) %]
44                             <a href="basket.pl" class="btn btn-default showdetails showless"><i class="fa fa-folder"></i> Brief display</a>
45                         [% ELSE %]
46                             <a href="basket.pl" class="btn btn-default showdetails showmore"><i class="fa fa-folder-open"></i> More details</a>
47                         [% END %]
49                         <a class="btn btn-default" href="basket.pl" id="send_cart"><i class="fa fa-envelope"></i> Send</a>
50                         <div class="btn-group">
51                             <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" id="downloadcart"><i class="fa fa-download"></i> Download <span class="caret"></span> </a>
52                             <ul class="dropdown-menu">
53                                 <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=iso2709&amp;bib_list=[% bib_list | uri %]">iso2709</a></li>
54                                 <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=ris&amp;bib_list=[% bib_list | uri %]">RIS</a></li>
55                                 <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=bibtex&amp;bib_list=[% bib_list | uri %]">BibTex</a></li>
56                             [% FOREACH csv_profile IN csv_profiles %]
57                                 <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id | uri %]&amp;bib_list=[% bib_list | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
58                             [% END %]
59                             </ul>
60                         </div>
61                         <a class="btn btn-default" href="basket.pl" id="print_cart"><i class="fa fa-print"></i> Print</a>
62                         <a class="btn btn-default" href="basket.pl" id="empty_cart"><i class="fa fa-trash"></i> Empty and close</a>
63                         <a class="btn btn-default close" href="basket.pl"><i class="fa fa-times-circle"></i> Hide window</a>
64                     </div>
67                     [% IF ( verbose ) %]
68                         [% PROCESS controls %]
69                         <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
70                             [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
71                                 <h3>
72                                     <input type="checkbox" class="select_record noprint" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]" />
73                                     [% BIBLIO_RESULT.title |html %]
74                                     [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield | html %][% END %]
75                                     [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
76                                 </h3>
77                                 <!-- COinS / Openurl -->
78                                 <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 | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
80                                 <table>
81                                     [% IF ( BIBLIO_RESULT.isbn ) %]
82                                         <tr>
83                                             <th scope="row">ISBN</th>
84                                             <td>[% BIBLIO_RESULT.isbn | html %]</td>
85                                         </tr>
86                                     [% END %]
88                                     [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
89                                         <tr>
90                                             <th scope="row">Author(s)</th>
91                                             <td>
92                                                 [% IF ( BIBLIO_RESULT.author ) %]
93                                                     <p>[% BIBLIO_RESULT.author | html %]</p>
94                                                 [% END %]
95                                                 [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
96                                                     [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
97                                                         <p>
98                                                             [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
99                                                                 [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
100                                                                 [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]
101                                                             [% END %]
102                                                         </p>
103                                                     [% END %]
104                                                 [% END %]
105                                             </td>
106                                         </tr>
107                                     [% END %]
109                                     [% IF ( BIBLIO_RESULT.publishercode ) %]
110                                         <tr>
111                                             <th scope="row">Publisher</th>
112                                             <td>[% BIBLIO_RESULT.place | html %] [% BIBLIO_RESULT.publishercode | html %] [% BIBLIO_RESULT.publicationyear | html %]
113                                             </td>
114                                         </tr>
115                                     [% END %]
117                                     [% IF ( BIBLIO_RESULT.pages ) %]
118                                         <tr>
119                                             <th scope="row">Details</th>
120                                             <td>[% BIBLIO_RESULT.pages | html %] [% BIBLIO_RESULT.illus | html %] [% BIBLIO_RESULT.item('size') | html %]</td>
121                                         </tr>
122                                     [% END %]
124                                     [% IF ( BIBLIO_RESULT.seriestitle ) %]
125                                         <tr>
126                                             <th scope="row">Collection</th>
127                                             <td> [% BIBLIO_RESULT.seriestitle | html %]</td>
128                                         </tr>
129                                     [% END %]
131                                     [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
132                                         <tr>
133                                             <th scope="row">Subject(s)</th>
134                                             <td>
135                                                 [% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
136                                                     <p>
137                                                         [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
138                                                             [% MARCSUBJECT_SUBFIELDS_LOO.separator | html %][% MARCSUBJECT_SUBFIELDS_LOO.value | html %]
139                                                         [% END %]
140                                                     </p>
141                                                 [% END %]
142                                             </td>
143                                         </tr>
144                                     [% END %]
146                                     [% IF ( BIBLIO_RESULT.copyrightdate ) %]
147                                         <tr><th scope="row">Copyright</th>
148                                             <td> [% BIBLIO_RESULT.copyrightdate | html %]</td>
149                                         </tr>
150                                     [% END %]
152                                     [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
153                                         <tr>
154                                             <th scope="row">Notes</th>
155                                             <td>
156                                                 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
157                                                     <p>
158                                                     [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
159                                                         - <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
160                                                     [% ELSE %]
161                                                         - [% MARCNOTE.marcnote | html %]
162                                                     [% END %]
163                                                 [% END %]
164                                             </td>
165                                         </tr>
166                                     [% END %]
168                                     [% IF ( BIBLIO_RESULT.unititle ) %]
169                                         <tr>
170                                             <th scope="row">Unified title</th>
171                                             <td> [% BIBLIO_RESULT.unititle | html %]</td>
172                                         </tr>
173                                     [% END %]
175                                     [% IF ( BIBLIO_RESULT.serial ) %]
176                                         <tr>
177                                             <th scope="row">Serial</th>
178                                             <td>[% BIBLIO_RESULT.serial | html %]</td>
179                                         </tr>
180                                     [% END %]
182                                     [% IF ( BIBLIO_RESULT.dewey ) %]
183                                         <tr>
184                                             <th scope="row">Dewey</th>
185                                             <td>[% BIBLIO_RESULT.dewey | html %]</td>
186                                         </tr>
187                                     [% END %]
189                                     [% IF ( BIBLIO_RESULT.classification ) %]
190                                         <tr>
191                                             <th scope="row">Classification</th>
192                                             <td> [% BIBLIO_RESULT.classification | html %]</td>
193                                         </tr>
194                                     [% END %]
196                                     [% IF ( BIBLIO_RESULT.lccn ) %]
197                                         <tr>
198                                             <th scope="row">LCCN</th>
199                                             <td> [% BIBLIO_RESULT.lccn | html %]</td>
200                                         </tr>
201                                     [% END %]
204                                     [% IF BIBLIO_RESULT.MARCURLS.size %]
205                                         <tr>
206                                             <th scope="row">URL(s)</th>
207                                             <td>
208                                                [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
209                                                     [% IF MARCurl.part %]<p>[% MARCurl.part | html %]</p>[% END %]
210                                                     <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
211                                                     [% IF MARCurl.notes %]
212                                                         [% FOREACH note IN MARCurl.notes %]
213                                                             <p>[% note.note | html %]</p>
214                                                         [% END %]
215                                                     [% END %]
216                                                 [% END %]
217                                             </td>
218                                         </tr>
219                                     [% END %]
221                                     <tr>
222                                         <th scope="row">Location(s)</th>
223                                         <td>
224                                             [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
225                                                 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
226                                                     <p>
227                                                         [% ITEM_RESULT.branchname | html %]
228                                                         <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
229                                                         [% IF ( ITEM_RESULT.itemcallnumber ) %]
230                                                             ([% ITEM_RESULT.itemcallnumber | html %])
231                                                         [% END %]
232                                                     </p>
233                                                 [% END %]
234                                             [% ELSE %]
235                                                 This record has no items.
236                                             [% END %]
237                                         </td>
238                                     </tr>
239                                 </table>
240                             [% END # /FOREACH BIBLIO_RESULT %]
241                         </form> [% # /bookbag_form %]
243                     [% ELSE # IF verbose %]
245                         <form action="/cgi-bin/koha/basket/basket.pl" method="get" name="bookbag_form" id="bookbag_form">
246                             [% PROCESS controls %]
248                             <table id="itemst">
249                                 <thead>
250                                     <tr>
251                                         <th class="NoSort noprint">&nbsp;</th>
252                                         <th class="anti-the">Title</th>
253                                         <th>Item type</th>
254                                         <th>
255                                             <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>
256                                         </th>
257                                     </tr>
258                                 </thead>
260                                 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
261                                     <tr>
262                                         <td class="noprint">
263                                             <input type="checkbox" class="select_record" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]" />
264                                         </td>
265                                         <td>
266                                             <a href="[% BIBLIO_RESULT.dest | url %]?biblionumber=[% BIBLIO_RESULT.biblionumber | uri %]" class="open_title">
267                                                 [% BIBLIO_RESULT.title |html %]
268                                                 [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %]
269                                                     [% subtitl.subfield | html %]
270                                                 [% END %]
271                                             </a>
272                                             [% BIBLIO_RESULT.author | html %]
273                                             <p>
274                                                 [% IF ( BIBLIO_RESULT.publishercode ) %]
275                                                     - [% BIBLIO_RESULT.publishercode | html %]
276                                                     [% IF ( BIBLIO_RESULT.place ) %]
277                                                         [% BIBLIO_RESULT.place | html %]
278                                                     [% END %]
279                                                 [% END %]
280                                                 [% IF ( BIBLIO_RESULT.pages ) %]
281                                                     - [% BIBLIO_RESULT.pages | html %]
282                                                     [% IF ( BIBLIO_RESULT.item('size') ) %]
283                                                         [% BIBLIO_RESULT.item('size') | html %]
284                                                     [% END %]
285                                                 [% END %]
286                                             </p>
287                                             [% IF ( BIBLIO_RESULT.notes ) %]
288                                                 <p>[% BIBLIO_RESULT.notes | html %]</p>
289                                             [% END %]
290                                             <!-- COinS / Openurl -->
291                                             <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 | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
292                                         </td>
293                                         <td>[% BIBLIO_RESULT.description | html %]</td>
294                                         <td class="callnumbers">
295                                             [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
296                                                 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
297                                                     <div>
298                                                         <span class="nowrap">
299                                                             <strong>
300                                                                 <span class="callnumber">[% ITEM_RESULT.itemcallnumber | html %]</span>
301                                                             </strong>
302                                                             [% ITEM_RESULT.branchname | html %]
303                                                             <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
304                                                         </span>
305                                                     </div>
306                                                 [% END %]
307                                             [% ELSE %]
308                                                 This record has no items.
309                                             [% END %]
310                                         </td>
311                                     </tr>
312                                 [% END # /FOREACH BIBLIO_RESULT %]
313                             </table>
314                         </form>
315                     [% END # /IF verbose %]
317                     <form name="myform" action="basket/basket.pl" method="get">
318                         <input type="hidden" name="records" id="records" />
319                     </form>
321                 </div> [% # /.container %]
322             </div> [% # /.col-md-12 %]
323         </div> [% # /.row %]
324     </div> [% # /.main.container-fluid %]
326     [% INCLUDE js_includes.inc %]
327     [% INCLUDE 'datatables.inc' %]
328     [% Asset.js("js/cart.js") | $raw %]
329     [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
331     </body>
332 </html>