Bug 19380: Add transfer informations in ILS-DI GetRecords response
commit1611c13e85fca43f24a75287b333ff71db2361b9
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 27 Sep 2017 13:32:53 +0000 (27 15:32 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 29 Mar 2019 13:18:09 +0000 (29 13:18 +0000)
treeaa9a694162032ace0a6506dc7686256d10c9193f
parent94206510d7a7641e0e283738f56249c90f7d632e
Bug 19380: Add transfer informations in ILS-DI GetRecords response

Test plan:
1. Put an item into a 'transfer' state
  a. Place a hold on an item in branch A for a patron of branch B
  b. Check in this item in branch A and confirm transfer
2. Go to http://opac/cgi-bin/koha/ilsdi.pl?service=GetRecords&id=XXX
   where XXX is the biblionumber of the biblio the item belongs to.
3. Verify you have a new <transfer> element inside //record/items/item
   that contains <datesent>, <frombranch> and <tobranch>
4. Check in the same item in branch B, so that the item is not flagged
   as being transferred
5. Repeat 2
6. Verify that the <transfer> element is not there.
7. prove t/db_dependent/ILSDI_Services.t

Followed test plan, patch worked as described. Also ran QA test tools
and modified files passed

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/ILSDI/Services.pm
t/db_dependent/ILSDI_Services.t