From bb98c06076091b95ea5f677cec6a6d0b7ba2fb86 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 20 Dec 2002 14:02:39 +0000 Subject: [PATCH] changes to reflect official API --- value_builder/unimarc_field_100.pl | 6 +-- value_builder/unimarc_field_225a.pl | 6 +-- value_builder/unimarc_field_700-4.pl | 43 ++++++++++------------ value_builder/unimarc_field_700_701_702.pl | 6 +-- 4 files changed, 22 insertions(+), 39 deletions(-) diff --git a/value_builder/unimarc_field_100.pl b/value_builder/unimarc_field_100.pl index e2f0f282a7..6ca4317481 100755 --- a/value_builder/unimarc_field_100.pl +++ b/value_builder/unimarc_field_100.pl @@ -27,12 +27,8 @@ use HTML::Template; use C4::Search; use C4::Output; -sub plugin_parameters { -my ($dbh,$record,$tagslib,$i,$tabloop) = @_; -return ""; -} sub plugin_javascript { -my ($dbh,$record,$tagslib,$i,$tabloop) = @_; +my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; my $function_name= "100".(int(rand(100000))+1); my $res=" +"; + +return ($function_name,$res); } sub plugin { diff --git a/value_builder/unimarc_field_700_701_702.pl b/value_builder/unimarc_field_700_701_702.pl index 24215b4069..685d038587 100644 --- a/value_builder/unimarc_field_700_701_702.pl +++ b/value_builder/unimarc_field_700_701_702.pl @@ -28,12 +28,8 @@ use C4::Search; use C4::Output; use C4::Authorities; -sub plugin_parameters { -my ($dbh,$record,$tagslib,$i,$tabloop) = @_; -return ""; -} sub plugin_javascript { -my ($dbh,$record,$tagslib,$i,$tabloop) = @_; +my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; my $function_name= "100".(int(rand(100000))+1); my $res="