@@ -, +, @@
collection on detail page
---
catalogue/detail.pl | 8 +++++++-
catalogue/moredetail.pl | 5 +++++
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++++
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 4 ++++
4 files changed, 20 insertions(+), 1 deletion(-)
--- a/catalogue/detail.pl
+++ a/catalogue/detail.pl
@@ -274,8 +274,14 @@ foreach my $item (@items) {
$item->{waitingdate} = $first_hold->waitingdate;
}
+ # checking for rotating collection
+ my $rotating_collection = $item_object->rotating_collection;
+ if ( $rotating_collection ) {
+ $item->{rotating_collection} = $rotating_collection;
+ $item->{IsInRotatingCollection} = 1;
+ }
- # Check the transit status
+ # Check the transit status
my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber});
if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) {
$item->{transfertwhen} = $transfertwhen;
--- a/catalogue/moredetail.pl
+++ a/catalogue/moredetail.pl
@@ -136,6 +136,11 @@ foreach ( keys %{$data} ) {
foreach my $item (@items){
$item->{object} = Koha::Items->find( $item->{itemnumber} );
$item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes);
+ my $rotating_collection = $item->{object}->rotating_collection;
+ if ( $rotating_collection ) {
+ $item->{rotating_collection} = $rotating_collection;
+ $item->{IsInRotatingCollection} = 1;
+ }
$item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
$item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} );
if ( defined $item->{'copynumber'} ) {
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -457,6 +457,10 @@
([% item.restricted %])
[% END %]
+ [% IF (item.IsInRotatingCollection) %]
+
Item is part of rotating collection [% item.rotating_collection.colTitle %]
+ [% END %]
+