Bugzilla – Attachment 33375 Details for
Bug 13180
Errors when acquiring from the new improved staged file, empty indicator warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13180 - Errors when acquiring from the new improved staged file, empty indicator warning, is flooding the gosh-darn out of my koha-error.log... Nice to have you back joubu!
Bug-13180---Errors-when-acquiring-from-the-new-imp.patch (text/plain), 3.28 KB, created by
Olli-Antti Kivilahti
on 2014-11-07 14:32:30 UTC
(
hide
)
Description:
Bug 13180 - Errors when acquiring from the new improved staged file, empty indicator warning, is flooding the gosh-darn out of my koha-error.log... Nice to have you back joubu!
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2014-11-07 14:32:30 UTC
Size:
3.28 KB
patch
obsolete
>From 31768d8d7c22d7b4b191e7b8b5249f4e2cdb4a36 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Fri, 31 Oct 2014 16:40:18 +0200 >Subject: [PATCH] Bug 13180 - Errors when acquiring from the new improved > staged file, empty indicator warning, is flooding the > gosh-darn out of my koha-error.log... Nice to have you back > joubu! > >I get one warning for each mapped Koha items field. > >This patch fakes the missing indicators to the addorderiso2709.pl/.tt. >Those indicators don't really exists for field 952 anyway. >--- > acqui/addorderiso2709.pl | 4 ++-- > .../prog/en/modules/acqui/addorderiso2709.tt | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index 303c531..8464bbf 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -269,14 +269,14 @@ if ($op eq ""){ > my @field_values = $input->param('field_value'); > my @serials = $input->param('serial'); > my @ind_tag = $input->param('ind_tag'); >- my @indicator = $input->param('indicator'); >+ 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 $item; > push @{ $item->{tags} }, $tags[0]; > 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 ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index cf03b7c..1578093 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -299,6 +299,7 @@ > <input type="hidden" name="itemid" value="1" /> > <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> > <input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> >+ <input type="hidden" name="indicator" value=" " /> [%#Pass imaginary indicators to stop warnings in C4::Biblio::TransformHtmlToXml() %] > <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> > <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> > [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13180
:
33078
| 33375