Bug 39781: Add POD coverage

Signed-off-by: Juliet Heltibridle <jheltibridle@rcplib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit 5937d40a28)
Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
This commit is contained in:
Andrew Fuerste Henry 2026-03-16 13:35:40 +00:00 committed by Jacob O'Mara
parent fcc2e2afce
commit 0a2ffaae03
No known key found for this signature in database
1 changed files with 28 additions and 17 deletions

View File

@ -26,6 +26,27 @@ use Koha::Notice::Templates;
use C4::Context;
use C4::Letters qw( GetLettersAvailableForALibrary );
=head1 NAME
Koha::Template::Plugin::NoticeTemplates - TT Plugin for notice templates
=head1 SYNOPSIS
[% USE NoticeTemplates %]
[% NoticeTemplates.GetByModule('members') %]
[% NoticeTemplates.GetByModuleForLibrary('members') %]
=head1 ROUTINES
=head2 GetByModule
In a template, you can get notice templates by module with
[% letters = NoticeTemplates.GetByModule( 'members' ) %]
=cut
sub GetByModule {
my ( $self, $module ) = @_;
@ -39,6 +60,13 @@ sub GetByModule {
);
}
=head2 GetByModuleForLibrary
In a template, you can get notice templates by module, limited to only templates for all librries or for the user's logged-in branch, with
[% letters = NoticeTemplates.GetByModuleForLibrary( 'members' ) %]
=cut
sub GetByModuleForLibrary {
my ( $self, $module ) = @_;
my $userenv = C4::Context->userenv;
@ -57,23 +85,6 @@ sub GetByModuleForLibrary {
);
}
=head1 NAME
Koha::Template::Plugin::NoticeTemplates - TT Plugin for notice templates
=head1 SYNOPSIS
[% USE NoticeTemplates %]
[% NoticeTemplates.GetByModule('members') %]
=head1 ROUTINES
=head2 GetByModule
In a template, you can get notice templates by module with
[% letters = NoticeTemplates.GetByModule( 'members' ) %]
=head1 AUTHOR
Alex Arnaud <alex.arnaud@biblibre.com>