use Modern::Perl;
-use Carp;
-use C4::Koha;
+use C4::Koha qw( getitemtypeimagelocation );
use C4::Languages;
use Koha::Database;
use Koha::CirculationRules;
{ entity => 'itemtypes',
code => $self->itemtype,
}
- );
+ )->as_list;
return [ map {
{
lang => $_->lang,
}
+=head3 children_with_localization
+
+ Returns the ItemType objects of the children of this type or undef.
+
+=cut
+
+sub children_with_localization {
+ my ( $self ) = @_;
+ return Koha::ItemTypes->search_with_localization({ parent_type => $self->itemtype });
+}
+
=head3 type
=cut