From 88ec1be9ce1d31e91aaa503e8f068e8cc16aa173 Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Tue, 24 Jun 2014 15:28:15 +1200 Subject: [PATCH] Bug 12469: make ILS-DI include the call number. This has ILS-DI include the call number as part of the human-readable location field. It is included in the same form as the examples in the specification. Test plan: * Hit an ILS-DI URL like: http://koha/cgi-bin/koha/ilsdi.pl?service=GetAvailability&id=1+2+1781&id_type=item * see that the location information is now "Branch, Call # 123.4 ABC" --- C4/ILSDI/Services.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 64caa4a6fa..898b7cc5fd 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -872,9 +872,11 @@ sub _availability { return ( undef, 'unknown', 'Error: could not retrieve availability for this ID', undef ); } + my $biblionumber = $item->biblioitemnumber; my $library = Koha::Libraries->find( $item->holdingbranch ); my $location = $library ? $library->branchname : ''; + $location .= ", Call # $item->{itemcallnumber}" if $item->{itemcallnumber}; if ( $item->notforloan ) { return ( $biblionumber, 'not available', 'Not for loan', $location ); -- 2.20.1