From baee3e5c9bd93ac028e7142b0a52e3912ce5098e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Sat, 13 Nov 2010 12:05:46 -0500 Subject: [PATCH] Bug 4866 for master (Enable Change event for item plugins) Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- cataloguing/additem.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 9676fd65b8..b052cbcafd 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -532,8 +532,10 @@ foreach my $tag (sort keys %{$tagslib}) { if (do $plugin) { my $extended_param = plugin_parameters( $dbh, $temp, $tagslib, $subfield_data{id}, \@loop_data ); my ( $function_name, $javascript ) = plugin_javascript( $dbh, $temp, $tagslib, $subfield_data{id}, \@loop_data ); + my $change= index($javascript, 'function Change')>-1?"return Change$function_name($subfield_data{random}, '$subfield_data{id}');": 'return 1;'; #enhancement 4866 $subfield_data{marc_value} = qq[ ... $javascript]; -- 2.39.5