@@ -, +, @@
file, warning "Indicator in 952 is empty at
/home/koha/kohaclone/C4/Biblio.pm" is flooding the bejesus
out of my koha-error.log
---
acqui/addorderiso2709.pl | 4 ++--
.../prog/en/modules/acqui/addorderiso2709.tt | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
--- a/acqui/addorderiso2709.pl
+++ a/acqui/addorderiso2709.pl
@@ -268,6 +268,7 @@ if ($op eq ""){
my @subfields = $input->param('subfield');
my @field_values = $input->param('field_value');
my @serials = $input->param('serial');
+ my @indicator = $input->param('indicator'); #Passing the imaginary empty " " -indicators from the templates, to stop C4::Biblio::TransformHtmlToXml() to warn the bejesus out of my koha-error.log
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
my $item;
@@ -275,8 +276,7 @@ if ($op eq ""){
push @{ $item->{subfields} }, $subfields[0];
push @{ $item->{field_values} }, $field_values[0];
push @{ $item->{ind_tag} }, $ind_tag[0];
- push @{ $item->{indicator} }, $indicator[0];
- my $xml = TransformHtmlToXml( \@tags, \@subfields, \@field_values, \@ind_tag, \@indicator );
+ my $xml = TransformHtmlToXml( \@tags, \@subfields, \@field_values, \@indicator, \@ind_tag );
my $record = MARC::Record::new_from_xml( $xml, 'UTF-8' );
for (my $qtyloop=1;$qtyloop <= $c_quantity;$qtyloop++) {
my ( $biblionumber, $bibitemnum, $itemnumber ) = AddItemFromMarc( $record, $biblionumber );
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
@@ -299,6 +299,7 @@
+ [%#Pass imaginary indicators to stop warnings in C4::Biblio::TransformHtmlToXml() %]
[% IF ( iteminformatio.mandatory ) %] Required[% END %]
--