@@ -, +, @@
frameworks
be overwritten with its Default counterpart.
Note: Although we could leave the field empty, since Koha looks at the
Default framework only, it does not cost much to keep these fields in
sync with Default and perhaps catch a bug when someone somewhere looks
in the wrong framework.
Verify that the kohafield is updated after you saved the subfield.
---
admin/marc_subfields_structure.pl | 5 +++++
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt | 2 +-
.../intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt | 5 ++++-
3 files changed, 10 insertions(+), 2 deletions(-)
--- a/admin/marc_subfields_structure.pl
+++ a/admin/marc_subfields_structure.pl
@@ -310,6 +310,11 @@ elsif ( $op eq 'add_validate' ) {
),
);
} else {
+ if( $frameworkcode ne q{} ) {
+ # BZ 19096: Overwrite kohafield from Default when adding a new record
+ my $rec = Koha::MarcSubfieldStructures->find( q{}, $tagfield, $tagsubfield );
+ $kohafield = $rec->kohafield if $rec;
+ }
$sth_insert->execute(
$tagfield,
$tagsubfield,
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt
@@ -70,7 +70,7 @@
Create and manage Bibliographic frameworks that define the characteristics of your MARC Records (field and subfield definitions) as well as templates for the MARC editor.
Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records. Note that the mapping can be defined through MARC Bibliographic Framework. This tool is just a shortcut to speed up linkage.
+
Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records.