From 6cc0e953da656dff493e2110cde08c9a7e19b4f8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 28 Apr 2016 10:19:16 +0200 Subject: [PATCH] Bug 14377: [QA Follow-up] Correct typo and comment Content-Type: text/plain; charset=utf-8 [1] Remove a vim inserted i from XSLT.pm: IdRefi => IdRef. [2] The comment about UNIMARC is somewhat confusing. Rephrased it. Signed-off-by: Marcel de Rooy --- C4/XSLT.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 22c5e6f..7ca4f0d 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -83,8 +83,7 @@ sub transformMARCXML4XSLT { my @new_subfields = (); for my $subfield ( $field->subfields() ) { my ( $letter, $value ) = @$subfield; - # Replace the field value with the authorised value *except* for 942$n ( record supression ) - # but don't replace the field if we are using UNIMARC + # Replace the field value with the authorised value *except* for MARC21/NORMARC field 942$n (suppression in opac) if ( !( $tag eq '942' && $subfield eq 'n' ) || $marcflavour eq 'UNIMARC' ) { $value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib ) if $av->{ $tag }->{ $letter }; @@ -211,7 +210,7 @@ sub XSLTParse4Display { UseControlNumber IntranetBiblioDefaultView BiblioDefaultView OPACItemLocation DisplayIconsXSLT AlternateHoldingsField AlternateHoldingsSeparator - TrackClicks opacthemes IdRefi OpacSuppression / ) + TrackClicks opacthemes IdRef OpacSuppression / ) { my $sp = C4::Context->preference( $syspref ); next unless defined($sp); -- 1.7.10.4