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

(-)a/catalogue/detail.pl (-2 / +6 lines)
Lines 456-463 foreach my $item (@items) { Link Here
456
        }
456
        }
457
    }
457
    }
458
458
459
    if ($item_object->is_bundle) {
459
    if ( $item_object->is_bundle ) {
460
        $itemfields{bundles} = 1;
460
        $item->{bundled} =
461
          $item_object->bundle_items->search( { itemlost => { '!=' => 0 } } )
462
          ->count;
463
        $item->{bundled_lost} =
464
          $item_object->bundle_items->search( { itemlost => 0 } )->count;
461
        $item->{is_bundle} = 1;
465
        $item->{is_bundle} = 1;
462
    }
466
    }
463
467
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 637-643 Note that permanent location is a code, and location may be an authval. Link Here
637
                            [% END %]
637
                            [% END %]
638
                        [% END %]
638
                        [% END %]
639
                        [% IF bundlesEnabled %]
639
                        [% IF bundlesEnabled %]
640
                            <button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle</button>
640
                            <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>
641
                        [% END %]
641
                        [% END %]
642
                    </td>
642
                    </td>
643
                [% END %]
643
                [% END %]
644
- 

Return to bug 28854