Bugzilla – Attachment 13961 Details for
Bug 9147
OPAC hidden fields are not hidden in ISBD view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9147: OPAC hidden fields are not hidden in ISBD view
Bug-9147-OPAC-hidden-fields-are-not-hidden-in-ISBD.patch (text/plain), 1.76 KB, created by
Chris Cormack
on 2012-12-08 07:11:24 UTC
(
hide
)
Description:
Bug 9147: OPAC hidden fields are not hidden in ISBD view
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-12-08 07:11:24 UTC
Size:
1.76 KB
patch
obsolete
>From 7ee6a4c31d28e715d598b9802990167de1744d02 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Mon, 26 Nov 2012 15:15:18 +0100 >Subject: [PATCH] Bug 9147: OPAC hidden fields are not hidden in ISBD view > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > >Does what it says, hides hidden fields on the OPAC >--- > C4/Biblio.pm | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index d64acfb..dc61bf5 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -956,6 +956,10 @@ sub GetISBDView { > # warn "ERROR IN ISBD DEFINITION at : $isbdfield" unless $fieldvalue; > # warn "FV : $fieldvalue"; > if ( $subfvalue ne "" ) { >+ # OPAC hidden subfield >+ next >+ if ( ( $template eq 'opac' ) >+ && ( $tagslib->{$fieldvalue}->{$subfvalue}->{'hidden'} || 0 ) > 0 ); > foreach my $field (@fieldslist) { > foreach my $subfield ( $field->subfield($subfvalue) ) { > my $calculated = $analysestring; >@@ -991,6 +995,10 @@ sub GetISBDView { > for my $i ( 0 .. $#subf ) { > my $valuecode = $subf[$i][1]; > my $subfieldcode = $subf[$i][0]; >+ # OPAC hidden subfield >+ next >+ if ( ( $template eq 'opac' ) >+ && ( $tagslib->{$fieldvalue}->{$subfieldcode}->{'hidden'} || 0 ) > 0 ); > my $subfieldvalue = GetAuthorisedValueDesc( $tag, $subf[$i][0], $subf[$i][1], '', $tagslib ); > my $tagsubf = $tag . $subfieldcode; > >-- >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 9147
:
13680
|
13681
|
13961
|
14619