Bugzilla – Attachment 161484 Details for
Bug 26297
Add a route to list patron categories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26297: Add patron categories to_api_mapping
Bug-26297-Add-patron-categories-toapimapping.patch (text/plain), 2.57 KB, created by
Jonathan Druart
on 2024-01-26 08:10:16 UTC
(
hide
)
Description:
Bug 26297: Add patron categories to_api_mapping
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-01-26 08:10:16 UTC
Size:
2.57 KB
patch
obsolete
>From 821899246eaa34ba339208c648362b12b5a2c508 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 11 Dec 2023 17:31:09 +0000 >Subject: [PATCH] Bug 26297: Add patron categories to_api_mapping > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > Koha/Patron/Category.pm | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > >diff --git a/Koha/Patron/Category.pm b/Koha/Patron/Category.pm >index e24c8d6e79c..d42c6a4f707 100644 >--- a/Koha/Patron/Category.pm >+++ b/Koha/Patron/Category.pm >@@ -229,6 +229,43 @@ sub can_make_suggestions { > return 0; > } > >+=head3 to_api_mapping >+ >+This method returns the mapping for representing a Koha::Patron:Category >+object on the API. >+ >+=cut >+ >+sub to_api_mapping { >+ return { >+ categorycode => 'patron_category_id', >+ description => 'name', >+ enrolmentperiod => 'enrolment_period', >+ enrolmentperioddate => 'enrolment_period_date', >+ password_expiry_days => 'password_expiry_days', >+ upperagelimit => 'upper_age_limit', >+ dateofbirthrequired => 'date_of_birth_required', >+ finetype => undef, # Unused >+ bulk => undef, # Unused >+ enrolmentfee => 'enrolment_fee', >+ overduenoticerequired => 'overdue_notice_required', >+ issuelimit => undef, # Unused >+ reservefee => 'reserve_fee', >+ hidelostitems => 'hide_lost_items', >+ category_type => 'category_type', >+ BlockExpiredPatronOpacActions => 'block_expired_patron_opac_actions', >+ default_privacy => 'default_privacy', >+ checkprevcheckout => 'check_prev_checkout', >+ can_place_ill_in_opac => 'can_place_ill_in_opac', >+ can_be_guarantee => 'can_be_guarantee', >+ reset_password => 'reset_password', >+ change_password => 'change_password', >+ min_password_length => 'min_password_length', >+ require_strong_password => 'require_strong_password', >+ exclude_from_local_holds_priority => 'exclude_from_local_holds_priority' >+ }; >+} >+ > =head2 Internal methods > > =head3 _library_limits >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26297
:
159714
|
159715
|
159716
|
159717
|
159722
|
159921
|
159922
|
159923
|
159924
|
159955
|
160412
|
161450
|
161451
|
161484
|
161485
|
161486
|
161487
|
161488
|
161496
|
165390
|
165391
|
165392
|
165393
|
165453
|
165655
|
165827