From 7f7a1e26a6cb60e9bb2e8985e636503604961674 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. http://bugs.koha-community.org/show_bug.cgi?id=9010 Signed-off-by: Jared Camins-Esakov --- C4/ILSDI/Services.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 5a62954be6..68cbdb3359 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