followup to holds policies - fix itype
Overriding items.itype from biblioitems.itemtype is needed only with item-level_itypes is OFF. [LL bug 321] Signed-off-by: Daniel Sweeney <daniel.sweeney@liblime.com> Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
e0cc26c1f7
commit
ca40e077b3
|
|
@ -256,10 +256,13 @@ foreach my $biblioitemnumber (@biblioitemnumbers) {
|
|||
my $itemnumber ( @{ $itemnumbers_of_biblioitem{$biblioitemnumber} } )
|
||||
{
|
||||
my $item = $iteminfos_of->{$itemnumber};
|
||||
$item->{itypename} = $itemtypes->{ $item->{itype} }{description};
|
||||
$item->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $item->{itype} }{imageurl} );
|
||||
$item->{homebranchname} =
|
||||
$branches->{ $item->{homebranch} }{branchname};
|
||||
unless (C4::Context->preference('item-level_itypes')) {
|
||||
$item->{itype} = $biblioitem->{itemtype};
|
||||
}
|
||||
|
||||
$item->{itypename} = $itemtypes->{ $item->{itype} }{description};
|
||||
$item->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $item->{itype} }{imageurl} );
|
||||
$item->{homebranchname} = $branches->{ $item->{homebranch} }{branchname};
|
||||
|
||||
# if the holdingbranch is different than the homebranch, we show the
|
||||
# holdingbranch of the document too
|
||||
|
|
|
|||
Loading…
Reference in New Issue