From 2f2ec10b467d705c3333e02d61215e6d937e4305 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Nov 2012 10:51:49 +0100 Subject: [PATCH] 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. Signed-off-by: Chris Cormack --- C4/ILSDI/Services.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index bdb8311550..1b3070d6fe 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'}; -- 2.39.5