Browse Source

Bug 32585: (bug 32583 follow-up) Fix some variable references

Bug 32583 change the $item variable from a hash to an object.  Trivial patch
to change some hash references to object method calls.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23.05.x
Michael Hafen 1 year ago
committed by Tomas Cohen Arazi
parent
commit
10a8203811
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 4
      catalogue/moredetail.pl

4
catalogue/moredetail.pl

@ -169,12 +169,12 @@ foreach my $item (@items){
# item has a host number if its biblio number does not match the current bib
if ($item->biblionumber ne $biblionumber){
$item_info->{hostbiblionumber} = $item->{biblionumber};
$item_info->{hostbiblionumber} = $item->biblionumber;
$item_info->{hosttitle} = $item->biblio->title;
}
# FIXME The acquisition code below could be improved using methods from Koha:: objects
my $order = GetOrderFromItemnumber( $item->{'itemnumber'} );
my $order = GetOrderFromItemnumber( $item->itemnumber );
$item_info->{'basketno'} = $order->{'basketno'};
$item_info->{'orderdate'} = $order->{'entrydate'};
if ($item_info->{'basketno'}){

Loading…
Cancel
Save