From 0eb4519cad329328e1a4f5837de9737baea08765 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 5 Mar 2014 13:51:40 +1300 Subject: [PATCH] It is now responding correctly --- lib/NCIP/ILS/Koha.pm | 4 ++-- templates/includes/AcceptItemResponse.inc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 templates/includes/AcceptItemResponse.inc diff --git a/lib/NCIP/ILS/Koha.pm b/lib/NCIP/ILS/Koha.pm index 171d1f1..e50f758 100644 --- a/lib/NCIP/ILS/Koha.pm +++ b/lib/NCIP/ILS/Koha.pm @@ -155,13 +155,13 @@ sub acceptitem { return $result; } my ( $success, $messages, $issue, $borrower ) = - AddReturn( $barcode, $branch, $exemptfine, $dropbox ); + AddReturn( $barcode, $branch, undef, undef ); if ( $messages->{'NotIssued'} ) { $success = 1 ; # we do this because we are only doing the return to trigger the reserve } - my $result = { + $result = { success => $success, messages => $messages, iteminformation => $issue, diff --git a/templates/includes/AcceptItemResponse.inc b/templates/includes/AcceptItemResponse.inc new file mode 100644 index 0000000..29cc1e2 --- /dev/null +++ b/templates/includes/AcceptItemResponse.inc @@ -0,0 +1 @@ +[% barcode %] -- 2.43.2