From eca48814146642775bd2ebac448f44216a473f70 Mon Sep 17 00:00:00 2001
From: Jon Knight <j.p.knight@lboro.ac.uk>
Date: Wed, 21 Aug 2019 15:14:19 +0100
Subject: [PATCH] Bug 23429: ilsdi.pl GetRecords documentation does not match
 output

Updated contents of Describe for GetRecords to match current behaviour.

To test, ensure ILSDI is configured and then compare the output of:

http://yourserver/cgi-bin/koha/ilsdi.pl?service=Describe&verb=GetRecords

before and after applying the patch. Note that afterwards it includes
things like <onloan> and has removed elements such as <date_due> that no
longer get returned.

https://bugs.koha-community.org/show_bug.cgi?id=23429

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt | 37 ++++++++++++++---------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt
index 7c882d4b3b..dde7091850 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt
@@ -276,25 +276,32 @@
     &lt;/reserves&gt;
     &lt;items&gt;
       &lt;item&gt;
-        &lt;biblioitemnumber&gt;1&lt;/biblioitemnumber&gt;
+        &lt;onloan&gt;2019-10-01&lt;/onloan&gt;
+        &lt;holdingbranch&gt;BIB&lt;/holdingbranch&gt;
+        &lt;location&gt;Secteur Adulte&lt;/location&gt;
+        &lt;datelastborrowed&gt;2019-07-18&lt;/datelastborrowed&gt;
+        &lt;biblioitemnumber&gt;526315&lt;/biblioitemnumber&gt;
+        &lt;permanent_location&gt;Secteur Adulte&lt;/permanent_location&gt;
+        &lt;datelastseen&gt;2019-07-18&lt;/datelastseen&gt;
         &lt;withdrawn&gt;0&lt;/withdrawn&gt;
-        &lt;holdingbranchname&gt;Bibliothèque Jean Prunier&lt;/holdingbranchname&gt;
+        &lt;itype&gt;LONG&lt;/itype&gt;
         &lt;notforloan&gt;0&lt;/notforloan&gt;
-        &lt;replacementpricedate&gt;2008-08-20&lt;/replacementpricedate&gt;
-        &lt;itemnumber&gt;1&lt;/itemnumber&gt;
-        &lt;location&gt;Secteur Adulte&lt;/location&gt;
-        &lt;itemcallnumber&gt;R ABE&lt;/itemcallnumber&gt;
-        &lt;date_due&gt;&lt;/date_due&gt;
-        &lt;itemlost&gt;0&lt;/itemlost&gt;
-        &lt;datelastseen&gt;2008-08-20&lt;/datelastseen&gt;
-        &lt;homebranch&gt;BIB&lt;/homebranch&gt;
+        &lt;biblionumber&gt;526315&lt;/biblionumber&gt;
+        &lt;itemnumber&gt;847332&lt;/itemnumber&gt;
+        &lt;price&gt;22.17&lt;/price&gt;
+        &lt;dateaccessioned&gt;2016-09-13&lt;/dateaccessioned&gt;
+        &lt;issues&gt;10&lt;/issues&gt;
         &lt;homebranchname&gt;Bibliothèque Jean Prunier&lt;/homebranchname&gt;
-        &lt;biblionumber&gt;1&lt;/biblionumber&gt;
-        &lt;holdingbranch&gt;BIB&lt;/holdingbranch&gt;
-        &lt;timestamp&gt;2008-08-20 17:15:51&lt;/timestamp&gt;
-        &lt;damaged&gt;0&lt;/damaged&gt;
+        &lt;homebranch&gt;BIB&lt;/homebranch&gt;
+        &lt;timestamp&gt;2019-07-18 17:03:03&lt;/timestamp&gt;
         &lt;cn_sort&gt;R_ABE&lt;/cn_sort&gt;
-        &lt;dateaccessioned&gt;2008-08-20&lt;/dateaccessioned&gt;
+        &lt;itemlost&gt;0&lt;/itemlost&gt;
+        &lt;renewals&gt;28&lt;/renewals&gt;
+        &lt;barcode&gt;040444587X&lt;/barcode&gt;
+        &lt;damaged&gt;0&lt;/damaged&gt;
+        &lt;replacementpricedate&gt;2018-02-01&lt;/replacementpricedate&gt;
+        &lt;itemcallnumber&gt;005.55 SPS/BRA&lt;/itemcallnumber&gt;
+        &lt;holdingbranchname&gt;Bibliothèque Jean Prunier&lt;/holdingbranchname&gt;
       &lt;/item&gt;
     &lt;/items&gt;
   &lt;/record&gt;
-- 
2.11.0