View | Details | Raw Unified | Return to bug 8643
Collapse All | Expand All

(-)a/admin/marc_subfields_structure.pl (-14 / +1 lines)
Lines 196-201 if ( $op eq 'add_form' ) { Link Here
196
        $row_data{liblibrarian} = CGI::escapeHTML( $data->{'liblibrarian'} );
196
        $row_data{liblibrarian} = CGI::escapeHTML( $data->{'liblibrarian'} );
197
        $row_data{libopac}      = CGI::escapeHTML( $data->{'libopac'} );
197
        $row_data{libopac}      = CGI::escapeHTML( $data->{'libopac'} );
198
        $row_data{seealso}      = CGI::escapeHTML( $data->{'seealso'} );
198
        $row_data{seealso}      = CGI::escapeHTML( $data->{'seealso'} );
199
        $row_data{important}      = $data->{'important'} ? 1 : 0;
199
        $row_data{kohafield} = {
200
        $row_data{kohafield} = {
200
                    id      => "kohafield$i",
201
                    id      => "kohafield$i",
201
                    values  => \@kohafields,
202
                    values  => \@kohafields,
Lines 230-242 if ( $op eq 'add_form' ) { Link Here
230
            -label    => '',
231
            -label    => '',
231
            -id       => "mandatory$i"
232
            -id       => "mandatory$i"
232
        );
233
        );
233
        $row_data{important} = CGI::checkbox(
234
            -name     => "important$i",
235
            -checked  => $data->{'important'} ? 'checked' : '',
236
            -value    => 1,
237
            -label    => '',
238
            -id       => "important$i"
239
        );
240
        $row_data{hidden} = CGI::escapeHTML( $data->{hidden} );
234
        $row_data{hidden} = CGI::escapeHTML( $data->{hidden} );
241
        $row_data{isurl}  = CGI::checkbox(
235
        $row_data{isurl}  = CGI::checkbox(
242
            -name     => "isurl$i",
236
            -name     => "isurl$i",
Lines 288-300 if ( $op eq 'add_form' ) { Link Here
288
            -value    => 1,
282
            -value    => 1,
289
            -label    => ''
283
            -label    => ''
290
        );
284
        );
291
        $row_data{important} = CGI::checkbox(
292
            -name     => "important$i",
293
            -id       => "important$i",
294
            -checked  => '',
295
            -value    => 1,
296
            -label    => ''
297
        );
298
        $row_data{isurl} = CGI::checkbox(
285
        $row_data{isurl} = CGI::checkbox(
299
            -name     => "isurl$i",
286
            -name     => "isurl$i",
300
            -id       => "isurl$i",
287
            -id       => "isurl$i",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-1 / +10 lines)
Lines 229-235 function populateHiddenCheckboxes(tab) { Link Here
229
                		<li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
229
                		<li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
230
                		<li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %]</li>
230
                		<li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %]</li>
231
                		<li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
231
                		<li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
232
                        <li><label for="important[% loo.row %]">Important: </label>[% loo.important %]</li>
232
                        <li>
233
                            <label for="important[% loo.row %]"> Important: </label>
234
                            <label>
235
                            [% IF loo.important %]
236
                            <input id="important[% loo.row %]" type="checkbox" value="1" name="important[% loo.row %]" checked="checked"/>
237
                            [% ELSE %]
238
                            <input id="important[% loo.row %]" type="checkbox" value="1" name="important[% loo.row %]"/>
239
                            [% END %]
240
                            </label>
241
                        </li
233
                        <li><label for="tab[% loo.row %]">Managed in tab: </label>
242
                        <li><label for="tab[% loo.row %]">Managed in tab: </label>
234
                            <select name="tab" tabindex="" size="1" id="[% loo.tab.id %]">
243
                            <select name="tab" tabindex="" size="1" id="[% loo.tab.id %]">
235
                            [%- IF ( loo.tab.default ==  -1 ) -%]
244
                            [%- IF ( loo.tab.default ==  -1 ) -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-2 lines)
Lines 111-117 $(document).ready(function() { Link Here
111
            <input type="checkbox" name="important" id="important" value="1" />
111
            <input type="checkbox" name="important" id="important" value="1" />
112
        [% END %]
112
        [% END %]
113
    </li>
113
    </li>
114
    <li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li>
115
</ol></fieldset> 
114
</ol></fieldset> 
116
    <fieldset class="action">
115
    <fieldset class="action">
117
        <input type="submit" value="Save changes" />
116
        <input type="submit" value="Save changes" />
118
- 

Return to bug 8643