https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30636 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to David Cook from comment #7)
(In reply to Katrin Fischer from comment #6)
I believe the new is_notforloan is not complete as is:
* You check for the notforloan status in the item * You check for the notforloan of the itemtype of the item
But: I think you need to use effective_itemtype here to catch itemtype on record level as well.
Nope. That's automagically handled by '$self->itemtype;'. See below:
=head3 itemtype
my $itemtype = $item->itemtype;
Returns Koha object for effective itemtype
=cut
sub itemtype { my ( $self ) = @_; return Koha::ItemTypes->find( $self->effective_itemtype ); }
Ah, I was looking for this, but still missed it. Thx for clarifying! -- You are receiving this mail because: You are watching all bug changes.