Bug 33161: (follow-up) Remove stray variables and fix POD
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
bbff26575f
commit
7bde825a33
2 changed files with 1 additions and 5 deletions
|
@ -2081,9 +2081,6 @@ sub strings_map {
|
|||
|
||||
my ( $itemtagfield, $itemtagsubfield ) = C4::Biblio::GetMarcFromKohaField("items.itemnumber");
|
||||
|
||||
my $public_read_list = $params->{public} ? $self->public_read_list : [];
|
||||
my $to_api_mapping = $self->to_api_mapping;
|
||||
|
||||
# Hardcoded known 'authorised_value' values mapped to API codes
|
||||
my $code_to_type = {
|
||||
branches => 'library',
|
||||
|
|
|
@ -678,7 +678,6 @@ sub to_api_mapping {
|
|||
|
||||
=head3 strings_map
|
||||
|
||||
my $params = { is_public => 1 };
|
||||
my $string_map = $object->strings_map($params);
|
||||
|
||||
Generic method that returns the string map for coded attributes.
|
||||
|
@ -686,7 +685,7 @@ Generic method that returns the string map for coded attributes.
|
|||
Return should be a hashref keyed on database field name with the values
|
||||
being hashrefs containing 'str', 'type' and optionally 'category'.
|
||||
|
||||
This is then use in to_api to render the _strings embed when requested.
|
||||
This is then used in to_api to render the _strings embed when requested.
|
||||
|
||||
Note: this only returns an empty I<hashref>. Each class should have its
|
||||
own mapping returned.
|
||||
|
|
Loading…
Reference in a new issue