When adding to a basket from a new empty record, we call FillWithDefaultValues on the record from the form. In MARC::Record the leader is obtained via $record->leader But FillWithDefaultValues uses the tags form 'GetMarcStructure' where leader is 000 So when you add the record, we don't find a 000 and so add a field We end up with a record with the original leader, and a controlfield=000 with the default value.
How can we fix that? Skip 000?
I think we just need to catch field 000 and use the leader subroutine for setting it, need a conditional to catch the case