Lines 623-628
sub GetPreparedLetter {
Link Here
|
623 |
$objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ) if ($userenv); |
623 |
$objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ) if ($userenv); |
624 |
} |
624 |
} |
625 |
|
625 |
|
|
|
626 |
# add plugin-generated objects |
627 |
if ( C4::Context->config("enable_plugins") ) { |
628 |
my @plugins = Koha::Plugins->new->GetPlugins( |
629 |
{ |
630 |
method => 'notices_content', |
631 |
} |
632 |
); |
633 |
|
634 |
if (@plugins) { |
635 |
foreach my $plugin (@plugins) { |
636 |
my $namespace = $plugin->get_metadata()->{namespace}; |
637 |
if ($namespace) { |
638 |
try { |
639 |
if ( my $content = $plugin->notices_content( \%params ) ) { |
640 |
$objects->{plugin_content}->{$namespace} = $content; |
641 |
} |
642 |
} catch { |
643 |
next; |
644 |
}; |
645 |
} |
646 |
} |
647 |
} |
648 |
} |
649 |
|
626 |
# Best guess at language 'default' notice is written for include handling |
650 |
# Best guess at language 'default' notice is written for include handling |
627 |
if ( $lang eq 'default' ) { |
651 |
if ( $lang eq 'default' ) { |
628 |
|
652 |
|
629 |
- |
|
|