[Koha-patches] [PATCH] Bug 4263: Remove duplicated lines from C4::Items

Colin Campbell colin.campbell at ptfs-europe.com
Fri Feb 11 12:48:20 CET 2011


Merge of bug 4263 duplicates the bulk of
ModItemFromMarc causing compile time errors
---
 C4/Items.pm |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index 0ea8b86..05df0c5 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); 
 }
 
-- 
1.7.4



More information about the Koha-patches mailing list