Lines 2780-2800
sub PrepareItemrecordDisplay {
Link Here
|
2780 |
my $extended_param = plugin_parameters( $dbh, undef, $tagslib, $subfield_data{id}, undef ); |
2780 |
my $extended_param = plugin_parameters( $dbh, undef, $tagslib, $subfield_data{id}, undef ); |
2781 |
my ( $function_name, $javascript ) = plugin_javascript( $dbh, undef, $tagslib, $subfield_data{id}, undef ); |
2781 |
my ( $function_name, $javascript ) = plugin_javascript( $dbh, undef, $tagslib, $subfield_data{id}, undef ); |
2782 |
$subfield_data{random} = int(rand(1000000)); # why do we need 2 different randoms? |
2782 |
$subfield_data{random} = int(rand(1000000)); # why do we need 2 different randoms? |
2783 |
$subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" |
2783 |
$subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" |
2784 |
onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');" |
2784 |
onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');" |
2785 |
onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" /> |
2785 |
onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" /> |
2786 |
<a href="#" class="buttonDot" onclick="Clic$function_name('$subfield_data{id}'); return false;" title="Tag Editor">...</a> |
2786 |
<a href="#" class="buttonDot" onclick="Clic$function_name('$subfield_data{id}'); return false;" title="Tag Editor">...</a> |
2787 |
$javascript]; |
2787 |
$javascript]; |
2788 |
} else { |
2788 |
} else { |
2789 |
warn "Plugin Failed: $plugin"; |
2789 |
warn "Plugin Failed: $plugin"; |
2790 |
$subfield_data{marc_value} = qq(<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" />); # supply default input form |
2790 |
$subfield_data{marc_value} = qq(<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" />); # supply default input form |
2791 |
} |
2791 |
} |
2792 |
} |
2792 |
} |
2793 |
elsif ( $tag eq '' ) { # it's an hidden field |
2793 |
elsif ( $tag eq '' ) { # it's an hidden field |
2794 |
$subfield_data{marc_value} = qq(<input type="hidden" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" value="$defaultvalue" />); |
2794 |
$subfield_data{marc_value} = qq(<input type="hidden" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" />); |
2795 |
} |
2795 |
} |
2796 |
elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) { # FIXME: shouldn't input type be "hidden" ? |
2796 |
elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) { # FIXME: shouldn't input type be "hidden" ? |
2797 |
$subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" value="$defaultvalue" />); |
2797 |
$subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" />); |
2798 |
} |
2798 |
} |
2799 |
elsif ( length($defaultvalue) > 100 |
2799 |
elsif ( length($defaultvalue) > 100 |
2800 |
or (C4::Context->preference("marcflavour") eq "UNIMARC" and |
2800 |
or (C4::Context->preference("marcflavour") eq "UNIMARC" and |
Lines 2803-2809
sub PrepareItemrecordDisplay {
Link Here
|
2803 |
500 <= $tag && $tag < 600 ) |
2803 |
500 <= $tag && $tag < 600 ) |
2804 |
) { |
2804 |
) { |
2805 |
# oversize field (textarea) |
2805 |
# oversize field (textarea) |
2806 |
$subfield_data{marc_value} = qq(<textarea tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255">$defaultvalue</textarea>\n"); |
2806 |
$subfield_data{marc_value} = qq(<textarea tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255">$defaultvalue</textarea>\n"); |
2807 |
} else { |
2807 |
} else { |
2808 |
$subfield_data{marc_value} = "<input type=\"text\" name=\"field_value\" value=\"$defaultvalue\" size=\"50\" maxlength=\"255\" />"; |
2808 |
$subfield_data{marc_value} = "<input type=\"text\" name=\"field_value\" value=\"$defaultvalue\" size=\"50\" maxlength=\"255\" />"; |
2809 |
} |
2809 |
} |