From 3f0abe5b0501738aea4af691a75030cfdca178b9 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- 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 }; } -- 1.7.10.4