Bug 11529: Add templates for biblio title display. Unify display.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE AuthorisedValues %]
6 [% USE Branches %]
7 [% USE Biblio %]
8 [% USE ColumnsSettings %]
9 [% USE Stash %]
10 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12
13 [% IF Koha.Preference('AmazonAssocTag') %]
14     [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
15 [% ELSE %]
16     [% AmazonAssocTag = '' %]
17 [% END %]
18
19 [% ShowCourseReserves = 0 | html %]
20 [% IF UseCourseReserves %]
21     [% FOREACH item IN itemloop %]
22        [% IF item.course_reserves %]
23            [% FOREACH r IN item.course_reserves %]
24                [% IF r.course.enabled == 'yes' %]
25                    [% ShowCourseReserves = 1 | html %]
26                [% END %]
27            [% END %]
28         [% END %]
29     [% END %]
30 [% END %]
31
32 [% SET footerjs = 1 %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>Koha &rsaquo; Catalog &rsaquo;
35   [% IF ( unknownbiblionumber ) %]
36     Unknown record
37   [% ELSE %]
38     Details for [% INCLUDE 'biblio-title-head.inc' biblio=Stash.stash() %]
39   [% END %]
40 </title>
41 [% INCLUDE 'doc-head-close.inc' %]
42 </head>
43
44 <body id="catalog_detail" class="catalog">
45
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
48
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo;
50   [% IF ( unknownbiblionumber ) %]
51     Unknown record
52   [% ELSE %]
53     Details for <i>[% INCLUDE 'biblio-title.inc' biblio=Stash.stash() %]</i>
54   [% END %]
55 </div>
56
57 <div class="main container-fluid">
58     <div class="row">
59         <div class="col-sm-10 col-sm-push-2">
60             <main>
61                 <div class="row">
62
63 [% IF ( unknownbiblionumber ) %]
64   <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
65 [% ELSE %]
66
67 [% INCLUDE 'cat-toolbar.inc' %]
68     [% IF ( ocoins ) %]
69         <!-- COinS / OpenURL -->
70         <span class="Z3988" title="[% ocoins | html %]"></span>
71     [% END %]
72
73     [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
74         <div id="catalogue_detail_biblio" class="col-xs-9">
75     [% ELSE %]
76         <div id="catalogue_detail_biblio" class="col-xs-12">
77     [% END %]
78
79         [% XSLTBloc | $raw %]
80
81         [% IF shelves.count %]
82             <span class="results_summary"><span class="label">Lists that include this title: </span>
83             [% FOREACH s IN shelves %]
84                 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
85                 [% IF ( loop.last ) %][% ELSE %]|[% END %]
86             [% END %]
87             </span>
88         [% END %]
89         [% IF ( TagsEnabled &&  TagsShowOnDetail &&  TagLoop ) %]
90                 <span class="results_summary"><span class="label">Tags:</span>
91                     [% FOREACH TagLoo IN TagLoop %]
92                         [% IF ( CAN_user_tools_moderate_tags ) %]
93                         <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
94                         [% ELSE %]
95                         [% TagLoo.term | html %]
96                         [% END %]
97                         <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
98                     [% END %]
99                     </span>
100         [% END %]
101         <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
102
103         [% IF ( holdcount ) %]
104             <span class="results_summary">
105                 <span class="label">Holds:</span>
106                 <span class="number_box">
107                     [% IF CAN_user_reserveforothers_place_holds %]
108                         <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
109                     [% ELSE %]
110                         <span>[% holdcount | html %]</span>
111                     [% END %]
112                 </span>
113             </span>
114         [% END %]
115
116         [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
117             <span class="results_summary">
118                 <span class="label">Article requests:</span>
119                 <span class="number_box">
120                     <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
121                 </span>
122             </span>
123         [% END %]
124
125         [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
126         </div><div class="col-xs-3" id="bookcoverimg">
127         [% IF ( LocalCoverImages ) %]
128             <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
129         [% END %]
130         [% IF ( AdlibrisEnabled && normalized_isbn ) %]
131             <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" /></a>
132         [% END %]
133         [% IF ( AmazonCoverImages ) %]
134             <div id="amazon-bookcoverimg">
135             <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
136                 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
137         </a></div>
138         [% END %]
139         [% END %]
140
141 </div>
142 </div>
143 <div id="bibliodetails" class="toptabs">
144
145 <ul>
146     [% IF (SeparateHoldings) %]
147         <li>
148             <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
149         </li>
150         <li>
151             <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
152         </li>
153     [% ELSE %]
154         <li>
155             <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
156         </li>
157     [% END %]
158 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
159 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
160 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
161 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
162 [% IF ( LocalCoverImages ) %]
163     [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
164         <li>
165             <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
166         </li>
167     [% END %]
168 [% END %]
169 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
170 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
171     <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
172 [% END %]
173 </ul>
174
175 [% items_table_block_iter = 0 %]
176 [% BLOCK items_table %]
177     [% items_table_block_iter = items_table_block_iter + 1 %]
178     <div class="[% tab | html %]_table_table_controls">
179         [% IF (StaffDetailItemSelection) %]
180             | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
181             <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
182             <span class="itemselection_actions">
183               | Actions:
184               [% IF CAN_user_tools_items_batchdel %]
185                 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
186               [% END %]
187               [% IF CAN_user_tools_items_batchmod %]
188                 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
189               [% END %]
190             </span>
191         [% END %]
192     </div>
193     <table class="items_table" id="[% tab | html %]_table">
194         <thead>
195             <tr>
196                 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
197                 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
198                 <th>Current location</th>
199                 <th>Home library</th>
200                 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
201                 <th>Call number</th>
202                 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
203                 <th>Status</th>
204                 <th class="title-string">Last seen</th>
205                 <th class="title-string">Date accessioned</th>
206                 <th>Barcode</th>
207                 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
208                 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
209                 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
210                 [% IF materials %]<th>Materials specified</th>[% END %]
211                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
212                 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
213                 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
214                 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
215                 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
216                 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
217                 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort">&nbsp;</th>[% END %]
218             </tr>
219         </thead>
220         <tbody>
221             [% FOREACH item IN items %]
222                 <tr>
223                 [% IF (StaffDetailItemSelection) %]
224                     <td style="text-align:center;vertical-align:middle">
225                         <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
226                     </td>
227                 [% END %]
228                     [% IF ( item_level_itypes ) %]
229                         <td class="itype">
230                             [% IF !noItemTypeImages && item.imageurl %]
231                                 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
232                             [% END %]
233                             [% item.translated_description | html %]
234                         </td>
235                     [% END %]
236                     <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
237                     <td class="homebranch">
238                         [% Branches.GetName(item.homebranch) | html %]
239                         <span class="shelvingloc">[% item.location | html %]</span>
240                     </td>
241                     [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
242                     <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
243                     [% IF ( volinfo ) %]
244                         <td class="enumchron">
245                             [% IF ( itemdata_enumchron ) %]
246                                 [% IF item.enumchron && item.serialseq %]
247                                     <span class="enum">[% item.enumchron | html %]</span>
248                                     [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
249                                         <span class="sep"> -- </span>
250                                         <span class="serialseq">[% item.serialseq | html %]</span>
251                                     [% END %]
252                                 [% ELSIF item.enumchron %]
253                                     <span class="enum">[% item.enumchron | html %]</span>
254                                 [% ELSIF item.serialseq %]
255                                     <span class="serialseq">[% item.serialseq | html %]</span>
256                                 [% END %]
257                                 [% IF ( item.publisheddate ) %]
258                                     <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
259                                 [% END %]
260                             [% END %]
261                         </td>
262                     [% END %]
263                     <td class="status">
264
265                         [% IF item.CheckedOutFor %]
266                           [% IF item.onsite_checkout %]
267                             <span>Currently in local use
268                           [% ELSE %]
269                             <span class="datedue">Checked out
270                           [% END %]
271                                 [% UNLESS ( item.NOTSAMEBRANCH ) %]
272                                   [% IF item.onsite_checkout %]
273                                     by
274                                   [% ELSE %]
275                                     to
276                                   [% END %]
277                                   [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
278                                 [% END %]
279                                 : due [% item.datedue | html %]
280                             </span>
281                         [% ELSIF ( item.transfertwhen ) %]
282                             <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
283                         [% END %]
284
285                         [% IF ( item.itemlost ) %]
286                             [% IF itemlostloop %]
287                                 [% FOREACH itemlostloo IN itemlostloop %]
288                                     [% IF itemlostloo.authorised_value == item.itemlost %]
289                                         <span class="lost">[% itemlostloo.lib | html %]</span>
290                                     [% END %]
291                                 [% END %]
292                             [% ELSE %]
293                                 <span class="lost">Unavailable (lost or missing)</span>
294                             [% END %]
295                         [% END %]
296
297                         [% IF ( item.withdrawn ) %]
298                             [% IF itemwithdrawnloop %]
299                                 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
300                                     [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
301                                         <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
302                                     [% END %]
303                                 [% END %]
304                             [% ELSE %]
305                                 <span class="wdn">Withdrawn</span>
306                             [% END %]
307                         [% END %]
308
309                         [% IF ( item.damaged ) %]
310                             [% IF itemdamagedloop %]
311                                 [% FOREACH itemdamagedloo IN itemdamagedloop %]
312                                     [% IF itemdamagedloo.authorised_value == item.damaged %]
313                                         <span class="dmg">[% itemdamagedloo.lib | html %]</span>
314                                     [% END %]
315                                 [% END %]
316                             [% ELSE %]
317                                 <span class="dmg">Damaged</span>
318                             [% END %]
319                         [% END %]
320
321                         [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
322                             Not for loan
323                             [% IF ( item.notforloanvalue ) %]
324                                 ([% item.notforloanvalue | html %])
325                             [% END %]
326                         [% END %]
327
328                         [% IF ( item.reservedate ) %]
329                             [% IF ( item.waitingdate ) %]
330                                 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
331                             [% ELSE %]
332                                 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
333                             [% END %]
334                             [% IF ( canreservefromotherbranches ) %]
335                                 Hold for:
336                                 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
337                             [% END %]
338                         [% END %]
339                         [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
340                             Available
341                         [% END %]
342
343                         [% IF ( item.restricted ) %]
344                             <span class="restricted">([% item.restrictedvalue | html %])</span>
345                         [% END %]
346
347                     </td>
348                     <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
349                     <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
350                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&amp;itemnumber=[% item.itemnumber | uri %]&amp;biblionumber=[% item.biblionumber | uri %]&amp;bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
351                     [% IF ( itemdata_uri ) %]
352                         <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
353                     [% END %]
354                     [% IF ( itemdata_copynumber ) %]
355                         <td class="copynumber">[% item.copynumber | html %]</td>
356                     [% END %]
357                     [% IF ( itemdata_stocknumber ) %]
358                         <td class="stocknumber">[% item.stocknumber | html %]</td>
359                     [% END %]
360                     [% IF materials %]
361                         <td class="materials"> [% item.materials | html %] </td>
362                     [% END %]
363                     [% IF ( itemdata_itemnotes ) %]
364                         <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
365                     [% END %]
366                     [% IF itemdata_nonpublicnotes %]
367                         <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
368                     [% END %]
369                     [% IF ( SpineLabelShowPrintOnBibDetails ) %]
370                         <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]" >Print label</a></td>
371                     [% END %]
372                     [% IF ( hostrecords ) %]
373                         <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
374                     [% END %]
375                     [% IF ( analyze ) %]
376                         <td>
377                             [% IF ( item.countanalytics ) %]
378                                 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
379                             [% END %]
380                         </td>
381                     [% END %]
382                     [% IF ( analyze ) %]
383                         <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&amp;hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
384                     [% END %]
385
386                 [% IF ShowCourseReserves %]
387                     <td>
388                         [% IF item.course_reserves %]
389                             [% FOREACH r IN item.course_reserves %]
390                                 [% IF r.course.enabled == 'yes' %]
391                                     <p>
392                                       <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
393                                          [% r.course.course_name | html %]
394                                          <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
395                                          [% IF r.course.section %] [% r.course.section | html %] [% END %]
396                                          [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
397                                       </a>
398                                    </p>
399                                [% END %]
400                            [% END %]
401                        [% END %]
402                     </td>
403                 [% END %]
404                 [% IF CAN_user_editcatalogue_edit_items %]
405                     <td class="actions">
406                         [% UNLESS item.cannot_be_edited %]
407                             <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
408                         [% END %]
409                     </td>
410                 [% END %]
411                 </tr>
412             [% END %]
413         </tbody>
414     </table>
415 [% END %][%# end of block items_table %]
416
417 <div id="holdings">
418
419 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
420     <span class="results_summary NovelistSelect" style="display:none;">
421         <span class="label">Novelist Select: </span>
422         <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
423     </span>
424 [% END %]
425
426 [% IF ( count ) %]
427     [% IF ( showncount ) %]
428         [% PROCESS items_table tab="holdings" items=itemloop %]
429         [% END %]
430                 [% IF ( hiddencount ) %]
431                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
432                 [% END %]               
433                 [% IF ( debug_display ) %]
434                 <br /><br />
435                 <table>
436                         <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
437                         <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
438                         <tr><td>serial</td><td>[% serial | html %]</td></tr>
439                 </table>
440                 [% END %]
441 [% ELSE %]
442     [% IF ( ALTERNATEHOLDINGS ) %]
443     [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
444         <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
445     [% END %]
446     [% ELSE %]
447     <div id="noitems">No physical items for this record</div>
448     [% END %]
449 [% END %]
450
451 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
452     <span class="results_summary NovelistSelect" style="display:none;">
453         <span class="label">Novelist Select: </span>
454         <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
455     </span>
456 [% END %]
457     </div>
458
459 [% IF (SeparateHoldings) %]
460     <div id="otherholdings">
461         [% IF (otheritemloop.size) %]
462             [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
463         [% ELSE %]
464             No other items.
465         [% END %]
466     </div>
467 [% END %]
468
469 [% IF ( MARCNOTES || notes ) %]
470
471 <div id="description">
472 <div class="content_set">
473
474 [% IF ( MARCNOTES ) %]
475     [% FOREACH MARCNOTE IN MARCNOTES %]
476         <p>
477         [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
478             <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
479         [% ELSE %]
480             [% MARCNOTE.marcnote | html | html_line_break %]
481         [% END %]
482         </p>
483     [% END %]
484 [% ELSE %]
485     [% IF ( notes ) %]
486         <p>[% notes | html %]</p>
487     [% END %]
488 [% END %]
489 </div>
490 </div>
491
492 [% END %]
493
494 [% IF ( subscriptionsnumber ) %]
495 <div id="subscriptions">
496 <div id="catalogue_detail_subscriptions">
497     <h2>This is a serial subscription</h2>
498     <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p> 
499     [% FOREACH subscription IN subscriptions %]
500             [% IF subscription.branchcode %]
501                 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
502             [% END %]
503             [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
504             [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
505             [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
506             [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
507             [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
508             [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
509             [% IF ( subscription.latestserials ) %]
510             <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
511             <table>
512                 <tr>
513                     <th>Issue #</th>
514                     <th>Date arrived</th>
515                     <th>Date published</th>
516                     <th>Status</th>
517                     <th>Note</th>
518                 </tr>
519             [% FOREACH latestserial IN subscription.latestserials %]
520                 <tr>
521                     <td>[% latestserial.serialseq | html %]</td>
522                     <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
523                     <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
524                     <td>
525                       [% IF ( latestserial.status1 ) %]Expected[% END %]
526                       [% IF ( latestserial.status2 ) %]Arrived[% END %]
527                       [% IF ( latestserial.status3 ) %]Late[% END %]
528                       [% IF ( latestserial.status4 ) %]Missing[% END %]
529                       [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
530                       [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
531                       [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
532                       [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
533                       [% IF ( latestserial.status5 ) %]Not issued[% END %]
534                       [% IF ( latestserial.status6 ) %]Delete[% END %]
535                       [% IF ( latestserial.status7 ) %]Claimed[% END %]
536                       [% IF ( latestserial.status8 ) %]Stopped[% END %]
537                     </td>
538                     <td>[% latestserial.notes | html %]</td>
539                 </tr>
540             [% END %]
541             </table>
542             [% END %]
543             <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
544     [% END %]
545 </div>
546 </div>
547 [% END %]
548
549 [% IF Koha.Preference('AcquisitionDetails') %]
550 <div id="acq_details">
551   [% IF orders %]
552     <table id="orders">
553       <thead>
554         <tr>
555           <th>Vendor</th>
556           <th>Invoice</th>
557           <th>Basket group</th>
558           <th>Basket</th>
559           <th>Order number</th>
560           <th class="title-string">Creation date</th>
561           <th class="title-string">Receive date</th>
562           <th>Status</th>
563           <th>Quantity</th>
564           <th>Internal note</th>
565           <th>Subscription</th>
566           <th>Subscription callnumber</th>
567         </tr>
568       </thead>
569       <tbody>
570       [% FOR order IN orders %]
571         [% SET basket = order.basket %]
572         [% SET vendor = basket.bookseller %]
573           <tr>
574             <td>
575                 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
576             </td>
577             <td>
578             [% IF order.invoiceid %]
579                 [% IF CAN_user_acquisition %]
580                     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
581                        title="Invoice detail page">
582                        [% order.invoice.invoicenumber | html %]</a>
583                 [% ELSE %]
584                     [% order.invoice.invoicenumber | html %]
585                 [% END %]
586             [% END %]
587             </td>
588             <td>
589             [% IF basket.basketgroupid %]
590                 [% SET basket_group = basket.basket_group %]
591                 [% IF CAN_user_acquisition_group_manage %]
592                     <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% vendor.id | uri %]&basketgroupid=[% basket_group.id | uri %]">[% basket_group.name | html%] ([% basket_group.id | html %])</a>
593                 [% ELSE %]
594                     [% basket_group.name | html %] ([% basket_group.id | html %])
595                 [% END %]
596             [% END %]
597             </td>
598             <td>[% IF CAN_user_acquisition_order_manage %]
599                 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
600             [% ELSE %]
601                 [% basket.basketname | html %] ([% basket.basketno | html %])
602             [% END %]</td>
603             <td>[% order.ordernumber | html %]</td>
604             <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
605             <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
606             <td>
607               [% SWITCH order.orderstatus %]
608                 [% CASE 'new' %]New
609                 [% CASE 'ordered' %]Ordered
610                 [% CASE 'partial' %]Partial
611                 [% CASE 'complete' %]Complete
612                 [% CASE 'cancelled' %]Cancelled
613               [% END %]
614             </td>
615             <td>[% order.quantity | html %]</td>
616             <td>[% order.order_internalnote | html %]</td>
617             <td>
618                 [% IF order.subscriptionid %]
619                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
620                 [% END %]
621             </td>
622             <td>
623                 [% IF order.subscriptionid %]
624                     [% order.subscription.callnumber | html %]
625                 [% END %]
626             </td>
627           </tr>
628       [% END %]
629       </tbody>
630     </table>
631   [% ELSE %]
632     There is no order for this biblio.
633   [% END %]
634 </div>
635 [% END %]
636
637 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
638 <div id="editions"><h4>Editions</h4>
639 <table>
640 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
641 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
642 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] &copy;[% XISBN.copyrightdate | html %]
643   [% IF ( XISBN.publishercode ) %]
644 [% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
645     [% END %]
646                 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
647                 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
648 </td>
649
650 [% END %]
651 </table></div>[% END %]
652 [% END %]
653
654 [% IF ( LocalCoverImages ) %]
655     <div id="images">
656         [% IF ( localimages.0 ) %]
657             <p>Click on an image to view it in the image viewer</p>
658             <ul class="thumbnails">
659                 [% FOREACH image IN localimages %]
660                     [% IF image %]
661                         <li id="imagenumber-[% image | html %]" class="thumbnail">
662                             <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&amp;imagenumber=[% image | uri %]">
663                                 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image | uri %]" />
664                             </a>
665                             [% IF CAN_user_tools_upload_local_cover_images %]
666                                 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
667                             [% END %]
668                         </li>
669                     [% END %]
670                 [% END %]
671             </ul>
672         [% ELSE # - No image passed JavaScript takes care %]
673             No images have been uploaded for this bibliographic record yet.
674         [% END %]
675         [% IF ( CAN_user_tools_upload_local_cover_images ) %]
676             <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&amp;filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
677             </p>
678         [% END %]
679     </div>
680 [% END %]
681
682 [% IF ( HTML5MediaEnabled ) %]
683 <div id="html5media">
684           [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
685             <p>
686               <[% HTML5MediaParent | html %] controls preload=none>
687                 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
688                 [[% HTML5MediaParent | html %] tag not supported by your browser.]
689               </[% HTML5MediaParent | html %]>
690             </p>
691           [% END %]
692 </div>
693 [% END %]
694
695
696 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
697     <div id="NovelistSelect" class="novelistSelect">
698         <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
699     </div>
700 [% END %]
701
702 </div><!-- /bibliodetails -->
703
704 <div id="export" style="margin-top: 1em;">
705 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
706 <table>  <tr>
707       <th>Save record</th>   </tr>
708     <tr><td> Select download format:    <select name="format">
709         <option value="mods">MODS (XML)</option>
710         <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
711         <option value="marcxml">MARCXML</option>
712         <option value="marc8">MARC (non-Unicode/MARC-8)</option>
713         <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
714         <input type="submit" name="save" value="Download record" /></td>
715   </tr>
716   <tr><td>
717     <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
718   </td></tr>
719 </table>
720 </form>
721 </div>
722
723 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
724     <div class="modal-dialog modal-lg">
725     <div class="modal-content">
726     <div class="modal-header">
727         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
728         <h3 id="marcPreviewLabel">MARC preview</h3>
729     </div>
730     <div class="modal-body">
731         <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
732     </div>
733     <div class="modal-footer">
734         <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
735     </div>
736     </div>
737     </div>
738 </div>
739
740             </main>
741         </div> <!-- /.col-sm-10.col-sm-push-2 -->
742
743         <div class="col-sm-2 col-sm-pull-10">
744             <aside>
745                 [% INCLUDE 'biblio-view-menu.inc' %]
746             </aside>
747         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
748      </div> <!-- /.row -->
749
750 [% END %]
751
752 [% MACRO jsinclude BLOCK %]
753     [% INCLUDE 'catalog-strings.inc' %]
754     [% Asset.js("js/catalog.js") | $raw %]
755     [% INCLUDE 'greybox.inc' %]
756     <script>
757         var interface = "[% interface | html %]";
758         var theme = "[% theme | html %]";
759         // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
760         function verify_images() {
761             $("#bookcoverimg").each(function(i){
762                 $(this).find('img').each(function(i){
763                    if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
764                         w = this.width;
765                         h = this.height;
766                         if ((w == 1) || (h == 1)) {
767                             $("#amazon-bookcoverimg").remove();
768                             $("#catalogue_detail_biblio").attr("class","col-xs-12");
769                         } else if ((this.complete != null) && (!this.complete)) {
770                             $("#amazon-bookcoverimg").remove();
771                             $("#catalogue_detail_biblio").attr("class","col-xs-12");
772                         }
773                     }
774                 });
775                 if( $(this).find('img').length < 1 ) $(this).remove();
776             });
777             $("#editions img").each(function(i){
778                 if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
779                     w = this.width;
780                     h = this.height;
781                     if ((w == 1) || (h == 1)) {
782                         this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
783                     } else if ((this.complete != null) && (!this.complete)) {
784                         this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
785                     }
786                 }
787             });
788         }
789
790         function removeLocalImage(imagenumber) {
791             var thumbnail = $("#imagenumber-" + imagenumber );
792             var copy = thumbnail.html();
793             thumbnail.find("img").css("opacity", ".2");
794             thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
795             $.ajax({
796                 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
797                 success: function(data) {
798                     $(data).each( function(i) {
799                         if ( this.deleted == 1 ) {
800                             thumbnail.remove();
801                         } else {
802                             thumbnail.html( copy );
803                             alert(_("An error occurred on deleting this image"));
804                         }
805                         if ( $('ul.thumbnails > li').length == 0 ) {
806                             showNoImageMessage();
807                         }
808                     });
809                 },
810                 error: function(data) {
811                     thumbnail.html( copy );
812                     alert(_("An error occurred on deleting this image"));
813                 }
814             });
815         }
816
817         function showNoImageMessage() {
818             var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
819             no_images_msg = '<p>' + no_images_msg + '</p>';
820             [% IF ( CAN_user_tools_upload_local_cover_images ) %]
821                 var please_upload = _("Upload an image file: %sUpload%s").format("<a class='btn btn-default btn-xs' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber + "&amp;filetype=image'><i class='fa fa-upload' aria-hidden='true'></i> ","</a>");
822                 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
823             [% END %]
824             $('#images').html(no_images_msg);
825         }
826
827         [% IF StaffDetailItemSelection %]
828             function itemSelectionBuildDeleteLink(div) {
829                 var itemnumbers = new Array();
830                 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
831                     itemnumbers.push($(this).val());
832                 });
833                 if (itemnumbers.length > 0) {
834                     var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
835                     url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
836                     url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
837                     $('a.itemselection_action_delete').attr('href', url);
838                 } else {
839                     return false;
840                 }
841                 return true
842             }
843
844             function itemSelectionBuildModifyLink(div) {
845                 var itemnumbers = new Array();
846                 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
847                     itemnumbers.push($(this).val());
848                 });
849                 if (itemnumbers.length > 0) {
850                     var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
851                     url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
852                     url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
853                     $('a.itemselection_action_modify').attr('href', url);
854                 } else {
855                     return false;
856                 }
857                 return true;
858             }
859
860             function itemSelectionBuildActionLinks(tab) {
861                 var div = $("#" + tab);
862                 var delete_link_ok = itemSelectionBuildDeleteLink(div);
863                 var modify_link_ok = itemSelectionBuildModifyLink(div);
864                 if (modify_link_ok || delete_link_ok) {
865                     $('.itemselection_actions', div).show();
866                 } else {
867                     $('.itemselection_actions', div).hide();
868                 }
869             }
870
871             $(document).ready(function() {
872                 $('table.items_table').each(function() {
873                     var div = $(this).parent().attr("id");
874                     itemSelectionBuildActionLinks(div);
875                 });
876
877                 $("input[name='itemnumber'][type='checkbox']").change(function() {
878                     var div = $(this).parents('table').parent().parent().attr("id");
879                     itemSelectionBuildActionLinks(div);
880                 });
881
882                 $(".SelectAll").on("click",function(e){
883                     e.preventDefault();
884                     var tab = $(this).data("tab");
885                     $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
886                     itemSelectionBuildActionLinks(tab);
887                 });
888
889                 $(".ClearAll").on("click",function(e){
890                     e.preventDefault();
891                     var tab = $(this).data("tab");
892                     $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
893                     itemSelectionBuildActionLinks(tab);
894                 });
895             });
896         [% END %]
897
898         $(document).ready(function() {
899             $('#bibliodetails').tabs();
900             [% IF count == 0 %]
901                 $('#bibliodetails').tabs("option", "active", 3);
902             [% END %]
903             $('#search-form').focus();
904             $('.thumbnails > li > .remove').click(function() {
905                 var result = confirm(_("Are you sure you want to delete this cover image?"));
906
907                 if ( result == true ) {
908                     var imagenumber = $(this).parent().attr('id').split('-')[1];
909                     removeLocalImage(imagenumber);
910                 }
911
912                 return false;
913             });
914             [%# inject no images message %]
915             [% IF LocalCoverImages %]
916                 KOHA.LocalCover.GetCoverFromBibnumber(true);
917             [% END %]
918             $("body").on("click",".previewMARC", function(e){
919                 e.preventDefault();
920                 var page = $(this).attr("href");
921                 $("#marcPreview .modal-body").load(page + " table");
922                 $('#marcPreview').modal({show:true});
923             });
924             $("#marcPreview").on("hidden.bs.modal", function(){
925                 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
926             });
927             [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
928                 novSelect.loadContentForQuery({
929                     ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
930                     ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
931                     version : '2.1'
932                 },
933                 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
934                 '[% Koha.Preference('NovelistSelectPassword') | html %]',
935                 function(d){
936                     if ( d.length > 0 ){ //If no content
937                         $(".NovelistSelect").show();
938                     }
939                  });
940              [% END %]
941
942         });
943
944         [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
945             verify_images();
946         });[% END %]
947     </script>
948     [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
949         <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
950     [% END %]
951     [% INCLUDE 'datatables.inc' %]
952     [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
953     [% INCLUDE 'browser-strings.inc' %]
954     [% INCLUDE 'columns_settings.inc' %]
955     [% Asset.js("js/browser.js") | $raw %]
956     [% Asset.js("js/table_filters.js") | $raw %]
957     <script>
958         var browser;
959         browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
960         browser.show();
961
962         $(document).ready(function() {
963             var ids = ['holdings_table', 'otherholdings_table'];
964
965             for (var i in ids) {
966                 var id = ids[i];
967                 var dt_parameters = {
968                     'sDom': 't',
969                     'bPaginate': false,
970                     'bAutoWidth': false,
971                     "aoColumnDefs": [
972                         { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
973                         { "sType": "title-string", "aTargets" : [ "title-string" ] }
974                     ]
975                 };
976                 var table = KohaTable(id, dt_parameters, null, 'with_filters');
977             }
978
979             [% IF Koha.Preference('AcquisitionDetails') %]
980                 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
981                 var acquisitiondetails_table = KohaTable("orders", {
982                     "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
983                     'bPaginate': false,
984                     'bAutoWidth': false,
985                     "aaSorting": [[ 4, "desc" ]],
986                     "aoColumnDefs": [
987                         { "aTargets": "title-string", "sType": "title-string" }
988                     ]
989                 }, columns_settings);
990             [% END %]
991         });
992     </script>
993 [% END %]
994 [% INCLUDE 'intranet-bottom.inc' %]