From bde795f8fa488a2284d1d23667fb489bea6343f9 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Thu, 2 Apr 2015 06:16:44 +0200 Subject: [PATCH] Bug 13939: ILS-DI function GetServices doesn't work when the item/biblio is available for hold for specific patron Test plan: 1) Enable ILS DI (system preference 'ILS-DI') 2) Try to access the URL http:///cgi-bin/koha/ilsdi.pl?service=GetServices&patron_id=&item_id= Choose the patron and item to be available for hold You'll see an error instead of valid XML response 3) apply the patch 4) try to access the same URL, you should see valid XML response with services "title level hold" and eventually "item level hold" returned Signed-off-by: Thomas Misilo Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/ILSDI/Services.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index e7acbad01f..af060382d5 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -26,7 +26,7 @@ use C4::Circulation; use C4::Branch; use C4::Accounts; use C4::Biblio; -use C4::Reserves qw(AddReserve GetReservesFromBiblionumber GetReservesFromBorrowernumber CanBookBeReserved CanItemBeReserved); +use C4::Reserves qw(AddReserve GetReservesFromBiblionumber GetReservesFromBorrowernumber CanBookBeReserved CanItemBeReserved IsAvailableForItemLevelRequest); use C4::Context; use C4::AuthoritiesMarc; use XML::Simple; -- 2.39.5