From 1fbf6ab89408275fea5bf14a02e194b57adf87e8 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 Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- C4/XSLT.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 1ee548887f..22c5e6f788 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.39.5