From 35b21e33eb1f2878b275c6b79229e48c31e57439 Mon Sep 17 00:00:00 2001
From: Brendan Lawlor <blawlor@clamsnet.org>
Date: Fri, 1 Nov 2024 17:04:12 +0000
Subject: [PATCH] Bug 32773: perltidy

---
 cataloguing/addbiblio.pl | 14 +++++++-------
 cataloguing/additem.pl   |  4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl
index fe34488e2c..b08918994a 100755
--- a/cataloguing/addbiblio.pl
+++ b/cataloguing/addbiblio.pl
@@ -568,7 +568,7 @@ if ($biblionumber) {
     }
 }
 
-if ($frameworkcode eq 'FA' || $is_fast_add){
+if ( $frameworkcode eq 'FA' || $is_fast_add ){
     # We need to grab and set some variables in the template for use on the additems screen
     $template->param(
         'circborrowernumber' => $fa_circborrowernumber,
@@ -722,7 +722,7 @@ if ( $op eq "cud-addbiblio" ) {
             ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
         }
         if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){
-        if ($frameworkcode eq 'FA' || $is_fast_add){
+        if ( $frameworkcode eq 'FA' || $is_fast_add ){
 		print $input->redirect(
             '/cgi-bin/koha/cataloguing/additem.pl?'
             .'biblionumber='.$biblionumber
@@ -860,12 +860,12 @@ if ( $record ne '-1' ) {
     $template->param( title => $title );
 }
 $template->param(
-    popup => $mode,
-    frameworkcode => $frameworkcode,
-    is_fast_add => $is_fast_add,
-    itemtype => $frameworkcode,
+    popup          => $mode,
+    frameworkcode  => $frameworkcode,
+    is_fast_add    => $is_fast_add,
+    itemtype       => $frameworkcode,
     borrowernumber => $loggedinuser,
-    tab => scalar $input->param('tab')
+    tab            => scalar $input->param('tab')
 );
 $template->{'VARS'}->{'searchid'} = $searchid;
 
diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl
index 6a746c150a..25e36c0646 100755
--- a/cataloguing/additem.pl
+++ b/cataloguing/additem.pl
@@ -189,7 +189,7 @@ $restrictededition = 0 if ( $restrictededition != 0 && C4::Context->IsSuperLibra
 # In case user has fast cataloging permission (and we're in fast cataloging), editing is not restricted
 $restrictededition = 0
     if ( $restrictededition != 0
-    && ($frameworkcode eq 'FA' || $is_fast_add)
+    && ( $frameworkcode eq 'FA' || $is_fast_add )
     && haspermission( $uid, { 'editcatalogue' => 'fast_cataloging' } ) );
 
 our $tagslib = &GetMarcStructure( 1, $frameworkcode );
@@ -489,7 +489,7 @@ if ( $op eq "cud-additem" ) {
             undef($current_item);
         }
     }
-    if ( ($frameworkcode eq 'FA' || $is_fast_add) && $fa_circborrowernumber ) {
+    if ( ( $frameworkcode eq 'FA' || $is_fast_add ) && $fa_circborrowernumber ) {
         print $input->redirect( '/cgi-bin/koha/circ/circulation.pl?'
                 . 'borrowernumber='
                 . $fa_circborrowernumber
-- 
2.39.5