Bugzilla – Attachment 8344 Details for
Bug 7700
Cart's more details view shows identity numbers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7700: Cart's more details view shows identity numbers
Bug-7700-Carts-more-details-view-shows-identity-nu.patch (text/plain), 1.73 KB, created by
Jared Camins-Esakov
on 2012-03-20 11:29:54 UTC
(
hide
)
Description:
Bug 7700: Cart's more details view shows identity numbers
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-03-20 11:29:54 UTC
Size:
1.73 KB
patch
obsolete
>From 04b6cfbbc68be2680cd82ed16c5719b7273c3264 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 11 Mar 2012 18:47:18 +0100 >Subject: [PATCH] Bug 7700: Cart's more details view shows identity numbers >Content-Type: text/plain; charset="UTF-8" > >We already remove $9 with Koha's authority number from output >of GetMarcSubjects and GetMarcAuthors. >Patch additionally removes $0 subfields with identity numbers. > >Patch also effects detail pages with normal (non-XSLT) views. > >Revised to always remove $0 subfields, they are not used in UNIMARC. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > C4/Biblio.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 81da91b..99981a7 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1666,7 +1666,7 @@ sub GetMarcSubjects { > > # ignore $9 > my @this_link_loop = @link_loop; >- push @subfields_loop, { code => $code, value => $value, link_loop => \@this_link_loop, separator => $separator } unless ( $subject_subfield->[0] eq 9 ); >+ push @subfields_loop, { code => $code, value => $value, link_loop => \@this_link_loop, separator => $separator } unless ( $subject_subfield->[0] eq 9 || $subject_subfield->[0] eq '0' ); > $counter++; > } > >@@ -1750,7 +1750,7 @@ sub GetMarcAuthors { > link_loop => \@this_link_loop, > separator => $separator > } >- unless ( $authors_subfield->[0] eq '9' ); >+ unless ( $authors_subfield->[0] eq '9' || $authors_subfield->[0] eq '0'); > $count_auth++; > } > push @marcauthors, { MARCAUTHOR_SUBFIELDS_LOOP => \@subfields_loop }; >-- >1.7.2.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 7700
:
8154
|
8161
|
8168
|
8341
| 8344