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:
parent
fcc2e2afce
commit
0a2ffaae03
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue