@@ -, +, @@
button
---
catalogue/detail.pl | 8 ++++++--
.../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
--- a/catalogue/detail.pl
+++ a/catalogue/detail.pl
@@ -419,8 +419,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;
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -624,7 +624,7 @@ Note that permanent location is a code, and location may be an authval.
[% END %]
[% END %]
[% IF bundlesEnabled %]
-
+
[% END %]
[% END %]
--