From d52c7bb22e350d788f9225bf0f60eba37a915714 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 Signed-off-by: Michal Denar Signed-off-by: Michal Denar Signed-off-by: Josef Moravec --- Koha/MarcEditor.pm | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/MarcEditor.pm b/Koha/MarcEditor.pm index 85d6c20..a71fd3a 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 e3abb8d..9255dfb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc @@ -338,7 +338,7 @@ 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.1.4