http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7412 --- Comment #9 from Katrin Fischer <katrin.fischer@bsz-bw.de> 2012-01-15 19:30:57 UTC --- I fixed the conflicts in systempreferences.sql and updatedatabase.pl and checked the code. The patch uses subfield codes instead of the Koha to MARC mappings: +sub removeFieldsForPrefill { + #FIXME: this is not generic enough. We could define fields to remove in a syspref. + my $item = shift; + # Getting item tag + my ($tag, $subtag) = GetMarcFromKohaField("items.barcode", ''); + if ($tag) { + my $field = $item->field($tag); + if ($field) { + $field->delete_subfield(code => 'f'); + $field->delete_subfield(code => 'k'); + $field->delete_subfield(code => 'u'); + $field->delete_subfield(code => 'v'); + $field->delete_subfield(code => 'x'); + $field->delete_subfield(code => 'z'); + } + } + return $item; + +} I checked and the item subfields between UNIMARC and MARC21 are quite different. Also it should be documented which fields are pre-filled and which not. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.