From 6f0167facb6263fe8ab55528960183c831494c88 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 15 Aug 2022 10:07:49 +0200 Subject: [PATCH] Bug 31321: Fix copynumber --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 0e5d04511ad..f7595b0c2d0 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -378,7 +378,7 @@ foreach my $item (@items) { $item_info->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); my $ccode = $item->ccode; $item_info->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) ); - my $copynumber = $item->{'copynumber'}; + my $copynumber = $item->copynumber; $item_info->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) ); foreach (qw(ccode enumchron copynumber stocknumber itemnotes itemnotes_nonpublic uri )) { $itemfields{$_} = 1 if $item->$_; -- 2.25.1