my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
- # find today's date
my $org = C4::Context->preference('MARCOrgCode');
my $res = "
<script type=\"text/javascript\">
use strict;
#use warnings; FIXME - Bug 2505
-#use C4::Context;
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
use XML::LibXML;
-=head1 DESCRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
sub plugin_javascript {
my ($dbh, $record, $tagslib, $field_number, $tabloop) = @_;
my $function_name = $field_number;
use C4::Search;
use C4::Output;
-=head1 DESCRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
use XML::LibXML;
use Koha::Util::FrameworkPlugin qw|date_entered|;
-=head1 DESCRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
sub plugin_javascript {
+ my ($dbh, $record, $tagslib, $field_number, $tabloop) = @_;
+
my $lang = C4::Context->preference('DefaultLanguageField008' );
$lang = "eng" unless $lang;
$lang = pack("A3", $lang);
- my ($dbh, $record, $tagslib, $field_number, $tabloop) = @_;
my $function_name = $field_number;
my $dateentered = date_entered();
my $res = "
}
sub plugin {
+ my ($input) = @_;
my $lang = C4::Context->preference('DefaultLanguageField008' );
$lang = "eng" unless $lang;
$lang = pack("A3", $lang);
- my ($input) = @_;
my $index = $input->param('index');
my $result = $input->param('result');
my $leader = $input->param('leader');
use constant FIXLEN_DATA_ELTS => '|| aca||aabn | a|a d';
use constant PREF_008 => 'MARCAuthorityControlField008';
-=head1 DESCRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
return ($function_name,$res);
}
+
sub plugin {
my ($input) = @_;
my $index= $input->param('index');
use strict;
#use warnings; FIXME - Bug 2505
use C4::Context;
-# use MARC::Record;
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
- # find today's date
my $org = C4::Context->preference('MARCOrgCode');
my $res = "
<script type=\"text/javascript\">
#!/usr/bin/perl
-
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
use strict;
#use warnings; FIXME - Bug 2505
use C4::Context;
-# use MARC::Record;
-
-=head1 DESCRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name = $field_number;
- # find today's date
my $org = C4::Context->preference('MARCOrgCode');
my $res = "
<script type=\"text/javascript\">
//]]>
</script>
";
-return ($function_name,$res);
+ return ($function_name,$res);
}
#!/usr/bin/perl
-
# Copyright 2009 Kyle Hall <kyle.m.hall@gmail.com>
#
# This file is part of Koha.
//]]>
</script>
";
-return ($function_name,$res);
+ return ($function_name,$res);
}
return ( $function_name, $res );
}
-# sub plugin
-#
-# input arg :
-# -- op could be equals to
-# * fillinput :
-# * do_search :
-#
-
sub plugin {
- my ($input) = @_;
+ my ($query) = @_;
my $dbh = C4::Context->dbh;
- my $query = new CGI;
my $op = $query->param('op');
+ # -- op could be equal to
+ # * fillinput
+ # * do_search
+
my $type = $query->param('type');
my $startfrom = $query->param('startfrom');
$startfrom = 0 if ( !defined $startfrom );