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