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

(-)a/C4/Items.pm (-3 / +5 lines)
Lines 3094-3108 sub PrepareItemrecordDisplay { Link Here
3094
                    });
3094
                    });
3095
                    my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef };
3095
                    my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef };
3096
                    $plugin->build( $pars );
3096
                    $plugin->build( $pars );
3097
                    if ( $itemrecord and my $field = $itemrecord->field($tag) ) {
3098
                        $defaultvalue = $field->subfield($subfield);
3099
                    }
3097
                    if( !$plugin->errstr ) {
3100
                    if( !$plugin->errstr ) {
3098
                        #TODO Move html to template; see report 12176/13397
3101
                        #TODO Move html to template; see report 12176/13397
3099
                        my $tab= $plugin->noclick? '-1': '';
3102
                        my $tab= $plugin->noclick? '-1': '';
3100
                        my $class= $plugin->noclick? ' disabled': '';
3103
                        my $class= $plugin->noclick? ' disabled': '';
3101
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
3104
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
3102
                        $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;
3105
                        $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;
3103
                    } else {
3106
                    } else {
3104
                        warn $plugin->errstr;
3107
                        warn $plugin->errstr;
3105
                        $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
3108
                        $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
3106
                    }
3109
                    }
3107
                }
3110
                }
3108
                elsif ( $tag eq '' ) {       # it's an hidden field
3111
                elsif ( $tag eq '' ) {       # it's an hidden field
3109
- 

Return to bug 15030