diff --git a/Koha/ItemType.pm b/Koha/ItemType.pm index 17d62268fe..bb14cd599a 100644 --- a/Koha/ItemType.pm +++ b/Koha/ItemType.pm @@ -1,9 +1,5 @@ package Koha::ItemType; -# This represents a single itemtype - -# Copyright 2014 Catalyst IT -# # This file is part of Koha. # # Koha is free software; you can redistribute it and/or modify it under the @@ -93,4 +89,8 @@ sub _type { return 'Itemtype'; } +sub type { + return 'Itemtype'; +} + 1; diff --git a/Koha/ItemTypes.pm b/Koha/ItemTypes.pm index 92fea9c331..4265f8e630 100644 --- a/Koha/ItemTypes.pm +++ b/Koha/ItemTypes.pm @@ -43,6 +43,10 @@ sub _type { return 'Itemtype'; } +sub type { + return 'Itemtype'; +} + sub object_class { return 'Koha::ItemType'; }