]> git.koha-community.org Git - koha.git/commit
Bug 17829: Move GetMember to Koha::Patron
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 29 Dec 2016 13:24:03 +0000 (14:24 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Jul 2017 16:14:19 +0000 (13:14 -0300)
commit2b90ea2cb0e5e976de7ddef0151ae83d8ac578e6
treee8d1ead0a164117ac064cafe0addfd49ad735727
parent06c53f21dbf6258451999358e4f4fd59d3315111
Bug 17829: Move GetMember to Koha::Patron

GetMember returned a patron given a borrowernumber, cardnumber or
userid.
All of these 3 attributes are defined as a unique key at the DB level
and so we can use Koha::Patrons->find to replace this subroutine.
Additionaly GetMember set category_type and description.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
124 files changed:
C4/Acquisition.pm
C4/Auth.pm
C4/Budgets.pm
C4/Circulation.pm
C4/HoldsQueue.pm
C4/ILSDI/Services.pm
C4/Letters.pm
C4/Members.pm
C4/Reserves.pm
C4/SIP/ILS/Item.pm
C4/SIP/ILS/Patron.pm
C4/SIP/ILS/Transaction/Hold.pm
C4/SIP/ILS/Transaction/Renew.pm
C4/SIP/ILS/Transaction/RenewAll.pm
acqui/acqui-home.pl
acqui/addorderiso2709.pl
acqui/basket.pl
acqui/basketgroup.pl
acqui/booksellers.pl
acqui/neworderbiblio.pl
acqui/neworderempty.pl
acqui/orderreceive.pl
acqui/transferorder.pl
admin/aqbudgets.pl
catalogue/ISBDdetail.pl
catalogue/MARCdetail.pl
catalogue/detail.pl
catalogue/imageviewer.pl
catalogue/labeledMARCdetail.pl
catalogue/moredetail.pl
catalogue/search.pl
cataloguing/additem.pl
circ/branchtransfers.pl
circ/circulation.pl
circ/returns.pl
circ/transferstoreceive.pl
circ/waitingreserves.pl
members/boraccount.pl
members/deletemem.pl
members/discharge.pl
members/files.pl
members/housebound.pl
members/mancredit.pl
members/maninvoice.pl
members/member-flags.pl
members/member-password.pl
members/member.pl
members/memberentry.pl
members/moremember.pl
members/notices.pl
members/pay.pl
members/paycollect.pl
members/printfeercpt.pl
members/printinvoice.pl
members/purchase-suggestions.pl
members/readingrec.pl
members/routing-lists.pl
members/statistics.pl
members/summary-print.pl
members/update-child.pl
misc/cronjobs/advance_notices.pl
misc/cronjobs/notice_unprocessed_suggestions.pl
misc/export_borrowers.pl
misc/load_testing/benchmark_staff.pl
offline_circ/list.pl
offline_circ/process_koc.pl
opac/opac-ISBDdetail.pl
opac/opac-MARCdetail.pl
opac/opac-account-pay-paypal-return.pl
opac/opac-account.pl
opac/opac-detail.pl
opac/opac-discharge.pl
opac/opac-memberentry.pl
opac/opac-messaging.pl
opac/opac-passwd.pl
opac/opac-readingrecord.pl
opac/opac-registration-verify.pl
opac/opac-renew.pl
opac/opac-reserve.pl
opac/opac-sendbasket.pl
opac/opac-sendshelf.pl
opac/opac-shelves.pl
opac/opac-showreviews.pl
opac/opac-suggestions.pl
opac/opac-user.pl
opac/sco/sco-main.pl
patroncards/create-pdf.pl
patroncards/edit-batch.pl
reserve/placerequest.pl
reserve/request.pl
reviews/reviewswaiting.pl
serials/routing-preview.pl
serials/routing.pl
suggestion/suggestion.pl
svc/members/search
t/db_dependent/Acquisition/OrderUsers.t
t/db_dependent/Circulation.t
t/db_dependent/Circulation/Branch.t
t/db_dependent/Circulation/CheckIfIssuedToPatron.t
t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t
t/db_dependent/Circulation/GetTopIssues.t
t/db_dependent/Circulation/IsItemIssued.t
t/db_dependent/Circulation/IssuingRules/maxsuspensiondays.t
t/db_dependent/Circulation/Returns.t
t/db_dependent/Circulation/issue.t
t/db_dependent/Holds/RevertWaitingStatus.t
t/db_dependent/Koha/Patrons.t
t/db_dependent/Members.t
t/db_dependent/Members/GetAllIssues.t
t/db_dependent/Members/GetOverdues.t
t/db_dependent/Members/GetPendingIssues.t
t/db_dependent/Members/IssueSlip.t
t/db_dependent/Patron/Borrower_Debarments.t
t/db_dependent/Patron/Borrower_Discharge.t
t/db_dependent/Patron/Borrower_PrevCheckout.t
t/db_dependent/Reserves.t
t/db_dependent/Utils/Datatables_Members.t
t/db_dependent/rollingloans.t
tools/batchMod.pl
tools/import_borrowers.pl
tools/modborrowers.pl
tools/picture-upload.pl
tools/viewlog.pl
virtualshelves/shelves.pl