From: Colin Campbell Date: Fri, 11 Feb 2011 11:48:20 +0000 (+0000) Subject: Bug 4263: Remove duplicated lines from C4::Items X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=1a0b6ded11a22c8c1425e1bb4a7fdd61d3c46c5b;p=koha.git Bug 4263: Remove duplicated lines from C4::Items Merge of bug 4263 duplicates the bulk of ModItemFromMarc causing compile time errors Signed-off-by: Chris Cormack --- diff --git a/C4/Items.pm b/C4/Items.pm index 0ea8b8668c..05df0c56f0 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -442,18 +442,6 @@ sub ModItemFromMarc { } my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode ); - my $dbh = C4::Context->dbh; - my $frameworkcode = GetFrameworkCode( $biblionumber ); - my ($itemtag,$itemsubfield)=GetMarcFromKohaField("items.itemnumber",$frameworkcode); - - my $localitemmarc=MARC::Record->new; - $localitemmarc->append_fields($item_marc->field($itemtag)); - my $item = &TransformMarcToKoha( $dbh, $localitemmarc, $frameworkcode, 'items'); - foreach my $item_field (keys %default_values_for_mod_from_marc) { - $item->{$item_field} = $default_values_for_mod_from_marc{$item_field} unless exists $item->{$item_field}; - } - my $unlinked_item_subfields = _get_unlinked_item_subfields($localitemmarc, $frameworkcode); - return ModItem($item, $biblionumber, $itemnumber, $dbh, $frameworkcode, $unlinked_item_subfields); }