From bedba1eb5eaa382e399ec8d8500f2ea46f4b0903 Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 17 Aug 2004 11:05:17 +0000 Subject: [PATCH] bugfix : adding existing value for fields mapped to authority & modif of a biblio. --- acqui.simple/addbiblio.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/acqui.simple/addbiblio.pl b/acqui.simple/addbiblio.pl index dd1025b7e7..813907ad90 100755 --- a/acqui.simple/addbiblio.pl +++ b/acqui.simple/addbiblio.pl @@ -170,18 +170,23 @@ sub create_input () { $subfield_data{mandatory}=$tagslib->{$tag}->{$subfield}->{mandatory}; $subfield_data{repeatable}=$tagslib->{$tag}->{$subfield}->{repeatable}; $subfield_data{kohafield}=$tagslib->{$tag}->{$subfield}->{kohafield}; + # it's an authorised field if ($tagslib->{$tag}->{$subfield}->{authorised_value}) { $subfield_data{marc_value}= build_authorized_values_list($tag, $subfield, $value, $dbh,$authorised_values_sth); + # it's a thesaurus / authority field } elsif ($tagslib->{$tag}->{$subfield}->{authtypecode}) { - $subfield_data{marc_value}=" {$tag}->{$subfield}->{authtypecode}&index=$i',$i)\">..."; + $subfield_data{marc_value}=" {$tag}->{$subfield}->{authtypecode}."&index=$i',$i)\">..."; + # it's a plugin field } elsif ($tagslib->{$tag}->{$subfield}->{'value_builder'}) { my $plugin="../value_builder/".$tagslib->{$tag}->{$subfield}->{'value_builder'}; require $plugin; my $extended_param = plugin_parameters($dbh,$rec,$tagslib,$i,$tabloop); my ($function_name,$javascript) = plugin_javascript($dbh,$rec,$tagslib,$i,$tabloop); $subfield_data{marc_value}=" ... $javascript"; + # it's an hidden field } elsif ($tag eq '') { $subfield_data{marc_value}=""; + # it's a standard field } else { $subfield_data{marc_value}=""; #" } -- 2.39.5