View | Details | Raw Unified | Return to bug 34920
Collapse All | Expand All

(-)a/Koha/AuthorisedValue.pm (-1 / +20 lines)
Lines 113-118 sub to_api_mapping { Link Here
113
    };
113
    };
114
}
114
}
115
115
116
=head3 to_api
117
118
    my $json = $av->to_api;
119
120
Overloaded method that returns a JSON representation of the Koha::AuthorisedValue object,
121
suitable for API output.
122
123
=cut
124
125
sub to_api {
126
    my ( $self, $params ) = @_;
127
128
    my $response  = $self->SUPER::to_api($params);
129
    my $overrides = {};
130
131
    $overrides->{description} = $self->lib // q{};
132
133
    return { %$response, %$overrides };
134
}
135
116
=head2 Internal methods
136
=head2 Internal methods
117
137
118
=head3 _type
138
=head3 _type
119
- 

Return to bug 34920