From b65397172fb48be0e5ca8608cdcfaf8eee2441d0 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Fri, 22 Feb 2019 12:22:34 +0200 Subject: [PATCH] Bug 21280: Unify field types --- Koha/MarcEditor.pm | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/MarcEditor.pm b/Koha/MarcEditor.pm index 85d6c20cec..a71fd3a33e 100644 --- a/Koha/MarcEditor.pm +++ b/Koha/MarcEditor.pm @@ -505,7 +505,7 @@ sub _create_input { my $is_readonly = $self->{type} eq $Koha::MarcEditor::EDITOR_BIBLIO && !C4::Context->preference("BiblioAddsAuthorities"); $subfield_data{marc_value} = { - type => $self->{type} eq $Koha::MarcEditor::EDITOR_AUTHORITY ? 'text1' : 'text', + type => 'text', id => $subfield_data{id}, name => $subfield_data{id}, value => $value, @@ -526,7 +526,7 @@ sub _create_input { $plugin->build( $pars ); if( !$plugin->errstr ) { $subfield_data{marc_value} = { - type => $self->{type} eq $Koha::MarcEditor::EDITOR_AUTHORITY ? 'text2' : 'text_complex', + type => 'text_complex', id => $subfield_data{id}, name => $subfield_data{id}, value => $value, diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc index e02b8067e3..5f6f357407 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc @@ -336,9 +336,9 @@ function Check(){ [% END %] - + [% SET mv = subfield_loo.marc_value %] - [% IF ( mv.type == 'text' or mv.type == 'text1' ) %] + [% IF ( mv.type == 'text' ) %] [% IF ( mv.readonly == 1 ) %] [% ELSE %] @@ -347,7 +347,7 @@ function Check(){ [% IF ( mv.authtype ) %] Tag editor [% END %] - [% ELSIF ( mv.type == 'text_complex' or mv.type == 'text2' ) %] + [% ELSIF ( mv.type == 'text_complex' ) %] [% IF mv.noclick %] -- 2.17.1