From 8fd51b2a63270272a3211636d7e047057f4e1f24 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 24 Mar 2023 12:13:23 -0400 Subject: [PATCH] Bug 30930: (QA follow-up) Tidy code block Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- authorities/authorities.pl | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 34554b5ece..501a012d24 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -631,19 +631,24 @@ if ($op eq "add") { } exit; } else { -if ($op eq "duplicate") - { - $authid = ""; - } - if($changed_authtype eq "changed"){ - $record = TransformHtmlToMarc( $input, 0 ); - } + if ( $op eq "duplicate" ) { + $authid = ""; + } - build_tabs ($template, $record, $dbh, $input); - build_hidden_data; - $template->param(oldauthtypetagfield=>$oldauthtypetagfield, oldauthtypetagsubfield=>$oldauthtypetagsubfield, - oldauthnumtagfield=>$oldauthnumtagfield, oldauthnumtagsubfield=>$oldauthnumtagsubfield, - authid => $authid , authtypecode=>$authtypecode, ); + if ( $changed_authtype eq "changed" ) { + $record = TransformHtmlToMarc( $input, 0 ); + } + + build_tabs( $template, $record, $dbh, $input ); + build_hidden_data; + $template->param( + oldauthtypetagfield => $oldauthtypetagfield, + oldauthtypetagsubfield => $oldauthtypetagsubfield, + oldauthnumtagfield => $oldauthnumtagfield, + oldauthnumtagsubfield => $oldauthnumtagsubfield, + authid => $authid, + authtypecode => $authtypecode, + ); } my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypetext'] } ); -- 2.39.5