X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cataloguing%2Fvalue_builder%2Fmarc21_field_245h.pl;h=0680410d88da644eef7f082064957e9e397f0801;hb=39a598c987f875c4f4033844f7b8c7e7ba588132;hp=9ab2ca1bcd18212988b259da637d22e56ebfaa94;hpb=efa66f1f556dcff71779c9b89148f2bb99149e51;p=koha.git diff --git a/cataloguing/value_builder/marc21_field_245h.pl b/cataloguing/value_builder/marc21_field_245h.pl index 9ab2ca1bcd..0680410d88 100755 --- a/cataloguing/value_builder/marc21_field_245h.pl +++ b/cataloguing/value_builder/marc21_field_245h.pl @@ -1,94 +1,50 @@ #!/usr/bin/perl +# Converted to new plugin style (Bug 13437) # Copyright 2009 Kyle Hall # # This file is part of Koha. # -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . -use strict; -#use warnings; FIXME - Bug 2505 +use Modern::Perl; use C4::Context; -=head1 FUNCTIONS - -=head2 plugin_parameters - -other parameters added when the plugin is called by the dopop function - -=cut - -sub plugin_parameters { - return ""; -} - -=head2 plugin_javascript - -Thee javascript function called when the user enters the subfield. -contain 3 javascript functions : - * one called when the field is entered (OnFocus). Named FocusXXX - * one called when the field is leaved (onBlur). Named BlurXXX - * one called when the ... link is clicked () named ClicXXX - -returns : - * XXX - * a variable containing the 3 scripts. -the 3 scripts are inserted after the in the html code - -=cut - -sub plugin_javascript { - my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; - my $function_name = $field_number; +my $builder = sub { + my ( $params ) = @_; + my $function_name = $params->{id}; my $res = " "; -return ($function_name,$res); -} - -=head2 plugin - -The true value_builded. The screen that is open in the popup window. - -=cut - -sub plugin { - return ""; -} + return $res; +}; -1; +return { builder => $builder }; \ No newline at end of file