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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-2 / +2 lines)
Lines 389-397 Link Here
389
389
390
[% BLOCK tab_item %]
390
[% BLOCK tab_item %]
391
    [% IF ( bt_active ) %]
391
    [% IF ( bt_active ) %]
392
        <li role="presentation" class="active">
392
        <li class="[% tabname | html %]_tab" role="presentation" class="active">
393
    [% ELSE %]
393
    [% ELSE %]
394
        <li role="presentation">
394
        <li class="[% tabname | html %]_tab" role="presentation">
395
    [% END %]
395
    [% END %]
396
        <a href="#[% tabname | uri %]_panel" data-tabname="[% tabname | uri %]" aria-controls="[% tabname | uri %]_panel" role="tab" data-toggle="tab">
396
        <a href="#[% tabname | uri %]_panel" data-tabname="[% tabname | uri %]" aria-controls="[% tabname | uri %]_panel" role="tab" data-toggle="tab">
397
            [% content | $raw %]
397
            [% content | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-439 / +449 lines)
Lines 44-49 Link Here
44
</title>
44
</title>
45
[% INCLUDE 'doc-head-close.inc' %]
45
[% INCLUDE 'doc-head-close.inc' %]
46
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
46
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
47
[% FILTER collapse %]
48
    <style>
49
        .nav li.NovelistSelect_tab {
50
            display: none;
51
        }
52
    </style>
53
[% END %]
47
</head>
54
</head>
48
55
49
<body id="catalog_detail" class="catalog">
56
<body id="catalog_detail" class="catalog">
Lines 289-780 Link Here
289
                        [% END # /IF ( AmazonCoverImages, etc ) %]
296
                        [% END # /IF ( AmazonCoverImages, etc ) %]
290
                    </div> <!-- /.row -->
297
                    </div> <!-- /.row -->
291
298
292
                    <div id="bibliodetails" class="toptabs">
299
                    [% WRAPPER tabs id= "bibliodetails" %]
293
                        <ul class="nav nav-tabs" role="tablist">
300
                        [% WRAPPER tabs_nav %]
294
                            [% IF (SeparateHoldings) %]
301
                            [% IF (SeparateHoldings) %]
295
                                <li role="presentation">
302
                                [% WRAPPER tab_item tabname= "holdings" %]
296
                                    <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
303
                                    <span>[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</span>
297
                                </li>
304
                                [% END %]
298
                                <li role="presentation">
305
                                [% WRAPPER tab_item tabname= "otherholdings" %]
299
                                    <a href="#otherholdings"  aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
306
                                    <span>Other holdings ([% otheritemloop.size() || 0 | html %])</span>
300
                                </li>
307
                                [% END %]
301
                            [% ELSE %]
308
                            [% ELSE %]
302
                                <li role="presentation">
309
                                [% WRAPPER tab_item tabname= "holdings" %]
303
                                    <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% itemloop.size() || 0 | html %])</a>
310
                                    <span>Holdings ([% itemloop.size() || 0 | html %])</span>
304
                                </li>
311
                                [% END %]
305
                            [% END # /IF (SeparateHoldings) %]
312
                            [% END # /IF (SeparateHoldings) %]
306
                            [% IF Koha.Preference('EnableItemGroups') %]
313
                            [% IF Koha.Preference('EnableItemGroups') %]
307
                                <li role="presentation">
314
                                [% WRAPPER tab_item tabname= "item_groups" %]
308
                                    <a href="#item_groups" aria-controls="item_groups" role="tab" data-toggle="tab">Item groups</a>
315
                                    <span>Item groups</span>
309
                                </li>
316
                                [% END %]
310
                            [% END %]
317
                            [% END %]
311
                            [% IF ( MARCNOTES || notes ) %]
318
                            [% IF ( MARCNOTES || notes ) %]
312
                                <li role="presentation">
319
                                [% WRAPPER tab_item tabname= "description" %]
313
                                    <a href="#description" aria-controls="description" role="tab" data-toggle="tab">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a>
320
                                    <span>Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</span>
314
                                </li>
321
                                [% END %]
315
                            [% END %]
322
                            [% END %]
316
                            [% IF ComponentParts && ComponentParts.size %]
323
                            [% IF ComponentParts && ComponentParts.size %]
317
                                <li id="components_tab" role="presentation">
324
                                [% WRAPPER tab_item tabname= "components" %]
318
                                    <a href="#components"  aria-controls="components" role="tab" data-toggle="tab">Components ([% ComponentParts.size | html %])</a>
325
                                    <span>Components ([% ComponentParts.size | html %])</span>
319
                                </li>
326
                                [% END %]
320
                            [% END %]
327
                            [% END %]
321
                            [% IF ( subscriptionsnumber ) %]
328
                            [% IF ( subscriptionsnumber ) %]
322
                                <li role="presentation">
329
                                [% WRAPPER tab_item tabname= "subscriptions" %]
323
                                    <a href="#subscriptions"  aria-controls="subscriptions" role="tab" data-toggle="tab">Subscriptions</a>
330
                                    <span>Subscriptions</span>
324
                                </li>
331
                                [% END %]
325
                            [% END %]
332
                            [% END %]
326
                            [% IF Koha.Preference('AcquisitionDetails') %]
333
                            [% IF Koha.Preference('AcquisitionDetails') %]
327
                                <li role="presentation">
334
                                [% WRAPPER tab_item tabname= "acq_details" %]
328
                                    <a href="#acq_details"  aria-controls="acq_details" role="tab" data-toggle="tab">Acquisition details</a>
335
                                    <span>Acquisition details</span>
329
                                </li>
336
                                [% END %]
330
                            [% END %]
337
                            [% END %]
331
                            [% IF suggestions.count %]
338
                            [% IF suggestions.count %]
332
                                <li role="presentation">
339
                                [% WRAPPER tab_item tabname= "suggestion_details" %]
333
                                    <a href="#suggestion_details"  aria-controls="suggestion_details" role="tab" data-toggle="tab">Suggestion details</a>
340
                                    <span>Suggestion details</span>
334
                                </li>
341
                                [% END %]
335
                            [% END %]
342
                            [% END %]
336
                            [% IF ( FRBRizeEditions ) %]
343
                            [% IF ( FRBRizeEditions ) %]
337
                                [% IF ( XISBNS ) %]
344
                                [% IF ( XISBNS ) %]
338
                                    <li role="presentation">
345
                                    [% WRAPPER tab_item tabname= "editions" %]
339
                                        <a href="#editions"  aria-controls="editions" role="tab" data-toggle="tab">Editions</a>
346
                                        <span>Editions</span>
340
                                    </li>
347
                                    [% END %]
341
                                [% END %]
348
                                [% END %]
342
                            [% END %]
349
                            [% END %]
343
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
350
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
344
                                <li role="presentation">
351
                                [% WRAPPER tab_item tabname= "concerns" %]
345
                                    <a href="#concerns" aria-controls="concerns" role="tab" data-toggle="tab">Concerns ([% biblio.tickets.count | html %])</a>
352
                                    <span>Concerns ([% biblio.tickets.count | html %])</span>
346
                                </li>
353
                                [% END %]
347
                            [% END %]
354
                            [% END %]
348
                            [% IF ( LocalCoverImages ) %]
355
                            [% IF ( LocalCoverImages ) %]
349
                                <li role="presentation">
356
                                [% WRAPPER tab_item tabname= "images" %]
350
                                    <a href="#images"  aria-controls="images" role="tab" data-toggle="tab">Images ([% localimages.count || 0 | html %])</a>
357
                                    <span>Images ([% localimages.count || 0 | html %])</span>
351
                                </li>
358
                                [% END %]
352
                            [% END %]
359
                            [% END %]
353
                            [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
360
                            [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
354
                                <li id="media_tab" role="presentation"><a href="#html5media"  aria-controls="html5media" role="tab" data-toggle="tab">Play media</a></li>
361
                                [% WRAPPER tab_item tabname= "html5media" %]
362
                                    <span>Play media</span>
363
                                [% END %]
364
                                <!-- <li id="media_tab" role="presentation"><a href="#"  aria-controls="html5media" role="tab" data-toggle="tab">Play media</a></li> -->
355
                            [% END %]
365
                            [% END %]
356
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
366
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
357
                                <li class="NovelistSelect" style="display:none;" role="presentation">
367
                                [% WRAPPER tab_item tabname= "NovelistSelect" %]
358
                                    <a href="#NovelistSelect"  aria-controls="NovelistSelect" role="tab" data-toggle="tab">NoveList Select</a>
368
                                    <span>Novelist Select</span>
359
                                </li>
369
                                [% END %]
360
                            [% END %]
370
                            [% END %]
361
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
371
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
362
                                <li role="presentation">
372
                                [% WRAPPER tab_item tabname= plugins_intranet_catalog_biblio_tab.id %]
363
                                    <a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]"  aria-controls="[% plugins_intranet_catalog_biblio_tab.id | uri %]" role="tab" data-toggle="tab">[% plugins_intranet_catalog_biblio_tab.title | html %]</a>
373
                                    <span>[% plugins_intranet_catalog_biblio_tab.title | html %]</span>
364
                                </li>
374
                                [% END %]
365
                            [% END # /FOREACH plugins_intranet_catalog_biblio_tab %]
375
                            [% END # /FOREACH plugins_intranet_catalog_biblio_tab %]
366
                        </ul> <!-- /.nav.nav-tabs -->
376
                        [% END # /WRAPPER tabs_nav %]
367
377
368
                        <div class="tab-content">
378
                        [% items_table_block_iter = 0 %]
369
                            [% items_table_block_iter = 0 %]
379
                        [% BLOCK items_table %]
370
                            [% BLOCK items_table %]
380
                            [% items_table_block_iter = items_table_block_iter + 1 %]
371
                                [% items_table_block_iter = items_table_block_iter + 1 %]
381
                            <div class="[% tab | html %]_table_table_controls">
372
                                <div class="[% tab | html %]_table_table_controls">
382
                                [% IF (StaffDetailItemSelection) %]
373
                                    [% IF (StaffDetailItemSelection) %]
383
                                    | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
374
                                        | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
384
                                    <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
375
                                        <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
385
                                    <span class="itemselection_actions">
376
                                        <span class="itemselection_actions">
386
                                        | Actions:
377
                                            | Actions:
387
                                        [% IF CAN_user_tools_items_batchdel %]
378
                                            [% IF CAN_user_tools_items_batchdel %]
388
                                            <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
379
                                                <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
389
                                        [% END %]
380
                                            [% END %]
390
                                        [% IF CAN_user_tools_items_batchmod %]
381
                                            [% IF CAN_user_tools_items_batchmod %]
391
                                            <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
382
                                                <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
392
                                        [% END %]
383
                                            [% END %]
393
                                        [% IF CAN_user_editcatalogue_manage_item_groups && biblio.item_groups.count %]
384
                                            [% IF CAN_user_editcatalogue_manage_item_groups && biblio.item_groups.count %]
394
                                            <a class="itemselection_action_item_group_set" href="#"><i class="fa fa-book"></i> Add/move to item group</a>
385
                                                <a class="itemselection_action_item_group_set" href="#"><i class="fa fa-book"></i> Add/move to item group</a>
395
                                            <a class="itemselection_action_item_group_unset" href="#"><i class="fa fa-unlink"></i> Remove from item group</a>
386
                                                <a class="itemselection_action_item_group_unset" href="#"><i class="fa fa-unlink"></i> Remove from item group</a>
396
                                        [% END %]
387
                                            [% END %]
397
                                    </span> <!-- /.itemselection_actions -->
388
                                        </span> <!-- /.itemselection_actions -->
398
                                [% END # /IF (StaffDetailItemSelection) %]
389
                                    [% END # /IF (StaffDetailItemSelection) %]
399
                            </div> <!-- /.tab_table_table_controls -->
390
                                </div> <!-- /.tab_table_table_controls -->
400
391
401
                            <table class="items_table" id="[% tab | html %]_table">
392
                                <table class="items_table" id="[% tab | html %]_table">
402
                                <thead>
393
                                    <thead>
403
                                    <tr>
394
                                        <tr>
404
                                        [% IF (StaffDetailItemSelection) %]
405
                                            <th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>
406
                                        [% END %]
407
                                        [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
408
                                            <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
409
                                        [% END %]
410
                                        [% IF ( item_level_itypes ) %]
411
                                            <th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>
412
                                        [% END %]
413
                                        <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
414
                                        <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
415
                                        [% IF ( itemdata_ccode ) %]
416
                                            <th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>
417
                                        [% END %]
418
                                        [% IF Koha.Preference('EnableItemGroups') %]
419
                                            <th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th>
420
                                        [% END %]
421
                                        <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
422
                                        [% IF volinfo %]
423
                                            <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
424
                                        [% END %]
425
                                        <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
426
                                        <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th>
427
                                        <th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th>
428
                                        <th id="[% tab | html %]_renewals" data-colname="[% tab | html %]_renewals">Renewals</th>
429
                                        <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
430
                                        <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
431
                                        <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
432
                                        [% IF ( itemdata_uri ) %]
433
                                            <th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>
434
                                        [% END %]
435
                                        [% IF ( itemdata_copynumber ) %]
436
                                            <th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>
437
                                        [% END %]
438
                                        [% IF ( itemdata_stocknumber ) %]
439
                                            <th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>
440
                                        [% END %]
441
                                        [% IF materials %]
442
                                            <th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>
443
                                        [% END %]
444
                                        [% IF ( itemdata_itemnotes ) %]
445
                                            <th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>
446
                                        [% END %]
447
                                        [% IF ( itemdata_nonpublicnotes ) %]
448
                                            <th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>
449
                                        [% END %]
450
                                        [% IF ( hostrecords ) %]
451
                                            <th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>
452
                                        [% END %]
453
                                        [% IF ( analyze ) %]
454
                                            <th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>
455
                                        [% END %]
456
                                        [% IF ( ShowCourseReserves ) %]
457
                                            <th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>
458
                                        [% END %]
459
                                        [% IF ( SpineLabelShowPrintOnBibDetails ) %]
460
                                            <th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>
461
                                        [% END %]
462
                                        [% IF ( CAN_user_editcatalogue_edit_items ) %]
463
                                            <th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort noExport">&nbsp;</th>
464
                                        [% END %]
465
                                    </tr>
466
                                </thead>
467
                                <tbody>
468
                                    [% FOREACH item IN items %]
469
                                        <tr id="item_[% item.itemnumber | html %]" data-itemnumber="[% item.itemnumber | html %]" data-duedate="[% item.datedue | html %]">
395
                                            [% IF (StaffDetailItemSelection) %]
470
                                            [% IF (StaffDetailItemSelection) %]
396
                                                <th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>
471
                                                <td style="text-align:center;vertical-align:middle">
472
                                                    [% IF item.can_be_edited %]
473
                                                        <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
474
                                                    [% END %]
475
                                                </td>
397
                                            [% END %]
476
                                            [% END %]
398
                                            [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
477
                                            [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
399
                                                <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
478
                                                <td class="cover">
479
                                                    <div class="bookcoverimg">
480
                                                        <div class="cover-slider">
481
                                                            [% FOREACH image IN item.object.cover_images %]
482
                                                                <div class="cover-image local-coverimg">
483
                                                                    <a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
484
                                                                        <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" />
485
                                                                    </a>
486
                                                                </div>
487
                                                            [% END %]
488
                                                        </div>
489
                                                    </div>
490
                                                </td>
400
                                            [% END %]
491
                                            [% END %]
492
401
                                            [% IF ( item_level_itypes ) %]
493
                                            [% IF ( item_level_itypes ) %]
402
                                                <th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>
494
                                                <td class="itype">
403
                                            [% END %]
495
                                                    [% SET itemtype = item.itemtype %]
404
                                            <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
496
                                                    [% IF !noItemTypeImages && itemtype.image_location('intranet') %]
405
                                            <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
497
                                                        <img src="[% itemtype.image_location('intranet') | html %]" alt="[% itemtype.translated_description | html %]" title="[% itemtype.translated_description | html %]" />
406
                                            [% IF ( itemdata_ccode ) %]
498
                                                    [% END %]
407
                                                <th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>
499
                                                    <span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span>
408
                                            [% END %]
500
                                                </td>
409
                                            [% IF Koha.Preference('EnableItemGroups') %]
410
                                                <th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th>
411
                                            [% END %]
412
                                            <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
413
                                            [% IF volinfo %]
414
                                                <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
415
                                            [% END %]
416
                                            <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
417
                                            <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th>
418
                                            <th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th>
419
                                            <th id="[% tab | html %]_renewals" data-colname="[% tab | html %]_renewals">Renewals</th>
420
                                            <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
421
                                            <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
422
                                            <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
423
                                            [% IF ( itemdata_uri ) %]
424
                                                <th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>
425
                                            [% END %]
426
                                            [% IF ( itemdata_copynumber ) %]
427
                                                <th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>
428
                                            [% END %]
429
                                            [% IF ( itemdata_stocknumber ) %]
430
                                                <th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>
431
                                            [% END %]
432
                                            [% IF materials %]
433
                                                <th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>
434
                                            [% END %]
435
                                            [% IF ( itemdata_itemnotes ) %]
436
                                                <th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>
437
                                            [% END %]
438
                                            [% IF ( itemdata_nonpublicnotes ) %]
439
                                                <th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>
440
                                            [% END %]
441
                                            [% IF ( hostrecords ) %]
442
                                                <th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>
443
                                            [% END %]
444
                                            [% IF ( analyze ) %]
445
                                                <th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>
446
                                            [% END %]
447
                                            [% IF ( ShowCourseReserves ) %]
448
                                                <th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>
449
                                            [% END %]
450
                                            [% IF ( SpineLabelShowPrintOnBibDetails ) %]
451
                                                <th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>
452
                                            [% END %]
453
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
454
                                                <th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort noExport">&nbsp;</th>
455
                                            [% END %]
501
                                            [% END %]
456
                                        </tr>
502
                                            <td class="location">
457
                                    </thead>
503
                                                [% UNLESS ( singlebranchmode ) %]
458
                                    <tbody>
504
                                                    [% Branches.GetName( item.holdingbranch ) | html %]
459
                                        [% FOREACH item IN items %]
460
                                            <tr id="item_[% item.itemnumber | html %]" data-itemnumber="[% item.itemnumber | html %]" data-duedate="[% item.datedue | html %]">
461
                                                [% IF (StaffDetailItemSelection) %]
462
                                                    <td style="text-align:center;vertical-align:middle">
463
                                                        [% IF item.can_be_edited %]
464
                                                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
465
                                                        [% END %]
466
                                                    </td>
467
                                                [% END %]
468
                                                [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
469
                                                    <td class="cover">
470
                                                        <div class="bookcoverimg">
471
                                                            <div class="cover-slider">
472
                                                                [% FOREACH image IN item.object.cover_images %]
473
                                                                    <div class="cover-image local-coverimg">
474
                                                                        <a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
475
                                                                            <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" />
476
                                                                        </a>
477
                                                                    </div>
478
                                                                [% END %]
479
                                                            </div>
480
                                                        </div>
481
                                                    </td>
482
                                                [% END %]
505
                                                [% END %]
483
506
                                            </td>
484
                                                [% IF ( item_level_itypes ) %]
507
                                            <td class="homebranch">
485
                                                    <td class="itype">
508
                                                <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
486
                                                        [% SET itemtype = item.itemtype %]
509
                                                <span class="shelvingloc">
487
                                                        [% IF !noItemTypeImages && itemtype.image_location('intranet') %]
510
                                                    [%# If permanent location is defined, show description or code and             %]
488
                                                            <img src="[% itemtype.image_location('intranet') | html %]" alt="[% itemtype.translated_description | html %]" title="[% itemtype.translated_description | html %]" />
511
                                                    [%# display current location in parentheses. If not, display current location. %]
512
                                                    [%# Note that permanent location is a code, and location may be an authval.    %]
513
                                                    [% IF item.permanent_location %]
514
                                                        [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
515
                                                        [% permloc_authval | html %]
516
                                                        [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %]
517
                                                        [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %]
518
                                                            ([% item_location | html %])
489
                                                        [% END %]
519
                                                        [% END %]
490
                                                        <span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span>
520
                                                    [% ELSE %]
491
                                                    </td>
521
                                                        [% item_location | html %]
492
                                                [% END %]
493
                                                <td class="location">
494
                                                    [% UNLESS ( singlebranchmode ) %]
495
                                                        [% Branches.GetName( item.holdingbranch ) | html %]
496
                                                    [% END %]
522
                                                    [% END %]
523
                                                </span>
524
                                            </td>
525
                                            [% IF ( itemdata_ccode ) %]
526
                                                <td>
527
                                                    [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
497
                                                </td>
528
                                                </td>
498
                                                <td class="homebranch">
529
                                            [% END %]
499
                                                    <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
530
                                            [% IF Koha.Preference('EnableItemGroups') %]
500
                                                    <span class="shelvingloc">
531
                                                <td class="item_group">
501
                                                        [%# If permanent location is defined, show description or code and             %]
532
                                                    [% item.object.item_group.description | html %]
502
                                                        [%# display current location in parentheses. If not, display current location. %]
503
                                                        [%# Note that permanent location is a code, and location may be an authval.    %]
504
                                                        [% IF item.permanent_location %]
505
                                                            [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
506
                                                            [% permloc_authval | html %]
507
                                                            [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %]
508
                                                            [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %]
509
                                                                ([% item_location | html %])
510
                                                            [% END %]
511
                                                        [% ELSE %]
512
                                                            [% item_location | html %]
513
                                                        [% END %]
514
                                                    </span>
515
                                                </td>
533
                                                </td>
516
                                                [% IF ( itemdata_ccode ) %]
534
                                            [% END %]
517
                                                    <td>
535
                                            <td class="itemcallnumber">
518
                                                        [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
536
                                                [% IF ( item.itemcallnumber ) %]
519
                                                    </td>
537
                                                    [% item.itemcallnumber | html %]
520
                                                [% END %]
538
                                                [% END %]
521
                                                [% IF Koha.Preference('EnableItemGroups') %]
539
                                            </td>
522
                                                    <td class="item_group">
540
                                            [% IF ( volinfo ) %]
523
                                                        [% item.object.item_group.description | html %]
541
                                                [% SET serial = item.serial %]
524
                                                    </td>
542
                                                [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %]
543
                                                    <td class="enumchron" data-order="[% serial.publisheddate | html %]">
544
                                                [% ELSE %]
545
                                                    <td class="enumchron">
525
                                                [% END %]
546
                                                [% END %]
526
                                                <td class="itemcallnumber">
547
                                                    [% IF ( itemdata_enumchron ) %]
527
                                                    [% IF ( item.itemcallnumber ) %]
548
                                                        [% IF item.enumchron && serial.serialseq %]
528
                                                        [% item.itemcallnumber | html %]
549
                                                            <span class="enum">[% item.enumchron | html %]</span>
529
                                                    [% END %]
550
                                                            [% IF ( serial.serialseq && item.enumchron != serial.serialseq ) %]
530
                                                </td>
551
                                                                <span class="sep"> -- </span>
531
                                                [% IF ( volinfo ) %]
532
                                                    [% SET serial = item.serial %]
533
                                                    [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %]
534
                                                        <td class="enumchron" data-order="[% serial.publisheddate | html %]">
535
                                                    [% ELSE %]
536
                                                        <td class="enumchron">
537
                                                    [% END %]
538
                                                        [% IF ( itemdata_enumchron ) %]
539
                                                            [% IF item.enumchron && serial.serialseq %]
540
                                                                <span class="enum">[% item.enumchron | html %]</span>
541
                                                                [% IF ( serial.serialseq && item.enumchron != serial.serialseq ) %]
542
                                                                    <span class="sep"> -- </span>
543
                                                                    <span class="serialseq">[% serial.serialseq | html %]</span>
544
                                                                [% END %]
545
                                                            [% ELSIF item.enumchron %]
546
                                                                <span class="enum">[% item.enumchron | html %]</span>
547
                                                            [% ELSIF item.serialseq %]
548
                                                                <span class="serialseq">[% serial.serialseq | html %]</span>
552
                                                                <span class="serialseq">[% serial.serialseq | html %]</span>
549
                                                            [% END %]
553
                                                            [% END %]
550
                                                            [% IF serial.publisheddate %]
554
                                                        [% ELSIF item.enumchron %]
551
                                                                <span class="pubdate">([% serial.publisheddate | $KohaDates %])</span>
555
                                                            <span class="enum">[% item.enumchron | html %]</span>
552
                                                            [% END %]
556
                                                        [% ELSIF item.serialseq %]
553
                                                        [% END %]
557
                                                            <span class="serialseq">[% serial.serialseq | html %]</span>
554
                                                    </td>
555
                                                [% END %]
556
557
                                                <td class="status">
558
                                                    [% IF item.object.checkout %]
559
                                                        [% IF item.object.checkout.onsite_checkout %]
560
                                                            <span>Currently in local use
561
                                                        [% ELSE %]
562
                                                            <span class="datedue">Checked out
563
                                                        [% END %]
564
565
                                                        [% IF item.can_be_edited %]
566
                                                            [% IF item.object.checkout.onsite_checkout %]
567
                                                                by
568
                                                            [% ELSE %]
569
                                                                to
570
                                                            [% END %]
571
                                                            [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %]
572
                                                        [% END %]
573
                                                        : due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %]
574
                                                        </span>
575
                                                    [% ELSIF ( transfer = item.object.get_transfer ) %]
576
                                                        [% IF (transfer.datesent) %]
577
                                                            <span class="intransit">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</span>
578
                                                        [% ELSE %]
579
                                                            <span class="transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span>
580
581
                                                        [% END %]
558
                                                        [% END %]
582
                                                    [% END %]
559
                                                        [% IF serial.publisheddate %]
583
560
                                                            <span class="pubdate">([% serial.publisheddate | $KohaDates %])</span>
584
                                                    [% IF ( item.itemlost ) %]
585
                                                        [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
586
                                                        [% IF itemlostloop %]
587
                                                            <span class="lost">[% itemlost_description | html %]</span>
588
                                                        [% ELSE %]
589
                                                            <span class="lost">Unavailable (lost or missing)</span>
590
                                                        [% END %]
561
                                                        [% END %]
591
                                                    [% END %]
562
                                                    [% END %]
563
                                                </td>
564
                                            [% END %]
592
565
593
                                                    [% IF ( item.withdrawn ) %]
566
                                            <td class="status">
594
                                                        [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
567
                                                [% IF item.object.checkout %]
595
                                                        [% IF withdrawn_description %]
568
                                                    [% IF item.object.checkout.onsite_checkout %]
596
                                                            <span class="wdn">[% withdrawn_description | html %]</span>
569
                                                        <span>Currently in local use
597
                                                        [% ELSE %]
570
                                                    [% ELSE %]
598
                                                            <span class="wdn">Withdrawn</span>
571
                                                        <span class="datedue">Checked out
599
                                                        [% END %]
600
                                                    [% END %]
572
                                                    [% END %]
601
573
602
                                                    [% IF ( item.damaged ) %]
574
                                                    [% IF item.can_be_edited %]
603
                                                        [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
575
                                                        [% IF item.object.checkout.onsite_checkout %]
604
                                                        [% IF damaged_description %]
576
                                                            by
605
                                                            <span class="dmg">[% damaged_description | html %]</span>
606
                                                        [% ELSE %]
577
                                                        [% ELSE %]
607
                                                            <span class="dmg">Damaged</span>
578
                                                            to
608
                                                        [% END %]
609
                                                    [% END %]
610
611
                                                    [% IF ( item.notforloan || item.itemtype.notforloan ) %]
612
                                                        <span class="notforloan">Not for loan
613
                                                        [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
614
                                                        [% IF not_for_loan_description %]
615
                                                            <span class="reason">([% not_for_loan_description | html %])</span>
616
                                                        [% END %]
579
                                                        [% END %]
617
                                                        </span>
580
                                                        [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %]
618
                                                    [% END %]
581
                                                    [% END %]
582
                                                    : due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %]
583
                                                    </span>
584
                                                [% ELSIF ( transfer = item.object.get_transfer ) %]
585
                                                    [% IF (transfer.datesent) %]
586
                                                        <span class="intransit">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</span>
587
                                                    [% ELSE %]
588
                                                        <span class="transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span>
619
589
620
                                                    [% SET hold = item.first_hold %]
621
                                                    [% IF hold %]
622
                                                        [% IF hold.waitingdate %]
623
                                                            <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
624
                                                            [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
625
                                                                <span class="heldfor">Hold for:</span>
626
                                                                [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
627
                                                            [% END %]
628
                                                        [% ELSE %]
629
                                                            <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
630
                                                        [% END %]
631
                                                    [% END %]
590
                                                    [% END %]
591
                                                [% END %]
632
592
633
                                                    [% IF Koha.Preference('UseRecalls') %]
593
                                                [% IF ( item.itemlost ) %]
634
                                                        [% SET recall = item.object.recall %]
594
                                                    [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
635
                                                        [% IF recall %]
595
                                                    [% IF itemlostloop %]
636
                                                            [% IF recall.waiting_date %]
596
                                                        <span class="lost">[% itemlost_description | html %]</span>
637
                                                                <span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
597
                                                    [% ELSE %]
638
                                                            [% ELSE %]
598
                                                        <span class="lost">Unavailable (lost or missing)</span>
639
                                                                [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %]
640
                                                                <span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
641
                                                            [% END %]
642
                                                        [% END %]
643
                                                    [% END %]
599
                                                    [% END %]
600
                                                [% END %]
644
601
645
                                                    [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
602
                                                [% IF ( item.withdrawn ) %]
646
                                                        <span>Available</span>
603
                                                    [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
604
                                                    [% IF withdrawn_description %]
605
                                                        <span class="wdn">[% withdrawn_description | html %]</span>
606
                                                    [% ELSE %]
607
                                                        <span class="wdn">Withdrawn</span>
647
                                                    [% END %]
608
                                                    [% END %]
609
                                                [% END %]
648
610
649
                                                    [% IF ( item.restricted ) %]
611
                                                [% IF ( item.damaged ) %]
650
                                                        <span class="restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
612
                                                    [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
613
                                                    [% IF damaged_description %]
614
                                                        <span class="dmg">[% damaged_description | html %]</span>
615
                                                    [% ELSE %]
616
                                                        <span class="dmg">Damaged</span>
651
                                                    [% END %]
617
                                                    [% END %]
618
                                                [% END %]
652
619
653
                                                    [% IF ( item.bundle_host ) %]
620
                                                [% IF ( item.notforloan || item.itemtype.notforloan ) %]
654
                                                        <span class="bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
621
                                                    <span class="notforloan">Not for loan
622
                                                    [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
623
                                                    [% IF not_for_loan_description %]
624
                                                        <span class="reason">([% not_for_loan_description | html %])</span>
655
                                                    [% END %]
625
                                                    [% END %]
656
                                                </td>
626
                                                    </span>
627
                                                [% END %]
657
628
658
                                                <td class="datelastseen" data-order="[% item.datelastseen | html %]">
629
                                                [% SET hold = item.first_hold %]
659
                                                    [% item.datelastseen | $KohaDates with_hours => 1 %]
630
                                                [% IF hold %]
660
                                                </td>
631
                                                    [% IF hold.waitingdate %]
661
                                                <td class="issues" data-order="[% item.issues || 0 | html %]">
632
                                                        <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
662
                                                    [% item.issues || 0 | html %]
633
                                                        [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
663
                                                </td>
634
                                                            <span class="heldfor">Hold for:</span>
664
                                                <td class="renewals" data-order="[% item.renewals || 0 | html %]">
635
                                                            [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
665
                                                    [% item.renewals || 0 | html %]
636
                                                        [% END %]
666
                                                </td>
667
                                                <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">
668
                                                    [% item.dateaccessioned | $KohaDates %]
669
                                                </td>
670
                                                <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">
671
                                                    [% item.datelastborrowed | $KohaDates %]
672
                                                </td>
673
                                                <td>
674
                                                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&amp;biblionumber=[% item.biblionumber | uri %]&amp;bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a>
675
                                                </td>
676
                                                [% IF ( itemdata_uri ) %]
677
                                                    [% IF item.uri.split(' \| ').size > 1 %]
678
                                                        <td class="uri">
679
                                                            [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
680
                                                        </td>
681
                                                    [% ELSE %]
637
                                                    [% ELSE %]
682
                                                        <td class="uri">
638
                                                        <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
683
                                                            [% IF item.uri %]
684
                                                                <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
685
                                                            [% END %]
686
                                                        </td>
687
                                                    [% END %]
639
                                                    [% END %]
688
                                                [% END %]
640
                                                [% END %]
689
                                                [% IF ( itemdata_copynumber ) %]
641
690
                                                    <td class="copynumber">
642
                                                [% IF Koha.Preference('UseRecalls') %]
691
                                                        [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.copynumber', authorised_value => item.copynumber ) | html %]
643
                                                    [% SET recall = item.object.recall %]
692
                                                    </td>
644
                                                    [% IF recall %]
693
                                                [% END %]
645
                                                        [% IF recall.waiting_date %]
694
                                                [% IF ( itemdata_stocknumber ) %]
646
                                                            <span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
695
                                                    <td class="stocknumber">[% item.stocknumber | html %]</td>
647
                                                        [% ELSE %]
648
                                                            [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %]
649
                                                            <span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
650
                                                        [% END %]
651
                                                    [% END %]
696
                                                [% END %]
652
                                                [% END %]
697
                                                [% IF materials %]
653
698
                                                    <td class="materials"> [% item.materials | html %] </td>
654
                                                [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
655
                                                    <span>Available</span>
699
                                                [% END %]
656
                                                [% END %]
700
                                                [% IF ( itemdata_itemnotes ) %]
657
701
                                                    <td>
658
                                                [% IF ( item.restricted ) %]
702
                                                        <div class="itemnotes">[% item.object.itemnotes.replace('\n','<br />') | $raw %]</div>
659
                                                    <span class="restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
703
                                                    </td>
704
                                                [% END %]
660
                                                [% END %]
705
                                                [% IF itemdata_nonpublicnotes %]
661
706
                                                    <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
662
                                                [% IF ( item.bundle_host ) %]
663
                                                    <span class="bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
707
                                                [% END %]
664
                                                [% END %]
708
                                                [% IF ( hostrecords ) %]
665
                                            </td>
709
                                                    <td>
666
710
                                                        [% IF ( item.hostbiblionumber) %]
667
                                            <td class="datelastseen" data-order="[% item.datelastseen | html %]">
711
                                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>
668
                                                [% item.datelastseen | $KohaDates with_hours => 1 %]
712
                                                        [% END %]
669
                                            </td>
670
                                            <td class="issues" data-order="[% item.issues || 0 | html %]">
671
                                                [% item.issues || 0 | html %]
672
                                            </td>
673
                                            <td class="renewals" data-order="[% item.renewals || 0 | html %]">
674
                                                [% item.renewals || 0 | html %]
675
                                            </td>
676
                                            <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">
677
                                                [% item.dateaccessioned | $KohaDates %]
678
                                            </td>
679
                                            <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">
680
                                                [% item.datelastborrowed | $KohaDates %]
681
                                            </td>
682
                                            <td>
683
                                                <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&amp;biblionumber=[% item.biblionumber | uri %]&amp;bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a>
684
                                            </td>
685
                                            [% IF ( itemdata_uri ) %]
686
                                                [% IF item.uri.split(' \| ').size > 1 %]
687
                                                    <td class="uri">
688
                                                        [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
713
                                                    </td>
689
                                                    </td>
714
                                                [% END %]
690
                                                [% ELSE %]
715
                                                [% IF ( analyze ) %]
691
                                                    <td class="uri">
716
                                                    <td>
692
                                                        [% IF item.uri %]
717
                                                        [% IF ( item.countanalytics ) %]
693
                                                            <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
718
                                                            <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
719
                                                        [% END %]
694
                                                        [% END %]
720
                                                    </td>
695
                                                    </td>
721
                                                [% END %]
696
                                                [% END %]
722
                                                [% IF ( analyze ) %]
697
                                            [% END %]
723
                                                    <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&amp;hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
698
                                            [% IF ( itemdata_copynumber ) %]
724
                                                [% END %]
699
                                                <td class="copynumber">
700
                                                    [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.copynumber', authorised_value => item.copynumber ) | html %]
701
                                                </td>
702
                                            [% END %]
703
                                            [% IF ( itemdata_stocknumber ) %]
704
                                                <td class="stocknumber">[% item.stocknumber | html %]</td>
705
                                            [% END %]
706
                                            [% IF materials %]
707
                                                <td class="materials"> [% item.materials | html %] </td>
708
                                            [% END %]
709
                                            [% IF ( itemdata_itemnotes ) %]
710
                                                <td>
711
                                                    <div class="itemnotes">[% item.object.itemnotes.replace('\n','<br />') | $raw %]</div>
712
                                                </td>
713
                                            [% END %]
714
                                            [% IF itemdata_nonpublicnotes %]
715
                                                <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
716
                                            [% END %]
717
                                            [% IF ( hostrecords ) %]
718
                                                <td>
719
                                                    [% IF ( item.hostbiblionumber) %]
720
                                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>
721
                                                    [% END %]
722
                                                </td>
723
                                            [% END %]
724
                                            [% IF ( analyze ) %]
725
                                                <td>
726
                                                    [% IF ( item.countanalytics ) %]
727
                                                        <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
728
                                                    [% END %]
729
                                                </td>
730
                                            [% END %]
731
                                            [% IF ( analyze ) %]
732
                                                <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&amp;hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
733
                                            [% END %]
725
734
726
                                                [% IF ShowCourseReserves %]
735
                                            [% IF ShowCourseReserves %]
727
                                                    <td>
736
                                                <td>
728
                                                        [% IF item.course_reserves %]
737
                                                    [% IF item.course_reserves %]
729
                                                            [% FOREACH r IN item.course_reserves %]
738
                                                        [% FOREACH r IN item.course_reserves %]
730
                                                                [% IF r.course.enabled == 'yes' %]
739
                                                            [% IF r.course.enabled == 'yes' %]
731
                                                                    <p>
740
                                                                <p>
732
                                                                    <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
741
                                                                <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
733
                                                                        [% r.course.course_name | html %]
742
                                                                    [% r.course.course_name | html %]
734
                                                                        <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
743
                                                                    <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
735
                                                                        [% IF r.course.section %] [% r.course.section | html %] [% END %]
744
                                                                    [% IF r.course.section %] [% r.course.section | html %] [% END %]
736
                                                                        [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
745
                                                                    [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
737
                                                                        </a>
746
                                                                    </a>
738
                                                                    </p>
747
                                                                </p>
739
                                                                [% END %]
740
                                                            [% END %]
748
                                                            [% END %]
741
                                                        [% END %]
749
                                                        [% END %]
742
                                                    </td>
750
                                                    [% END %]
743
                                                [% END %]
751
                                                </td>
752
                                            [% END %]
744
753
745
                                                [% IF ( SpineLabelShowPrintOnBibDetails ) %]
754
                                            [% IF ( SpineLabelShowPrintOnBibDetails ) %]
746
                                                    <td>
755
                                                <td>
747
                                                        <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>
756
                                                    <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>
748
                                                    </td>
757
                                                </td>
749
                                                [% END %]
758
                                            [% END %]
750
759
751
                                                [% IF CAN_user_editcatalogue_edit_items %]
760
                                            [% IF CAN_user_editcatalogue_edit_items %]
752
                                                    <td class="actions">
761
                                                <td class="actions">
753
                                                        [% IF item.can_be_edited %]
762
                                                    [% IF item.can_be_edited %]
754
                                                            [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
763
                                                        [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
755
                                                                <div class="btn-group">
764
                                                            <div class="btn-group">
756
                                                                    <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><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
765
                                                                <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><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
757
                                                                    <ul class="dropdown-menu pull-right">
766
                                                                <ul class="dropdown-menu pull-right">
758
                                                                        <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&amp;filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
767
                                                                    <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&amp;filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
759
                                                                    </ul>
768
                                                                </ul>
760
                                                                </div> <!-- /.btn-group -->
769
                                                            </div> <!-- /.btn-group -->
761
                                                            [% ELSE %]
770
                                                        [% ELSE %]
762
                                                                <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>
771
                                                            <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>
763
                                                            [% END # /IF LocalCoverImages %]
772
                                                        [% END # /IF LocalCoverImages %]
764
                                                        [% END # /IF item.can_be_edited %]
773
                                                    [% END # /IF item.can_be_edited %]
765
                                                        [% IF bundlesEnabled %]
774
                                                    [% IF bundlesEnabled %]
766
                                                            <button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle ([% item.bundled | html %]|[% item.bundled_lost | html %])</button>
775
                                                        <button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle ([% item.bundled | html %]|[% item.bundled_lost | html %])</button>
767
                                                        [% END %]
776
                                                    [% END %]
768
                                                    </td> <!-- /.actions -->
777
                                                </td> <!-- /.actions -->
769
                                                [% END # /IF CAN_user_editcatalogue_edit_items %]
778
                                            [% END # /IF CAN_user_editcatalogue_edit_items %]
770
                                            </tr>
779
                                        </tr>
771
                                        [% END # /FOREACH item %]
780
                                    [% END # /FOREACH item %]
772
                                    </tbody>
781
                                </tbody>
773
                                </table> <!-- /.items_table -->
782
                            </table> <!-- /.items_table -->
774
                            [% END %][% # /BLOCK items_table %]
783
                        [% END %][% # /BLOCK items_table %]
775
784
785
                        [% WRAPPER tab_panels %]
776
                            [% IF Koha.Preference('EnableItemGroups') %]
786
                            [% IF Koha.Preference('EnableItemGroups') %]
777
                                <div role="tabpanel" class="tab-pane" id="item_groups">
787
                                [% WRAPPER tab_panel tabname="item_groups" %]
778
                                    [% IF CAN_user_editcatalogue_manage_item_groups %]
788
                                    [% IF CAN_user_editcatalogue_manage_item_groups %]
779
                                        <div class="item_groups_table_table_controls">
789
                                        <div class="item_groups_table_table_controls">
780
                                            <a href="#" class="item-group-create btn btn-default btn-xs"><i class="fa fa-plus"></i> New item group</a>
790
                                            <a href="#" class="item-group-create btn btn-default btn-xs"><i class="fa fa-plus"></i> New item group</a>
Lines 789-798 Link Here
789
                                            </tr>
799
                                            </tr>
790
                                        </thead>
800
                                        </thead>
791
                                    </table>
801
                                    </table>
792
                                </div> <!-- /.tab-pane -->
802
                                [% END # /tab_panel#item_groups %]
793
                            [% END # /IF EnableItemGroups %]
803
                            [% END # /IF EnableItemGroups %]
794
804
795
                            <div role="tabpanel" class="tab-pane" id="holdings">
805
                            [% WRAPPER tab_panel tabname="holdings" %]
796
                                [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
806
                                [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
797
                                    <span class="results_summary NovelistSelect" style="display:none;">
807
                                    <span class="results_summary NovelistSelect" style="display:none;">
798
                                        <span class="label">Novelist Select: </span>
808
                                        <span class="label">Novelist Select: </span>
Lines 834-853 Link Here
834
                                        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
844
                                        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
835
                                    </span>
845
                                    </span>
836
                                [% END %]
846
                                [% END %]
837
                            </div> <!-- /.tab-pane#holdings -->
847
                            [% END # /tab_panel#holdings %]
838
848
839
                            [% IF (SeparateHoldings) %]
849
                            [% IF (SeparateHoldings) %]
840
                                <div role="tabpanel" class="tab-pane" id="otherholdings">
850
                                [% WRAPPER tab_panel tabname="otherholdings" %]
841
                                    [% IF (otheritemloop.size) %]
851
                                    [% IF (otheritemloop.size) %]
842
                                        [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
852
                                        [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
843
                                    [% ELSE %]
853
                                    [% ELSE %]
844
                                        <span class="nootheritems">No other items.</span>
854
                                        <span class="nootheritems">No other items.</span>
845
                                    [% END %]
855
                                    [% END %]
846
                                </div> <!-- /.tab-pane#otherholdings -->
856
                                [% END # /tab_panel#otherholdings %]
847
                            [% END %]
857
                            [% END %]
848
858
849
                            [% IF ( MARCNOTES ) %]
859
                            [% IF ( MARCNOTES ) %]
850
                                <div role="tabpanel" class="tab-pane" id="description">
860
                                [% WRAPPER tab_panel tabname="description" %]
851
                                    <div class="content_set">
861
                                    <div class="content_set">
852
                                        [% FOREACH MARCNOTE IN MARCNOTES %]
862
                                        [% FOREACH MARCNOTE IN MARCNOTES %]
853
                                            <p>
863
                                            <p>
Lines 859-869 Link Here
859
                                            </p>
869
                                            </p>
860
                                        [% END # /FOREACH MARCNOTE %]
870
                                        [% END # /FOREACH MARCNOTE %]
861
                                    </div> <!-- /.content_set -->
871
                                    </div> <!-- /.content_set -->
862
                                </div> <!-- /.tab-pane#description -->
872
                                [% END # /tab_panel#description %]
863
                            [% END # /IF MARCNOTES %]
873
                            [% END # /IF MARCNOTES %]
864
874
865
                            [% IF ComponentParts && ComponentParts.size %]
875
                            [% IF ComponentParts && ComponentParts.size %]
866
                                <div role="tabpanel" class="tab-pane" id="components">
876
                                [% WRAPPER tab_panel tabname="components" %]
867
                                    <div class="content_set">
877
                                    <div class="content_set">
868
                                        <table>
878
                                        <table>
869
                                            [% FOR PART IN ComponentParts %]
879
                                            [% FOR PART IN ComponentParts %]
Lines 878-888 Link Here
878
                                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
888
                                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
879
                                        [% END %]
889
                                        [% END %]
880
                                    </div> <!-- /.content_set -->
890
                                    </div> <!-- /.content_set -->
881
                                </div> <!-- /.tab-pane#components -->
891
                                [% END # /tab_panel#components %]
882
                            [% END # /IF ComponentParts %]
892
                            [% END # /IF ComponentParts %]
883
893
884
                            [% IF ( subscriptionsnumber ) %]
894
                            [% IF ( subscriptionsnumber ) %]
885
                                <div role="tabpanel" class="tab-pane" id="subscriptions">
895
                                [% WRAPPER tab_panel tabname="subscriptions" %]
886
                                    <div id="catalogue_detail_subscriptions">
896
                                    <div id="catalogue_detail_subscriptions">
887
                                        <h2>This is a serial subscription</h2>
897
                                        <h2>This is a serial subscription</h2>
888
                                        <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
898
                                        <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
Lines 936-946 Link Here
936
                                            <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
946
                                            <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
937
                                        [% END # /FOREACH subscription %]
947
                                        [% END # /FOREACH subscription %]
938
                                    </div> <!-- /#catalogue_detail_subscriptions -->
948
                                    </div> <!-- /#catalogue_detail_subscriptions -->
939
                                </div> <!-- /.tab-pane#subscriptions -->
949
                                [% END # /tab_panel#subscriptions %]
940
                            [% END # /IF ( subscriptionsnumber %]
950
                            [% END # /IF ( subscriptionsnumber %]
941
951
942
                            [% IF Koha.Preference('AcquisitionDetails') %]
952
                            [% IF Koha.Preference('AcquisitionDetails') %]
943
                                <div role="tabpanel" class="tab-pane" id="acq_details">
953
                                [% WRAPPER tab_panel tabname="acq_details" %]
944
                                    [% IF orders.count %]
954
                                    [% IF orders.count %]
945
                                        <table id="orders">
955
                                        <table id="orders">
946
                                            <thead>
956
                                            <thead>
Lines 1037-1047 Link Here
1037
                                    [% ELSE %]
1047
                                    [% ELSE %]
1038
                                        <span class="noorder">There is no order for this bibliographic record.</span>
1048
                                        <span class="noorder">There is no order for this bibliographic record.</span>
1039
                                    [% END # /IF orders.count %]
1049
                                    [% END # /IF orders.count %]
1040
                                </div> <!-- /.tab-pane#acq_details -->
1050
                                [% END # /tab_panel#acq_details %]
1041
                            [% END # /IF AcquisitionDetails %]
1051
                            [% END # /IF AcquisitionDetails %]
1042
1052
1043
                            [% IF suggestions.count %]
1053
                            [% IF suggestions.count %]
1044
                                <div role="tabpanel" class="tab-pane" id="suggestion_details">
1054
                                [% WRAPPER tab_panel tabname="suggestion_details" %]
1045
                                    [% IF nb_archived_suggestions > 0 %]
1055
                                    [% IF nb_archived_suggestions > 0 %]
1046
                                        <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
1056
                                        <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
1047
                                    [% END %]
1057
                                    [% END %]
Lines 1121-1132 Link Here
1121
                                            [% END # /FOREACH suggestion %]
1131
                                            [% END # /FOREACH suggestion %]
1122
                                        </tbody>
1132
                                        </tbody>
1123
                                    </table> <!-- /#suggestions -->
1133
                                    </table> <!-- /#suggestions -->
1124
                                </div> <!-- /.tab-pane#suggestion_details -->
1134
                                [% END # /tab_panel#suggestion_details %]
1125
                            [% END # /IF suggestions.count %]
1135
                            [% END # /IF suggestions.count %]
1126
1136
1127
                            [% IF ( FRBRizeEditions ) %]
1137
                            [% IF ( FRBRizeEditions ) %]
1128
                                [% IF ( XISBNS ) %]
1138
                                [% IF ( XISBNS ) %]
1129
                                    <div role="tabpanel" class="tab-pane" id="editions"
1139
                                    [% WRAPPER tab_panel tabname="editions" %]
1130
                                        <h4>Editions</h4>
1140
                                        <h4>Editions</h4>
1131
                                        <table>
1141
                                        <table>
1132
                                            [% FOREACH XISBN IN XISBNS %]
1142
                                            [% FOREACH XISBN IN XISBNS %]
Lines 1157-1168 Link Here
1157
                                                </tr>
1167
                                                </tr>
1158
                                            [% END # /FOREACH XISBN %]
1168
                                            [% END # /FOREACH XISBN %]
1159
                                        </table>
1169
                                        </table>
1160
                                    </div> <!-- /.tab-pane#editions -->
1170
                                    [% END # /tab_panel#editions %]
1161
                                [% END # IF ( XISBNS ) %]
1171
                                [% END # IF ( XISBNS ) %]
1162
                            [% END # /IF ( FRBRizeEditions ) %]
1172
                            [% END # /IF ( FRBRizeEditions ) %]
1163
1173
1164
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1174
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1165
                                <div role="tabpanel" class="tab-pane" id="concerns">
1175
                                [% WRAPPER tab_panel tabname="concerns" %]
1166
                                    <fieldset class="action" style="cursor:pointer;">
1176
                                    <fieldset class="action" style="cursor:pointer;">
1167
                                        <a id="hideResolved"><i class="fa fa-minus-square"></i> Hide resolved</a>
1177
                                        <a id="hideResolved"><i class="fa fa-minus-square"></i> Hide resolved</a>
1168
                                        | <a id="showAll"><i class="fa fa-bars"></i> Show all</a>
1178
                                        | <a id="showAll"><i class="fa fa-bars"></i> Show all</a>
Lines 1178-1188 Link Here
1178
                                            </tr>
1188
                                            </tr>
1179
                                        </thead>
1189
                                        </thead>
1180
                                    </table> <!-- /#table_concerns -->
1190
                                    </table> <!-- /#table_concerns -->
1181
                                </div> <!-- /.tab-pane#concerns -->
1191
                                [% END # /tab_panel#concerns %]
1182
                            [% END # /IF CatalogConcerns %]
1192
                            [% END # /IF CatalogConcerns %]
1183
1193
1184
                            [% IF ( LocalCoverImages ) %]
1194
                            [% IF ( LocalCoverImages ) %]
1185
                                <div role="tabpanel" class="tab-pane" id="images">
1195
                                [% WRAPPER tab_panel tabname="images" %]
1186
                                    [% IF localimages.count %]
1196
                                    [% IF localimages.count %]
1187
                                        <p>Click on an image to view it in the image viewer</p>
1197
                                        <p>Click on an image to view it in the image viewer</p>
1188
                                        <ul class="thumbnails">
1198
                                        <ul class="thumbnails">
Lines 1206-1216 Link Here
1206
                                        <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>
1216
                                        <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>
1207
                                        </p>
1217
                                        </p>
1208
                                    [% END %]
1218
                                    [% END %]
1209
                                </div> <!-- /.tab-pane#images -->
1219
                                [% END # /tab_panel#images %]
1210
                            [% END # /IF ( LocalCoverImages ) %]
1220
                            [% END # /IF ( LocalCoverImages ) %]
1211
1221
1212
                            [% IF ( HTML5MediaEnabled ) %]
1222
                            [% IF ( HTML5MediaEnabled ) %]
1213
                                <div role="tabpanel" class="tab-pane" id="html5media">
1223
                                [% WRAPPER tab_panel tabname="html5media" %]
1214
                                    [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1224
                                    [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1215
                                        <p>
1225
                                        <p>
1216
                                            [% IF HTML5MediaSet.is_youtube %]
1226
                                            [% IF HTML5MediaSet.is_youtube %]
Lines 1223-1245 Link Here
1223
                                            [% END %]
1233
                                            [% END %]
1224
                                        </p>
1234
                                        </p>
1225
                                    [% END # /FOREACH HTML5MediaSet %]
1235
                                    [% END # /FOREACH HTML5MediaSet %]
1226
                                </div> <!-- /.tab-pane#html5media -->
1236
                                [% END # /tab_panel#html5media %]
1227
                            [% END # /IF ( HTML5MediaEnabled ) %]
1237
                            [% END # /IF ( HTML5MediaEnabled ) %]
1228
1238
1229
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
1239
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
1230
                                <div role="tabpanel" class="tab-pane" id="NovelistSelect" class="novelistSelect">
1240
                                [% WRAPPER tab_panel tabname="NovelistSelect" %]
1231
                                    <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
1241
                                    <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
1232
                                </div>
1242
                                [% END # /tab_panel#NovelistSelect %]
1233
                            [% END %]
1243
                            [% END %]
1234
1244
1235
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
1245
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
1236
                                <div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
1246
                                [% WRAPPER tab_panel tabname= plugins_intranet_catalog_biblio_tab.id %]
1237
                                    [% plugins_intranet_catalog_biblio_tab.content | $raw %]
1247
                                    [% plugins_intranet_catalog_biblio_tab.content | $raw %]
1238
                                </div>
1248
                                [% END # /tab_panel#plugin %]
1239
                            [% END %]
1249
                            [% END %]
1240
1250
1241
                        </div><!-- /tab-content -->
1251
                        [% END # /WRAPPER tab_panels %]
1242
                    </div><!-- /#bibliodetails.toptabs -->
1252
                    [% END # /WRAPPER tabs %]
1243
1253
1244
                    <div id="export" style="margin-top: 1em;">
1254
                    <div id="export" style="margin-top: 1em;">
1245
                        <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
1255
                        <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
Lines 1865-1878 Link Here
1865
            // Pick details tab to display by default
1875
            // Pick details tab to display by default
1866
            [% IF count == 0 %]
1876
            [% IF count == 0 %]
1867
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1877
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1868
                    $(".nav-tabs a[href='#html5media']").tab("show");
1878
                    $(".nav-tabs a[href='#html5media_panel']").tab("show");
1869
                [% ELSIF ComponentParts && ComponentParts.size %]
1879
                [% ELSIF ComponentParts && ComponentParts.size %]
1870
                    $(".nav-tabs a[href='#components']").tab("show");
1880
                    $(".nav-tabs a[href='#components_panel']").tab("show");
1871
                [% ELSE %]
1881
                [% ELSE %]
1872
                    $(".nav-tabs a[href='#holdings']").tab("show");
1882
                    $(".nav-tabs a[href='#holdings_panel']").tab("show");
1873
                [% END %]
1883
                [% END %]
1874
            [% ELSE %]
1884
            [% ELSE %]
1875
                $(".nav-tabs a[href='#holdings']").tab("show");
1885
                $(".nav-tabs a[href='#holdings_panel']").tab("show");
1876
            [% END %]
1886
            [% END %]
1877
            $('#search-form').focus();
1887
            $('#search-form').focus();
1878
            $('.thumbnails > li > .remove').click(function() {
1888
            $('.thumbnails > li > .remove').click(function() {
Lines 1920-1929 Link Here
1920
                '[% Koha.Preference('NovelistSelectPassword') | html %]',
1930
                '[% Koha.Preference('NovelistSelectPassword') | html %]',
1921
                function(d){
1931
                function(d){
1922
                    if ( d.length > 0 ){ //If no content
1932
                    if ( d.length > 0 ){ //If no content
1923
                        $(".NovelistSelect").show();
1933
                        $(".NovelistSelect, .NovelistSelect_tab").css("display","block");
1924
                    }
1934
                    }
1925
                 });
1935
                 });
1926
             [% END # /IF NovelistSelectStaffEnabled %]
1936
             [% END # /IF NovelistSelectStaffEnabled %]
1937
1927
             $(".print-label").on("click", function(e){
1938
             $(".print-label").on("click", function(e){
1928
                e.preventDefault();
1939
                e.preventDefault();
1929
                link = $(this).attr("href");
1940
                link = $(this).attr("href");
1930
- 

Return to bug 33526