http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7412
--- Comment #9 from Katrin Fischer <[email protected]> 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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
