Bug 31177: Fix misplaced import in C4::ILSDI::Services
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 18 Jul 2022 15:47:49 +0000 (12:47 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 31 Aug 2022 17:28:28 +0000 (14:28 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/ILSDI/Services.pm

index 03ca662..f6bf6bc 100644 (file)
@@ -35,6 +35,7 @@ use C4::AuthoritiesMarc qw( GetAuthorityXML );
 
 use Koha::Biblios;
 use Koha::Checkouts;
+use Koha::I18N qw(__);
 use Koha::Items;
 use Koha::Libraries;
 use Koha::Patrons;
@@ -944,8 +945,6 @@ sub _availability {
     my ($itemnumber) = @_;
     my $item = Koha::Items->find($itemnumber);
 
-    use Koha::I18N;
-
     unless ( $item ) {
         return ( undef, __('unknown'), __('Error: could not retrieve availability for this ID'), undef );
     }