use C4::Search;
use C4::Output;
-=head1
+=head1 FUNCTIONS
-plugin_parameters : other parameters added when the plugin is called by the dopop function
+=head2 plugin_parameters
+
+Other parameters added when the plugin is called by the dopop function
=cut
+
sub plugin_parameters {
my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
return "";
return ($function_name,$res);
}
+
+sub wrapper {
+ my ($char) = @_;
+ return "space" if $char eq " ";
+ return "pipe" if $char eq "|";
+ return $char;
+}
+
sub plugin {
my ($input) = @_;
my $index= $input->param('index');
debug => 1,
});
my $f1 = substr($result,0,1);
- my $f2 = substr($result,1,1);
- my $f3 = substr($result,2,1);
+ my $f2 = substr($result,1,1); $f2 = wrapper( $f2 ) if $f2;
+ my $f3 = substr($result,2,1); $f3 = wrapper( $f3 ) if $f3;
my $f4 = substr($result,3,2);
my $f5 = substr($result,5,1);
my $f6 = substr($result,6,1);