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

(-)a/C4/Items.pm (-3 / +5 lines)
Lines 3053-3067 sub PrepareItemrecordDisplay { Link Here
3053
                    });
3053
                    });
3054
                    my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef };
3054
                    my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef };
3055
                    $plugin->build( $pars );
3055
                    $plugin->build( $pars );
3056
                    if ( $itemrecord and my $field = $itemrecord->field($tag) ) {
3057
                        $defaultvalue = $field->subfield($subfield);
3058
                    }
3056
                    if( !$plugin->errstr ) {
3059
                    if( !$plugin->errstr ) {
3057
                        #TODO Move html to template; see report 12176/13397
3060
                        #TODO Move html to template; see report 12176/13397
3058
                        my $tab= $plugin->noclick? '-1': '';
3061
                        my $tab= $plugin->noclick? '-1': '';
3059
                        my $class= $plugin->noclick? ' disabled': '';
3062
                        my $class= $plugin->noclick? ' disabled': '';
3060
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
3063
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
3061
                        $subfield_data{marc_value} = qq[<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" /><a href="#" id="buttonDot_$subfield_data{id}" tabindex="$tab" class="buttonDot $class" title="$title">...</a>\n].$plugin->javascript;
3064
                        $subfield_data{marc_value} = qq[<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" /><a href="#" id="buttonDot_$subfield_data{id}" tabindex="$tab" class="buttonDot $class" title="$title">...</a>\n].$plugin->javascript;
3062
                    } else {
3065
                    } else {
3063
                        warn $plugin->errstr;
3066
                        warn $plugin->errstr;
3064
                        $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" />); # supply default input form
3067
                        $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" />); # supply default input form
3065
                    }
3068
                    }
3066
                }
3069
                }
3067
                elsif ( $tag eq '' ) {       # it's an hidden field
3070
                elsif ( $tag eq '' ) {       # it's an hidden field
3068
- 

Return to bug 15030