Bug 21301: Remove patron informations in issues for GetRecords ILS-DI service
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Oct 2019 14:28:21 +0000 (16:28 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 14 Jan 2021 16:17:23 +0000 (17:17 +0100)
commitb6d2ea13c7517ecfa913a1f7d85e6ab3b8775f1e
tree0f61b105fb03e6c587166323b65c418f9e8e0740
parent5f126b129128ecbf7a65eda4b5b62f355c7349d8
Bug 21301: Remove patron informations in issues for GetRecords ILS-DI service

Actually, the GetRecords service gives many information :
bibliographic data (marcxml field)
item data (items field)
issue data (issues field)

The issue data should not be sent by these service, its a privacy problem.
Biblio title and author are redundant.
This patch changes to use Koha::Checkouts to get issues informations with only the addition of item barcode.

Test plan :
1) Enable ILS-DI webservice
2) Checkout an item
3) Go to {opac}/cgi-bin/koha/ilsdi.pl?service=GetRecords&id={biblionumber}
4) Check the issues tag content

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8ae0ef6eb529cb866914ee8cffba469a9486a53c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
C4/ILSDI/Services.pm
t/db_dependent/Circulation/issue.t