Bugzilla – Attachment 13239 Details for
Bug 8981
Remove Nonpublic General Note from OPAC authorities display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8981 - Remove Nonpublic General Note from OPAC authorities display
Bug-8981---Remove-Nonpublic-General-Note-from-OPAC.patch (text/plain), 1.34 KB, created by
Chris Cormack
on 2012-11-02 18:56:26 UTC
(
hide
)
Description:
Bug 8981 - Remove Nonpublic General Note from OPAC authorities display
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-11-02 18:56:26 UTC
Size:
1.34 KB
patch
obsolete
>From 0e634f91dc73fbf87d44b7e4f3d333ffe097aff6 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 30 Oct 2012 09:06:45 +1100 >Subject: [PATCH] Bug 8981 - Remove Nonpublic General Note from OPAC > authorities display > >Currently, the MARC21 667 Nonpublic General Note field is appearing on the opac-authoritiesdetail.pl page. > >Since it is a nonpublic note, it makes sense to remove it from this view. > >This patch adds in an extra condition that checks authority records for MARC21 667 fields before displaying them in this opac screen. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > >Does what it says, with no side effects >--- > opac/opac-authoritiesdetail.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl >index 195e244..86ecb23 100755 >--- a/opac/opac-authoritiesdetail.pl >+++ b/opac/opac-authoritiesdetail.pl >@@ -134,6 +134,9 @@ if ($show_marc) { > $subfield_data{marc_tag} = $field->tag(); > push( @subfields_data, \%subfield_data ); > } >+ elsif ( C4::Context->preference('MarcFlavour') eq 'MARC21' && $field->tag() eq 667 ) { >+ # tagfield 667 is a nonpublic general note in MARC21, which shouldn't be shown in the OPAC >+ } > else { > my @subf = $field->subfields; > >-- >1.7.10.4
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 8981
:
13105
|
13239
|
13776
|
13777