Lines 132-137
sub is_integer_only {
Link Here
|
132 |
return $self->_result->category->is_integer_only; |
132 |
return $self->_result->category->is_integer_only; |
133 |
} |
133 |
} |
134 |
|
134 |
|
|
|
135 |
=head3 to_api |
136 |
|
137 |
my $json = $av->to_api; |
138 |
|
139 |
Overloaded method that returns a JSON representation of the Koha::AuthorisedValue object, |
140 |
suitable for API output. |
141 |
|
142 |
=cut |
143 |
|
144 |
sub to_api { |
145 |
my ( $self, $params ) = @_; |
146 |
|
147 |
my $response = $self->SUPER::to_api($params); |
148 |
my $overrides = {}; |
149 |
|
150 |
$overrides->{description} = $self->lib // q{}; |
151 |
|
152 |
return { %$response, %$overrides }; |
153 |
} |
154 |
|
135 |
=head2 Internal methods |
155 |
=head2 Internal methods |
136 |
|
156 |
|
137 |
=head3 _check_is_integer_only |
157 |
=head3 _check_is_integer_only |
138 |
- |
|
|