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 335-341 function Check(){ Link Here
335
                [% END %]
335
                [% END %]
336
336
337
                [% SET mv = subfield_loo.marc_value %]
337
                [% SET mv = subfield_loo.marc_value %]
338
                [% IF ( mv.type == 'text' or mv.type == 'text1' ) %]
338
                [% IF ( mv.type == 'text' ) %]
339
                    [% IF ( mv.readonly == 1 ) %]
339
                    [% IF ( mv.readonly == 1 ) %]
340
                    <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" />
340
                    <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" />
341
                    [% ELSE %]
341
                    [% ELSE %]
Lines 344-350 function Check(){ Link Here
344
                    [% IF ( mv.authtype ) %]
344
                    [% IF ( mv.authtype ) %]
345
                    <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>
345
                    <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>
346
                    [% END %]
346
                    [% END %]
347
                [% ELSIF ( mv.type == 'text_complex' or mv.type == 'text2' ) %]
347
                [% ELSIF ( mv.type == 'text_complex' ) %]
348
                    <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 -%]" />
348
                    <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 -%]" />
349
                    <span class="subfield_controls">
349
                    <span class="subfield_controls">
350
                        [% IF mv.noclick %]
350
                        [% IF mv.noclick %]
351
- 

Return to bug 21280