Bugzilla – Attachment 11935 Details for
Bug 8709
Subfield 0 does not show in MARC detail in intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8709: Subfield 0 does not show in MARC detail in intranet
Bug-8709-Subfield-0-does-not-show-in-MARC-detail-i.patch (text/plain), 2.86 KB, created by
Chris Cormack
on 2012-09-01 08:15:21 UTC
(
hide
)
Description:
Bug 8709: Subfield 0 does not show in MARC detail in intranet
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-09-01 08:15:21 UTC
Size:
2.86 KB
patch
obsolete
>From 45e3ceb6f8311254ba534388f917fad70bffaaa0 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Fri, 31 Aug 2012 16:02:27 +0200 >Subject: [PATCH] Bug 8709: Subfield 0 does not show in MARC detail in > intranet > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > authorities/detail-biblio-search.pl | 2 +- > authorities/detail.pl | 2 +- > catalogue/MARCdetail.pl | 2 +- > opac/opac-authoritiesdetail.pl | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/authorities/detail-biblio-search.pl b/authorities/detail-biblio-search.pl >index 56a1a45..d4dc693 100755 >--- a/authorities/detail-biblio-search.pl >+++ b/authorities/detail-biblio-search.pl >@@ -93,7 +93,7 @@ my @fields = $record->fields(); > my @subf=$field->subfields; > # loop through each subfield > for my $i (0..$#subf) { >- $subf[$i][0] = "@" unless $subf[$i][0]; >+ $subf[$i][0] = "@" unless defined $subf[$i][0]; > # next if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab} ne $tabloop); > next if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{hidden}); > my %subfield_data; >diff --git a/authorities/detail.pl b/authorities/detail.pl >index 458746c..4c96434 100755 >--- a/authorities/detail.pl >+++ b/authorities/detail.pl >@@ -106,7 +106,7 @@ sub build_tabs { > my @subf=$field->subfields; > # loop through each subfield > for my $i (0..$#subf) { >- $subf[$i][0] = "@" unless $subf[$i][0]; >+ $subf[$i][0] = "@" unless defined $subf[$i][0]; > next > if ( > $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{tab} >diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl >index 0490076..72e6709 100755 >--- a/catalogue/MARCdetail.pl >+++ b/catalogue/MARCdetail.pl >@@ -177,7 +177,7 @@ for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) { > > # loop through each subfield > for my $i ( 0 .. $#subf ) { >- $subf[$i][0] = "@" unless $subf[$i][0]; >+ $subf[$i][0] = "@" unless defined $subf[$i][0]; > next > if ( > $tagslib->{ $fields[$x_i]->tag() }->{ $subf[$i][0] }->{tab} >diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl >index 8d5367f..4a4e382 100755 >--- a/opac/opac-authoritiesdetail.pl >+++ b/opac/opac-authoritiesdetail.pl >@@ -156,7 +156,7 @@ if ($show_marc) { > > # loop through each subfield > for my $i ( 0 .. $#subf ) { >- $subf[$i][0] = "@" unless $subf[$i][0]; >+ $subf[$i][0] = "@" unless defined $subf[$i][0]; > next if ( $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{hidden} ); > # skip useless subfields (for patrons) > next if $subf[$i][0] =~ /7|8|9/; >-- >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 8709
:
11917
| 11935