Bugzilla – Attachment 21378 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]
[3.8.x] FIX wrong test on an arrayref instead of an array
0001-Bug-9046-FIX-wrong-test-on-an-arrayref-instead-of-an.patch (text/plain), 1.06 KB, created by
Mark Tompsett
on 2013-09-23 18:28:43 UTC
(
hide
)
Description:
[3.8.x] FIX wrong test on an arrayref instead of an array
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2013-09-23 18:28:43 UTC
Size:
1.06 KB
patch
obsolete
>From df70927d6c2cdc1adf15f98ab8ecc6204d52fd0c 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 1/2] 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.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 9046
:
13366
|
13369
|
13389
|
13413
|
21378
|
21379
|
21568
|
21569