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

(-)a/admin/marc_subfields_structure.pl (-42 / +3 lines)
Lines 196-202 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{repeatable}     = $data->{'repeatable'} ? 1 : 0;
200
        $row_data{mandatory}      = $data->{'mandatory'} ? 1 : 0;
199
        $row_data{important}      = $data->{'important'} ? 1 : 0;
201
        $row_data{important}      = $data->{'important'} ? 1 : 0;
202
        $row_data{isurl}      = $data->{'isurl'} ? 1 : 0;
200
        $row_data{kohafield} = {
203
        $row_data{kohafield} = {
201
                    id      => "kohafield$i",
204
                    id      => "kohafield$i",
202
                    values  => \@kohafields,
205
                    values  => \@kohafields,
Lines 217-244 if ( $op eq 'add_form' ) { Link Here
217
                    values  => \@authtypes,
220
                    values  => \@authtypes,
218
                    default => $data->{'authtypecode'},
221
                    default => $data->{'authtypecode'},
219
        };
222
        };
220
        $row_data{repeatable} = CGI::checkbox(
221
            -name     => "repeatable$i",
222
            -checked  => $data->{'repeatable'} ? 'checked' : '',
223
            -value    => 1,
224
            -label    => '',
225
            -id       => "repeatable$i"
226
        );
227
        $row_data{mandatory} = CGI::checkbox(
228
            -name     => "mandatory$i",
229
            -checked  => $data->{'mandatory'} ? 'checked' : '',
230
            -value    => 1,
231
            -label    => '',
232
            -id       => "mandatory$i"
233
        );
234
        $row_data{hidden} = CGI::escapeHTML( $data->{hidden} );
223
        $row_data{hidden} = CGI::escapeHTML( $data->{hidden} );
235
        $row_data{isurl}  = CGI::checkbox(
236
            -name     => "isurl$i",
237
            -id       => "isurl$i",
238
            -checked  => $data->{'isurl'} ? 'checked' : '',
239
            -value    => 1,
240
            -label    => ''
241
        );
242
        $row_data{row}    = $i;
224
        $row_data{row}    = $i;
243
        $row_data{link}   = CGI::escapeHTML( $data->{'link'} ); 
225
        $row_data{link}   = CGI::escapeHTML( $data->{'link'} ); 
244
        push( @loop_data, \%row_data );
226
        push( @loop_data, \%row_data );
Lines 268-294 if ( $op eq 'add_form' ) { Link Here
268
                    default => "$data->{'kohafield'}",
250
                    default => "$data->{'kohafield'}",
269
                    };
251
                    };
270
        $row_data{hidden}     = "";
252
        $row_data{hidden}     = "";
271
        $row_data{repeatable} = CGI::checkbox(
272
            -name     => "repeatable$i",
273
            -id       => "repeatable$i",
274
            -checked  => '',
275
            -value    => 1,
276
            -label    => ''
277
        );
278
        $row_data{mandatory} = CGI::checkbox(
279
            -name     => "mandatory$i",
280
            -id       => "mandatory$i",
281
            -checked  => '',
282
            -value    => 1,
283
            -label    => ''
284
        );
285
        $row_data{isurl} = CGI::checkbox(
286
            -name     => "isurl$i",
287
            -id       => "isurl$i",
288
            -checked  => '',
289
            -value    => 1,
290
            -label    => ''
291
        );
292
        $row_data{value_builder} = {
253
        $row_data{value_builder} = {
293
                    id      => "value_builder$i",
254
                    id      => "value_builder$i",
294
                    values  => \@value_builder,
255
                    values  => \@value_builder,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-4 / +31 lines)
Lines 227-234 function populateHiddenCheckboxes(tab) { Link Here
227
                		[% END %]
227
                		[% END %]
228
                		<li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" size="40" maxlength="80" /></li>
228
                		<li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" 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>
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>
231
                		<li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
231
                            <label for="repeatable[% loo.row %]"> Repeatable: </label>
232
                            <label>
233
                            [% IF loo.repeatable %]
234
                            <input id="repeatable[% loo.row %]" type="checkbox" value="1" name="repeatable[% loo.row %]" checked="checked"/>
235
                            [% ELSE %]
236
                            <input id="repeatable[% loo.row %]" type="checkbox" value="1" name="repeatable[% loo.row %]"/>
237
                            [% END %]
238
                            </label>
239
                        </li>
240
                        <li>
241
                            <label for="mandatory[% loo.row %]"> Mandatory: </label>
242
                            <label>
243
                            [% IF loo.mandatory %]
244
                            <input id="mandatory[% loo.row %]" type="checkbox" value="1" name="mandatory[% loo.row %]" checked="checked"/>
245
                            [% ELSE %]
246
                            <input id="mandatory[% loo.row %]" type="checkbox" value="1" name="mandatory[% loo.row %]"/>
247
                            [% END %]
248
                            </label>
249
                        </li>
232
                        <li>
250
                        <li>
233
                            <label for="important[% loo.row %]"> Important: </label>
251
                            <label for="important[% loo.row %]"> Important: </label>
234
                            <label>
252
                            <label>
Lines 285-291 function populateHiddenCheckboxes(tab) { Link Here
285
                    <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]"/>
303
                    <input type="checkbox" id="hidden_flagged_[% loo.row %]" name="flagged_[% loo.row %]"/>
286
                    <label for="hidden_flagged_[% loo.row %]" style="float: none;">Flagged</label>
304
                    <label for="hidden_flagged_[% loo.row %]" style="float: none;">Flagged</label>
287
                </li>
305
                </li>
288
                <li><label for="isurl[% loo.row %]">Is a URL:</label>[% loo.isurl %] (if checked, it means that the subfield is a URL and can be clicked)</li>
306
                <li>
307
                    <label for="isurl[% loo.row %]"> Is a URL: </label>
308
                    <label>
309
                    [% IF loo.isurl %]
310
                    <input id="isurl[% loo.row %]" type="checkbox" value="1" name="isurl[% loo.row %]" checked="checked"/>
311
                    [% ELSE %]
312
                    <input id="isurl[% loo.row %]" type="checkbox" value="1" name="isurl[% loo.row %]"/>
313
                    [% END %]
314
                    </label>
315
                    (if checked, it means that the subfield is a URL and can be clicked)
316
                </li>
289
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
317
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
290
                <li>
318
                <li>
291
                    <label for="kohafield[% loo.row %]">Koha link:</label>
319
                    <label for="kohafield[% loo.row %]">Koha link:</label>
292
- 

Return to bug 8643