Bugzilla – Attachment 5256 Details for
Bug 6829
Remove two warnings for opac-MARCdetail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Revised patch improved
patch.txt (text/plain), 2.14 KB, created by
Marcel de Rooy
on 2011-09-01 13:08:23 UTC
(
hide
)
Description:
Revised patch improved
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-09-01 13:08:23 UTC
Size:
2.14 KB
patch
obsolete
>From c224cbc6841b6b91ad5274dfdb9fa391b2693b79 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 1 Sep 2011 14:07:40 +0200 >Subject: [PATCH] 6829: Remove two warnings for opac-MARCdetail >Content-Type: text/plain; charset="utf-8" > >Remove two warnings from logfile by adding simple checks. > >Sept 1, revision: Clearing another warning (thx Owen) too. >--- > opac/opac-MARCdetail.pl | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl >index 7544902..8e90c9e 100755 >--- a/opac/opac-MARCdetail.pl >+++ b/opac/opac-MARCdetail.pl >@@ -142,8 +142,8 @@ for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) { > for my $i ( 0 .. $#subf ) { > $subf[$i][0] = "@" unless $subf[$i][0]; > my $sf_def = $tagslib->{ $fields[$x_i]->tag() }->{ $subf[$i][0] }; >- next if ( $sf_def->{tab} ne $tabloop ); >- next if ( $sf_def->{hidden} > 0 ); >+ next if ( ($sf_def->{tab}||'') ne $tabloop ); >+ next if ( ($sf_def->{hidden}||0) > 0 ); > my %subfield_data; > $subfield_data{marc_lib} = ($sf_def->{lib} eq $previous) ? '--' : $sf_def->{lib}; > $previous = $sf_def->{lib}; >@@ -215,8 +215,8 @@ foreach my $field (@fields) { > # loop through each subfield > for my $i ( 0 .. $#subf ) { > my $sf_def = $tagslib->{ $field->tag() }->{ $subf[$i][0] }; >- next if ( $sf_def->{tab} ne 10 ); >- next if ( $sf_def->{hidden} > 0 ); >+ next if ( ($sf_def->{tab}||'') ne '10' ); >+ next if ( ($sf_def->{hidden}||0) > 0 ); > $witness{ $subf[$i][0] } = $sf_def->{lib}; > > if ( $sf_def->{isurl} ) { >@@ -237,7 +237,7 @@ foreach my $field (@fields) { > my ( $holdingbrtagf, $holdingbrtagsubf ) = > &GetMarcFromKohaField( "items.holdingbranch", $itemtype ); > @big_array = >- sort { $a->{$holdingbrtagsubf} cmp $b->{$holdingbrtagsubf} } @big_array; >+ sort { ($a->{$holdingbrtagsubf}||'') cmp ($b->{$holdingbrtagsubf}||'') } @big_array; > > #fill big_row with missing datas > foreach my $subfield_code ( keys(%witness) ) { >-- >1.6.0.6 >
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 6829
:
5253
|
5254
|
5255
|
5256
|
5257
|
6931
|
7035
|
7051