Bugzilla – Attachment 35365 Details for
Bug 12861
Noisy warns in C4/AuthoritiesMarc.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12861: (follow-up) Noisy warn in error logs
Bug-12861-follow-up-Noisy-warn-in-error-logs.patch (text/plain), 1.69 KB, created by
Jonathan Druart
on 2015-01-19 09:37:11 UTC
(
hide
)
Description:
Bug 12861: (follow-up) Noisy warn in error logs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-01-19 09:37:11 UTC
Size:
1.69 KB
patch
obsolete
>From 15e703fa39791f0c78c40a4a5a475e6edf4202da Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 15 Jan 2015 15:20:02 +0100 >Subject: [PATCH] Bug 12861: (follow-up) Noisy warn in error logs > >Completely get rid of warns. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/AuthoritiesMarc.pm | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index a779cbc..34151fc 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -169,18 +169,19 @@ sub SearchAuthorities { > $attr = " \@attr 1=Any "; > } > >- if ( @$operator[$i] eq 'is' ) { >+ my $operator = @$operator[$i]; >+ if ( $operator and $operator eq 'is' ) { > $attr .= " \@attr 4=1 \@attr 5=100 " > ; ##Phrase, No truncation,all of subfield field must match > } >- elsif ( @$operator[$i] eq "=" ) { >+ elsif ( $operator and $operator eq "=" ) { > $attr .= " \@attr 4=107 "; #Number Exact match > } >- elsif ( @$operator[$i] eq "start" ) { >+ elsif ( $operator and $operator eq "start" ) { > $attr .= " \@attr 3=2 \@attr 4=1 \@attr 5=1 " > ; #Firstinfield Phrase, Right truncated > } >- elsif ( @$operator[$i] eq "exact" ) { >+ elsif ( $operator and $operator eq "exact" ) { > $attr .= " \@attr 4=1 \@attr 5=100 \@attr 6=3 " > ; ##Phrase, No truncation,all of subfield field must match > } >-- >2.1.0
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 12861
:
31324
|
32782
|
35304
|
35308
|
35360
|
35364
| 35365