Lines 3003-3017
sub PrepareItemrecordDisplay {
Link Here
|
3003 |
}); |
3003 |
}); |
3004 |
my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef }; |
3004 |
my $pars = { dbh => $dbh, record => undef, tagslib =>$tagslib, id => $subfield_data{id}, tabloop => undef }; |
3005 |
$plugin->build( $pars ); |
3005 |
$plugin->build( $pars ); |
|
|
3006 |
if ( $itemrecord and my $field = $itemrecord->field($tag) ) { |
3007 |
$defaultvalue = $field->subfield($subfield); |
3008 |
} |
3006 |
if( !$plugin->errstr ) { |
3009 |
if( !$plugin->errstr ) { |
3007 |
#TODO Move html to template; see report 12176/13397 |
3010 |
#TODO Move html to template; see report 12176/13397 |
3008 |
my $tab= $plugin->noclick? '-1': ''; |
3011 |
my $tab= $plugin->noclick? '-1': ''; |
3009 |
my $class= $plugin->noclick? ' disabled': ''; |
3012 |
my $class= $plugin->noclick? ' disabled': ''; |
3010 |
my $title= $plugin->noclick? 'No popup': 'Tag editor'; |
3013 |
my $title= $plugin->noclick? 'No popup': 'Tag editor'; |
3011 |
$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; |
3014 |
$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; |
3012 |
} else { |
3015 |
} else { |
3013 |
warn $plugin->errstr; |
3016 |
warn $plugin->errstr; |
3014 |
$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 |
3017 |
$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 |
3015 |
} |
3018 |
} |
3016 |
} |
3019 |
} |
3017 |
elsif ( $tag eq '' ) { # it's an hidden field |
3020 |
elsif ( $tag eq '' ) { # it's an hidden field |
3018 |
- |
|
|