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

(-)a/Koha/MarcEditor.pm (-2 / +2 lines)
Lines 505-511 sub _create_input { Link Here
505
        my $is_readonly = $self->{type} eq $Koha::MarcEditor::EDITOR_BIBLIO && !C4::Context->preference("BiblioAddsAuthorities");
505
        my $is_readonly = $self->{type} eq $Koha::MarcEditor::EDITOR_BIBLIO && !C4::Context->preference("BiblioAddsAuthorities");
506
506
507
        $subfield_data{marc_value} = {
507
        $subfield_data{marc_value} = {
508
            type      => $self->{type} eq $Koha::MarcEditor::EDITOR_AUTHORITY ? 'text1' : 'text',
508
            type      => 'text',
509
            id        => $subfield_data{id},
509
            id        => $subfield_data{id},
510
            name      => $subfield_data{id},
510
            name      => $subfield_data{id},
511
            value     => $value,
511
            value     => $value,
Lines 526-532 sub _create_input { Link Here
526
        $plugin->build( $pars );
526
        $plugin->build( $pars );
527
        if( !$plugin->errstr ) {
527
        if( !$plugin->errstr ) {
528
            $subfield_data{marc_value} = {
528
            $subfield_data{marc_value} = {
529
                type           => $self->{type} eq $Koha::MarcEditor::EDITOR_AUTHORITY ? 'text2' : 'text_complex',
529
                type           => 'text_complex',
530
                id             => $subfield_data{id},
530
                id             => $subfield_data{id},
531
                name           => $subfield_data{id},
531
                name           => $subfield_data{id},
532
                value          => $value,
532
                value          => $value,
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc (-3 / +2 lines)
Lines 338-344 function Check(){ Link Here
338
                [% END %]
338
                [% END %]
339
339
340
                [% SET mv = subfield_loo.marc_value %]
340
                [% SET mv = subfield_loo.marc_value %]
341
                [% IF ( mv.type == 'text' or mv.type == 'text1' ) %]
341
                [% IF ( mv.type == 'text' ) %]
342
                    [% IF ( mv.readonly == 1 ) %]
342
                    [% IF ( mv.readonly == 1 ) %]
343
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" />
343
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" />
344
                    [% ELSE %]
344
                    [% ELSE %]
Lines 347-353 function Check(){ Link Here
347
                    [% IF ( mv.authtype ) %]
347
                    [% IF ( mv.authtype ) %]
348
                    <span class="subfield_controls"><a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtype | html -%]','biblio'); return false;" tabindex="1" title="Tag editor">Tag editor</a></span>
348
                    <span class="subfield_controls"><a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtype | html -%]','biblio'); return false;" tabindex="1" title="Tag editor">Tag editor</a></span>
349
                    [% END %]
349
                    [% END %]
350
                [% ELSIF ( mv.type == 'text_complex' or mv.type == 'text2' ) %]
350
                [% ELSIF ( mv.type == 'text_complex' ) %]
351
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
351
                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
352
                    <span class="subfield_controls">
352
                    <span class="subfield_controls">
353
                        [% IF mv.noclick %]
353
                        [% IF mv.noclick %]
354
- 

Return to bug 21280