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

(-)a/Koha/Patron/Category.pm (-1 / +37 lines)
Lines 229-234 sub can_make_suggestions { Link Here
229
    return 0;
229
    return 0;
230
}
230
}
231
231
232
=head3 to_api_mapping
233
234
This method returns the mapping for representing a Koha::Patron:Category
235
object on the API.
236
237
=cut
238
239
sub to_api_mapping {
240
    return {
241
        categorycode                      => 'patron_category_id',
242
        description                       => 'name',
243
        enrolmentperiod                   => 'enrolment_period',
244
        enrolmentperioddate               => 'enrolment_period_date',
245
        password_expiry_days              => 'password_expiry_days',
246
        upperagelimit                     => 'upper_age_limit',
247
        dateofbirthrequired               => 'date_of_birth_required',
248
        finetype                          => undef,                                 # Unused
249
        bulk                              => undef,                                 # Unused
250
        enrolmentfee                      => 'enrolment_fee',
251
        overduenoticerequired             => 'overdue_notice_required',
252
        issuelimit                        => undef,                                 # Unused
253
        reservefee                        => 'reserve_fee',
254
        hidelostitems                     => 'hide_lost_items',
255
        category_type                     => 'category_type',
256
        BlockExpiredPatronOpacActions     => 'block_expired_patron_opac_actions',
257
        default_privacy                   => 'default_privacy',
258
        checkprevcheckout                 => 'check_prev_checkout',
259
        can_place_ill_in_opac             => 'can_place_ill_in_opac',
260
        can_be_guarantee                  => 'can_be_guarantee',
261
        reset_password                    => 'reset_password',
262
        change_password                   => 'change_password',
263
        min_password_length               => 'min_password_length',
264
        require_strong_password           => 'require_strong_password',
265
        exclude_from_local_holds_priority => 'exclude_from_local_holds_priority'
266
    };
267
}
268
232
=head2 Internal methods
269
=head2 Internal methods
233
270
234
=head3 _library_limits
271
=head3 _library_limits
235
- 

Return to bug 26297