@@ -, +, @@ subfield and duplicate authorized tag --- admin/marc_subfields_structure.pl | 15 +-------------- .../en/modules/admin/marc_subfields_structure.tt | 11 ++++++++++- .../prog/en/modules/admin/marctagstructure.tt | 1 - 3 files changed, 11 insertions(+), 16 deletions(-) --- a/admin/marc_subfields_structure.pl +++ a/admin/marc_subfields_structure.pl @@ -196,6 +196,7 @@ if ( $op eq 'add_form' ) { $row_data{liblibrarian} = CGI::escapeHTML( $data->{'liblibrarian'} ); $row_data{libopac} = CGI::escapeHTML( $data->{'libopac'} ); $row_data{seealso} = CGI::escapeHTML( $data->{'seealso'} ); + $row_data{important} = $data->{'important'} ? 1 : 0; $row_data{kohafield} = { id => "kohafield$i", values => \@kohafields, @@ -230,13 +231,6 @@ if ( $op eq 'add_form' ) { -label => '', -id => "mandatory$i" ); - $row_data{important} = CGI::checkbox( - -name => "important$i", - -checked => $data->{'important'} ? 'checked' : '', - -value => 1, - -label => '', - -id => "important$i" - ); $row_data{hidden} = CGI::escapeHTML( $data->{hidden} ); $row_data{isurl} = CGI::checkbox( -name => "isurl$i", @@ -288,13 +282,6 @@ if ( $op eq 'add_form' ) { -value => 1, -label => '' ); - $row_data{important} = CGI::checkbox( - -name => "important$i", - -id => "important$i", - -checked => '', - -value => 1, - -label => '' - ); $row_data{isurl} = CGI::checkbox( -name => "isurl$i", -id => "isurl$i", --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -229,7 +229,16 @@ function populateHiddenCheckboxes(tab) {
  • [% loo.repeatable %]
  • [% loo.mandatory %]
  • -
  • [% loo.important %]
  • +
  • + + +
  • [% END %] -
  • [% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)
  • --