Bugzilla – Attachment 84894 Details for
Bug 21832
Restore is_expired in ILS-DI GetPatronInfo service
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21832: Restore is_expired in ILS-DI GetPatronInfo service
Bug-21832-Restore-isexpired-in-ILS-DI-GetPatronInf.patch (text/plain), 1.38 KB, created by
Maryse Simard
on 2019-02-08 19:41:54 UTC
(
hide
)
Description:
Bug 21832: Restore is_expired in ILS-DI GetPatronInfo service
Filename:
MIME Type:
Creator:
Maryse Simard
Created:
2019-02-08 19:41:54 UTC
Size:
1.38 KB
patch
obsolete
>From 897dc7a31ef138b70c27662bf1f1eec0f472888d Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 14 Nov 2018 11:18:58 +0100 >Subject: [PATCH] Bug 21832: Restore is_expired in ILS-DI GetPatronInfo service > >Since Bug 17578 removed C4::Member::GetMemberDetails, the information "is_expired" disappeared from ILS-DI service GetPatronInfo. > >I propose to restore in by adding the code that exisited in C4::Member::GetMemberDetails directly in C4::ILSDI::Services. > >Test plan : >1) Enable ILS-DI webservice >2) Choose a patron not expired >3) Call web-service (replace X with patron's borrowernumber) : > /cgi-bin/koha/ilsdi.pl?service=GetPatronInfo&patron_id=X >4) You see : <is_expired>0</is_expired> >5) Choose a patron expired >6) Call web-service (replace X with patron's borrowernumber) : > /cgi-bin/koha/ilsdi.pl?service=GetPatronInfo&patron_id=X >7) You see : <is_expired>1</is_expired> > >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> >--- > C4/ILSDI/Services.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm >index 89b8dab..b5310dc 100644 >--- a/C4/ILSDI/Services.pm >+++ b/C4/ILSDI/Services.pm >@@ -480,6 +480,9 @@ sub GetPatronInfo { > $borrower->{'attributes'} = $attrs; > } > >+ # Add is expired information >+ $borrower->{'is_expired'} = $patron->is_expired ? 1 : 0; >+ > return $borrower; > } > >-- >2.7.4
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 21832
:
82323
|
82363
|
84894
|
84909
|
85022
|
85800
|
85801
|
86063
|
86064
|
86243
|
86701