Bugzilla – Attachment 13986 Details for
Bug 9019
ILS-DI: GetRecords should return item fields in marcxml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9019: Return item fields in ILS-DI GetRecords
SIGNED-OFF-Bug-9019-Return-item-fields-in-ILS-DI-G.patch (text/plain), 1.32 KB, created by
Katrin Fischer
on 2012-12-10 20:58:30 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9019: Return item fields in ILS-DI GetRecords
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-12-10 20:58:30 UTC
Size:
1.32 KB
patch
obsolete
>From 4929373c988177e8f9e81b6d0a3857ccff9313d5 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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 <srikanth@catalyst.net.nz> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> > >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 <marcxml> 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9019
:
13279
|
13414
| 13986