From 84c45c8c21be6e1bb53701b25f758abaf2d96883 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 22 Jan 2019 13:50:39 -0500 Subject: [PATCH] Bug 7614: (QA follow-up) Tidy code to remove tab characters Signed-off-by: Nick Clemens (cherry picked from commit 874479a474d9a3fe451c22b8d73b5d4995024363) Signed-off-by: Martin Renvoize --- C4/Items.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 04fe579ab3..d164d06e6e 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -220,14 +220,14 @@ sub AddItemFromMarc { my $dbh = C4::Context->dbh; # parse item hash from MARC - my $frameworkcode = C4::Biblio::GetFrameworkCode( $biblionumber ); - my ($itemtag,$itemsubfield)=C4::Biblio::GetMarcFromKohaField("items.itemnumber",$frameworkcode); - - my $localitemmarc=MARC::Record->new; - $localitemmarc->append_fields($source_item_marc->field($itemtag)); - my $item = C4::Biblio::TransformMarcToKoha( $localitemmarc, $frameworkcode ,'items'); - my $unlinked_item_subfields = _get_unlinked_item_subfields($localitemmarc, $frameworkcode); - return AddItem($item, $biblionumber, $dbh, $frameworkcode, $unlinked_item_subfields); + my $frameworkcode = C4::Biblio::GetFrameworkCode($biblionumber); + my ( $itemtag, $itemsubfield ) = C4::Biblio::GetMarcFromKohaField( "items.itemnumber", $frameworkcode ); + + my $localitemmarc = MARC::Record->new; + $localitemmarc->append_fields( $source_item_marc->field($itemtag) ); + my $item = C4::Biblio::TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); + my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode ); + return AddItem( $item, $biblionumber, $dbh, $frameworkcode, $unlinked_item_subfields ); } =head2 AddItem -- 2.39.5