Bugzilla – Attachment 21568 Details for
Bug 9046
Items are not exported with the tools/export.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9046: FIX wrong test on an arrayref instead of an array
Bug-9046-FIX-wrong-test-on-an-arrayref-instead-of-.patch (text/plain), 1.05 KB, created by
Chris Cormack
on 2013-09-29 04:48:14 UTC
(
hide
)
Description:
Bug 9046: FIX wrong test on an arrayref instead of an array
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-09-29 04:48:14 UTC
Size:
1.05 KB
patch
obsolete
>From 9fa396415b18af77eec393e7eb7d42b7185a7095 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 9 Nov 2012 18:34:40 +0100 >Subject: [PATCH] Bug 9046: FIX wrong test on an arrayref instead of an array > >EmbedItemsInMarcBiblio does not embed items when the itemnumbers param >is given. That breaks the export tools (used from commandline). > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > C4/Biblio.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 7c3d0ef..1a4e978 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2851,6 +2851,7 @@ sub EmbedItemsInMarcBiblio { > my @item_fields; > my ( $itemtag, $itemsubfield ) = GetMarcFromKohaField( "items.itemnumber", $frameworkcode ); > while (my ($itemnumber) = $sth->fetchrow_array) { >+ next if @$itemnumbers and not grep { $_ == $itemnumber } @$itemnumbers; > require C4::Items; > my $item_marc = C4::Items::GetMarcItem($biblionumber, $itemnumber); > push @item_fields, $item_marc->field($itemtag); >-- >1.8.4.rc3
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 9046
:
13366
|
13369
|
13389
|
13413
|
21378
|
21379
| 21568 |
21569