@@ -, +, @@ preference to "Enable", verify the preference DefaultCountryField008 is empty four blank spaces are ||| four blank spaces are "fr " (including the space, so following characters haven't shifted left, and the last character is still d) --- cataloguing/editor.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- a/cataloguing/editor.pl +++ a/cataloguing/editor.pl @@ -69,6 +69,7 @@ $template->{VARS}->{editable_batches} = [ $schema->resultset('ImportBatch')->sea # Needed information for cataloging plugins $template->{VARS}->{DefaultLanguageField008} = pack( 'A3', C4::Context->preference('DefaultLanguageField008') || 'eng' ); +$template->{VARS}->{DefaultCountryField008} = pack( 'A3', C4::Context->preference('DefaultCountryField008') || '|||' ); my $authtags = Koha::MarcSubfieldStructures->search({ authtypecode => { '!=' => '' }, 'frameworkcode' => '' }); $template->{VARS}->{authtags} = $authtags; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc @@ -261,7 +261,7 @@ require( [ 'koha-backend', 'widget', 'text-marc' ], function( KohaBackend, Widge Widget.Register( '008@', { makeTemplate: function() { var now = new Date(); - return Widget.PadNum( now.getYear() % 100, 2 ) + Widget.PadNum( now.getMonth() + 1, 2 ) + Widget.PadNum( now.getDate(), 2 ) + "b xxu||||| |||| 00| 0 [% DefaultLanguageField008 | html %] d"; + return Widget.PadNum( now.getYear() % 100, 2 ) + Widget.PadNum( now.getMonth() + 1, 2 ) + Widget.PadNum( now.getDate(), 2 ) + "b [% DefaultCountryField008 | html %]||||| |||| 00| 0 [% DefaultLanguageField008 | html %] d"; }, init: function() { var $result = $( '' + _("Fixed data:") + '' + _("Loading...") + '' ); --