From 4929373c988177e8f9e81b6d0a3857ccff9313d5 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Nov 2012 10:51:49 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 9019: Return item fields in ILS-DI GetRecords Signed-off-by: Srikanth Dhondi Signed-off-by: Katrin Fischer 1) Activate ILS-DI in system preferencs 2) Access http://.../cgi-bin/koha/ilsdi.pl to see documentation 3) Try http://.../cgi-bin/koha/ilsdi.pl?service=GetRecords&id=12+14 with various valid biblionumbers for your system 4) Verify 952 is included in the and all other data displays correctly All tests pass. http://bugs.koha-community.org/show_bug.cgi?id=9010 --- C4/ILSDI/Services.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 5a62954..68cbdb3 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -197,6 +197,12 @@ sub GetRecords { $biblioitem->{code} = "RecordNotFound"; } + my $embed_items = 1; + my $record = GetMarcBiblio($biblionumber, $embed_items); + if ($record) { + $biblioitem->{marcxml} = $record->as_xml_record(); + } + # We don't want MARC to be displayed delete $biblioitem->{'marc'}; -- 1.7.9.5