diff --git a/catalogue/detail.pl b/catalogue/detail.pl index b3deb4305a..22a60909cb 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -456,8 +456,12 @@ foreach my $item (@items) { } } - if ($item_object->is_bundle) { - $itemfields{bundles} = 1; + if ( $item_object->is_bundle ) { + $item->{bundled} = + $item_object->bundle_items->search( { itemlost => { '!=' => 0 } } ) + ->count; + $item->{bundled_lost} = + $item_object->bundle_items->search( { itemlost => 0 } )->count; $item->{is_bundle} = 1; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 0148404bd8..de58c8896b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -637,7 +637,7 @@ Note that permanent location is a code, and location may be an authval. [% END %] [% END %] [% IF bundlesEnabled %] - + [% END %] [% END %]