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

(-)a/catalogue/detail.pl (-2 / +6 lines)
Lines 419-426 foreach my $item (@items) { Link Here
419
        }
419
        }
420
    }
420
    }
421
421
422
    if ($item_object->is_bundle) {
422
    if ( $item_object->is_bundle ) {
423
        $itemfields{bundles} = 1;
423
        $item->{bundled} =
424
          $item_object->bundle_items->search( { itemlost => { '!=' => 0 } } )
425
          ->count;
426
        $item->{bundled_lost} =
427
          $item_object->bundle_items->search( { itemlost => 0 } )->count;
424
        $item->{is_bundle} = 1;
428
        $item->{is_bundle} = 1;
425
    }
429
    }
426
430
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 624-630 Note that permanent location is a code, and location may be an authval. Link Here
624
                            [% END %]
624
                            [% END %]
625
                        [% END %]
625
                        [% END %]
626
                        [% IF bundlesEnabled %]
626
                        [% IF bundlesEnabled %]
627
                            <button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle</button>
627
                            <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>
628
                        [% END %]
628
                        [% END %]
629
                    </td>
629
                    </td>
630
                [% END %]
630
                [% END %]
631
- 

Return to bug 28854