@@ -, +, @@ --- Koha/AdditionalField.pm | 11 +++++++++++ Koha/Template/Plugin/ClassSources.pm | 15 +++++++++++++++ installer/data/mysql/atomicupdate/bug-11844.pl | 0 .../prog/en/includes/additional-fields-entry.inc | 2 +- 4 files changed, 27 insertions(+), 1 deletion(-) mode change 100644 => 100755 installer/data/mysql/atomicupdate/bug-11844.pl --- a/Koha/AdditionalField.pm +++ a/Koha/AdditionalField.pm @@ -13,6 +13,17 @@ use base qw(Koha::Object); use C4::Context; use Koha::MarcSubfieldStructures; +=head1 METHODS + +=head2 effective_authorised_value_category + +Returns the authorised value category of the additional field or the authorised +value category of the MARC field, if any. + + my $av_category = $additional_field->effective_authorised_value_category; + +=cut + sub effective_authorised_value_category { my ($self) = @_; --- a/Koha/Template/Plugin/ClassSources.pm +++ a/Koha/Template/Plugin/ClassSources.pm @@ -22,6 +22,21 @@ use base qw( Template::Plugin ); use C4::Context; use Koha::ClassSources; +=head1 NAME + +Koha::Template::Plugin::ClassSources - Template::Toolkit plugin for Koha Classification Source Object + +=head1 METHODS + +=head2 all + +Return the list of class sources + + [% class_sources = ClassSources.all() %] + [% class_sources = ClassSources.all({ selected => $selected }) %] + +=cut + sub all { my ($self, $params) = @_; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/additional-fields-entry.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/additional-fields-entry.inc @@ -61,7 +61,7 @@ [% IF field.marcfield && field.marcfield_mode == 'get' %] This value will be filled with the [% field.marcfield | html %] subfield of the selected biblio. [% ELSIF field.marcfield && field.marcfield_mode == 'set' %] - This value will be saved to the [% field.marcfield %] subfield of the selected biblio. + This value will be saved to the [% field.marcfield | html %] subfield of the selected biblio. [% END %] [% END %] --