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

(-)a/C4/Items.pm (-6 / +5 lines)
Lines 2542-2558 sub PrepareItemrecordDisplay { Link Here
2542
                        my $tab= $plugin->noclick? '-1': '';
2542
                        my $tab= $plugin->noclick? '-1': '';
2543
                        my $class= $plugin->noclick? ' disabled': '';
2543
                        my $class= $plugin->noclick? ' disabled': '';
2544
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
2544
                        my $title= $plugin->noclick? 'No popup': 'Tag editor';
2545
                        $subfield_data{marc_value} = qq[<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" /><a href="#" id="buttonDot_$subfield_data{id}" tabindex="$tab" class="buttonDot $class" title="$title">...</a>\n].$plugin->javascript;
2545
                        $subfield_data{marc_value} = qq[<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" /><a href="#" id="buttonDot_$subfield_data{id}" class="buttonDot $class" title="$title">...</a>\n].$plugin->javascript;
2546
                    } else {
2546
                    } else {
2547
                        warn $plugin->errstr;
2547
                        warn $plugin->errstr;
2548
                        $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />); # supply default input form
2548
                        $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />); # supply default input form
2549
                    }
2549
                    }
2550
                }
2550
                }
2551
                elsif ( $tag eq '' ) {       # it's an hidden field
2551
                elsif ( $tag eq '' ) {       # it's an hidden field
2552
                    $subfield_data{marc_value} = qq(<input type="hidden" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2552
                    $subfield_data{marc_value} = qq(<input type="hidden" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2553
                }
2553
                }
2554
                elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) {   # FIXME: shouldn't input type be "hidden" ?
2554
                elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) {   # FIXME: shouldn't input type be "hidden" ?
2555
                    $subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2555
                    $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2556
                }
2556
                }
2557
                elsif ( length($defaultvalue) > 100
2557
                elsif ( length($defaultvalue) > 100
2558
                            or (C4::Context->preference("marcflavour") eq "UNIMARC" and
2558
                            or (C4::Context->preference("marcflavour") eq "UNIMARC" and
Lines 2561-2569 sub PrepareItemrecordDisplay { Link Here
2561
                                  500 <= $tag && $tag < 600                     )
2561
                                  500 <= $tag && $tag < 600                     )
2562
                          ) {
2562
                          ) {
2563
                    # oversize field (textarea)
2563
                    # oversize field (textarea)
2564
                    $subfield_data{marc_value} = qq(<textarea tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength">$defaultvalue</textarea>\n");
2564
                    $subfield_data{marc_value} = qq(<textarea id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength">$defaultvalue</textarea>\n");
2565
                } else {
2565
                } else {
2566
                    $subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2566
                    $subfield_data{marc_value} = qq(<input type="text" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$maxlength" value="$defaultvalue" />);
2567
                }
2567
                }
2568
                push( @loop_data, \%subfield_data );
2568
                push( @loop_data, \%subfield_data );
2569
            }
2569
            }
2570
- 

Return to bug 13305