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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 12 Jan 2021 10:17:33 +0000 (11:17 +0100)
commit8ae0ef6eb529cb866914ee8cffba469a9486a53c
treeff682534c6a3449220908e3cb94e4ae97b8d2881
parent99cebb82dc6fd1aa3f7466f03a267cac9deedc6c
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>
C4/Circulation.pm
C4/ILSDI/Services.pm
t/db_dependent/Circulation/issue.t