@@ -, +, @@
---
Koha/Item/Templates.pm | 2 ++
Koha/Schema/Result/ItemEditorTemplate.pm | 17 +++++++++++++++++
.../prog/en/modules/cataloguing/additem.tt | 2 +-
3 files changed, 20 insertions(+), 1 deletion(-)
--- a/Koha/Item/Templates.pm
+++ a/Koha/Item/Templates.pm
@@ -28,6 +28,8 @@ use base qw(Koha::Objects);
Koha::Item::Templates - Koha Item Template Object set class
+=head2 METHODS
+
=head3 get_available
Returns a hashref with keys 'owned' and 'shared' pointing to Koha::Item::Templats objects
--- a/Koha/Schema/Result/ItemEditorTemplate.pm
+++ a/Koha/Schema/Result/ItemEditorTemplate.pm
@@ -114,9 +114,26 @@ __PACKAGE__->belongs_to(
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-28 16:49:35
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JIe4z78F9oMOAnAZdqmtA
+__PACKAGE__->add_columns(
+ '+is_shared' => { is_boolean => 1 },
+);
+
+=head2 koha_object_class
+
+ Koha Object class
+
+=cut
+
sub koha_object_class {
'Koha::Item::Template';
}
+
+=head2 koha_objects_class
+
+ Koha Objects class
+
+=cut
+
sub koha_objects_class {
'Koha::Item::Templates';
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
@@ -273,7 +273,7 @@