From 39203277da63fb4fe70fc084f94139cc3a3dd52d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 27 Apr 2016 17:36:29 +0000 Subject: [PATCH] Bug 14377 [QA Followup] - Fix conditional --- C4/XSLT.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 1ee5488..22c5e6f 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -84,7 +84,8 @@ sub transformMARCXML4XSLT { for my $subfield ( $field->subfields() ) { my ( $letter, $value ) = @$subfield; # Replace the field value with the authorised value *except* for 942$n ( record supression ) - if ( $tag ne '942' && $subfield ne 'n' && $marcflavour ne 'UNIMARC' ) { + # but don't replace the field if we are using UNIMARC + if ( !( $tag eq '942' && $subfield eq 'n' ) || $marcflavour eq 'UNIMARC' ) { $value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib ) if $av->{ $tag }->{ $letter }; } -- 2.1.4