Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Feb 2016 12:34:08 +0000 (12:34 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 8 Sep 2016 14:36:04 +0000 (14:36 +0000)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

53 files changed:
C4/Branch.pm [deleted file]
C4/HoldsQueue.pm
C4/Items.pm
C4/Koha.pm
C4/Letters.pm
C4/Utils/DataTables/Members.pm
C4/Utils/DataTables/VirtualShelves.pm
C4/XSLT.pm
acqui/acqui-home.pl
acqui/histsearch.pl
admin/smart-rules.pl
catalogue/moredetail.pl
cataloguing/linkitem.pl
cataloguing/moveitem.pl
cataloguing/value_builder/marc21_linking_section.pl
circ/branchoverdues.pl
circ/overdue.pl
debian/templates/plack.psgi
members/boraccount.pl
members/files.pl
members/mancredit.pl
members/maninvoice.pl
members/member-flags.pl
members/member-password.pl
members/member.pl
members/members-update-do.pl
members/members-update.pl
members/printfeercpt.pl
members/printinvoice.pl
members/purchase-suggestions.pl
members/statistics.pl
misc/plack/koha.psgi
offline_circ/list.pl
opac/opac-detail.pl
opac/opac-discharge.pl
opac/opac-messaging.pl
opac/opac-topissues.pl
serials/routing-preview.pl
serials/serials-home.pl
t/Branch.t [deleted file]
t/db_dependent/Branch.t [deleted file]
t/db_dependent/Circulation.t
t/db_dependent/Circulation/TooMany.t
t/db_dependent/Circulation/transfers.t
t/db_dependent/Holds.t
t/db_dependent/Holds/LocalHoldsPriority.t
t/db_dependent/Holds/RevertWaitingStatus.t
t/db_dependent/HoldsQueue.t
t/db_dependent/Holidays.t
t/db_dependent/Reserves.t
t/db_dependent/Template/Plugin/Categories.t
tools/batchMod.pl
tools/viewlog.pl

diff --git a/C4/Branch.pm b/C4/Branch.pm
deleted file mode 100644 (file)
index 1c912ab..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-package C4::Branch;
-
-# This file is part of Koha.
-#
-# Koha is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# Koha is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Koha; if not, see <http://www.gnu.org/licenses>.
-
-
-use strict;
-#use warnings; FIXME - Bug 2505
-require Exporter;
-use C4::Context;
-use Koha::LibraryCategories;
-
-use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
-
-BEGIN {
-       @ISA    = qw(Exporter);
-       @EXPORT = qw(
-               &GetBranch
-       );
-    @EXPORT_OK = qw( &onlymine );
-}
-
-=head1 NAME
-
-C4::Branch - Koha branch module
-
-=head1 SYNOPSIS
-
-use C4::Branch;
-
-=head1 DESCRIPTION
-
-The functions in this module deal with branches.
-
-=head1 FUNCTIONS
-
-=cut
-
-=head2 GetBranch
-
-$branch = GetBranch( $query, $branches );
-
-=cut
-
-sub GetBranch {
-    my ( $query, $branches ) = @_;    # get branch for this query from branches
-    my $branch = $query->param('branch');
-    my %cookie = $query->cookie('userenv');
-    ($branch)                || ($branch = $cookie{'branchname'});
-    ( $branches->{$branch} ) || ( $branch = ( keys %$branches )[0] );
-    return $branch;
-}
-
-1;
-__END__
-
-=head1 AUTHOR
-
-Koha Development Team <http://koha-community.org/>
-
-=cut
index e523f16..1a2de1d 100755 (executable)
@@ -25,7 +25,6 @@ use warnings;
 use C4::Context;
 use C4::Search;
 use C4::Items;
-use C4::Branch;
 use C4::Circulation;
 use C4::Members;
 use C4::Biblio;
index 728a2ec..0bca944 100644 (file)
@@ -739,7 +739,6 @@ item that has a given branch code.
 
 sub CheckItemPreSave {
     my $item_ref = shift;
-    require C4::Branch;
 
     my %errors = ();
 
index e2d43b0..23cebca 100644 (file)
@@ -24,7 +24,6 @@ use strict;
 #use warnings; FIXME - Bug 2505
 
 use C4::Context;
-use C4::Branch; # Can be removed?
 use Koha::Caches;
 use Koha::DateUtils qw(dt_from_string);
 use Koha::Libraries;
index cdf0860..26f3e46 100644 (file)
@@ -31,7 +31,6 @@ use Module::Load::Conditional qw(can_load);
 use C4::Koha qw(GetAuthorisedValueByCode);
 use C4::Members;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
-use C4::Branch;
 use C4::Log;
 use C4::SMS;
 use C4::Debug;
index 958e921..d63ce51 100644 (file)
@@ -1,7 +1,6 @@
 package C4::Utils::DataTables::Members;
 
 use Modern::Perl;
-use C4::Branch qw/onlymine/;
 use C4::Context;
 use C4::Members qw/GetMemberIssuesAndFines/;
 use C4::Utils::DataTables;
index bfda353..2b37706 100644 (file)
@@ -1,7 +1,6 @@
 package C4::Utils::DataTables::VirtualShelves;
 
 use Modern::Perl;
-use C4::Branch qw/onlymine/;
 use C4::Context;
 use C4::Members qw/GetMemberIssuesAndFines/;
 use C4::Utils::DataTables;
index 364d6a1..1da6ef1 100644 (file)
@@ -24,7 +24,6 @@ package C4::XSLT;
 use Modern::Perl;
 
 use C4::Context;
-use C4::Branch;
 use C4::Items;
 use C4::Koha;
 use C4::Biblio;
index b58c8f4..fe53174 100755 (executable)
@@ -35,7 +35,6 @@ use C4::Output;
 use C4::Acquisition;
 use C4::Budgets;
 use C4::Members;
-use C4::Branch;
 use C4::Debug;
 use C4::Suggestions;
 use Koha::Acquisition::Currencies;
index 75949ee..9261379 100755 (executable)
@@ -56,7 +56,6 @@ use C4::Auth;    # get_template_and_user
 use C4::Output;
 use C4::Acquisition;
 use C4::Debug;
-use C4::Branch;
 use C4::Koha;
 use Koha::DateUtils;
 
index 9b745b4..1aa6b89 100755 (executable)
@@ -25,7 +25,6 @@ use C4::Output;
 use C4::Auth;
 use C4::Koha;
 use C4::Debug;
-use C4::Branch;
 use Koha::DateUtils;
 use Koha::Database;
 use Koha::IssuingRule;
index efa4457..f663f85 100755 (executable)
@@ -26,7 +26,6 @@ use CGI qw ( -utf8 );
 use HTML::Entities;
 use C4::Biblio;
 use C4::Items;
-use C4::Branch;
 use C4::Acquisition;
 use C4::Output;
 use C4::Auth;
index d3d82c8..082c7b0 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Biblio;
 use C4::Items;
 use C4::Context;
 use C4::Koha;
-use C4::Branch;
 
 
 my $query = CGI->new;
index 10b51a9..79736a6 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Biblio;
 use C4::Items;
 use C4::Context;
 use C4::Koha;
-use C4::Branch;
 use C4::ClassSource;
 use C4::Acquisition qw/GetOrderFromItemnumber ModOrder GetOrder/;
 
index 448a609..7efa49e 100755 (executable)
@@ -31,7 +31,6 @@ use C4::Output;
 use C4::Biblio;
 use C4::Koha;
 use MARC::Record;
-use C4::Branch;
 
 use Koha::ItemTypes;
 
index 22c46f0..86f9cca 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Overdues;    # AddNotifyLine
 use C4::Biblio;
 use C4::Koha;
 use C4::Debug;
-use C4::Branch;
 use Koha::DateUtils;
 use Data::Dumper;
 
index 57865dd..ab723e1 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Context;
 use C4::Output;
 use CGI qw(-oldstyle_urls -utf8);
 use C4::Auth;
-use C4::Branch;
 use C4::Debug;
 use Text::CSV_XS;
 use Koha::DateUtils;
index 796d3fe..baf0c5e 100644 (file)
@@ -29,7 +29,6 @@ use Mojo::Server::PSGI;
 
 # Pre-load libraries
 use C4::Boolean;
-use C4::Branch;
 use C4::Koha;
 use C4::Languages;
 use C4::Letters;
index deedfe5..ee8ea09 100755 (executable)
@@ -29,7 +29,6 @@ use C4::Auth;
 use C4::Output;
 use CGI qw ( -utf8 );
 use C4::Members;
-use C4::Branch;
 use C4::Accounts;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
 use Koha::Patron::Images;
index 0e81284..709c2aa 100755 (executable)
@@ -23,7 +23,6 @@ use warnings;
 use CGI qw ( -utf8 );
 
 use C4::Auth;
-use C4::Branch;
 use C4::Output;
 use C4::Members;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
index e1e2419..76b3492 100755 (executable)
@@ -30,7 +30,6 @@ use C4::Output;
 use CGI qw ( -utf8 );
 
 use C4::Members;
-use C4::Branch;
 use C4::Accounts;
 use C4::Items;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
index 42328a6..906e2fe 100755 (executable)
@@ -31,7 +31,6 @@ use CGI qw ( -utf8 );
 use C4::Members;
 use C4::Accounts;
 use C4::Items;
-use C4::Branch;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
 use Koha::Patron::Images;
 
index 5facc79..1d73f38 100755 (executable)
@@ -12,7 +12,6 @@ use C4::Output;
 use C4::Auth qw(:DEFAULT :EditPermissions);
 use C4::Context;
 use C4::Members;
-use C4::Branch;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
 #use C4::Acquisitions;
 
index 0290b8d..7d2976e 100755 (executable)
@@ -12,7 +12,6 @@ use Koha::AuthUtils;
 use C4::Output;
 use C4::Context;
 use C4::Members;
-use C4::Branch;
 use C4::Circulation;
 use CGI qw ( -utf8 );
 use C4::Members::Attributes qw(GetBorrowerAttributes);
index 93996dd..5a8639d 100755 (executable)
@@ -27,7 +27,6 @@ use Modern::Perl;
 use C4::Auth;
 use C4::Output;
 use CGI qw( -utf8 );
-use C4::Branch;
 use C4::Members qw( GetMember );
 use Koha::DateUtils;
 use Koha::List::Patron;
index d07acdb..6a6e826 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Auth;
 use C4::Output;
 use C4::Context;
 use C4::Members;
-use C4::Branch;
 use Koha::Patron::Modifications;
 
 my $query = new CGI;
index f9d1b76..636b8b9 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Auth;
 use C4::Output;
 use C4::Context;
 use C4::Members;
-use C4::Branch;
 use Koha::Patron::Modifications;
 
 my $query = new CGI;
index ba7e16a..f2dad01 100755 (executable)
@@ -29,7 +29,6 @@ use C4::Auth;
 use C4::Output;
 use CGI qw ( -utf8 );
 use C4::Members;
-use C4::Branch;
 use C4::Accounts;
 use Koha::DateUtils;
 use Koha::Patron::Images;
index cb206ed..d36746a 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Output;
 use Koha::DateUtils;
 use CGI qw ( -utf8 );
 use C4::Members;
-use C4::Branch;
 use C4::Accounts;
 use Koha::Patron::Images;
 
index 282362c..2f7ce49 100755 (executable)
@@ -23,7 +23,6 @@ use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Branch;
 use C4::Members;
 use C4::Members::Attributes qw(GetBorrowerAttributes);
 use C4::Suggestions;
index fcc5371..f8ead98 100755 (executable)
@@ -26,7 +26,6 @@ use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;
-use C4::Branch;
 use C4::Context;
 use C4::Members;
 use C4::Members::Statistics;
index bc2f99c..330335d 100644 (file)
@@ -43,7 +43,6 @@ use C4::Boolean;
 use C4::Letters;
 use C4::Koha;
 use C4::XSLT;
-use C4::Branch;
 use Koha::DateUtils;
 use Koha::Caches;
 use Koha::Cache::Memory::Lite;
index 87e830a..4a130ed 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Auth;
 use C4::Koha;
 use C4::Context;
 use C4::Circulation;
-use C4::Branch;
 use C4::Members;
 use C4::Biblio;
 
index 8ef3041..072572d 100755 (executable)
@@ -25,7 +25,6 @@ use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Acquisition qw( SearchOrders );
 use C4::Auth qw(:DEFAULT get_session);
-use C4::Branch;
 use C4::Koha;
 use C4::Serials;    #uses getsubscriptionfrom biblionumber
 use C4::Output;
index de1ca85..3b75166 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Context;
 use C4::Output;
 use C4::Log;
 use C4::Debug;
-use C4::Branch;
 use C4::Members;
 use Koha::Patron::Discharge;
 use Koha::DateUtils;
index 6a97ca6..47b09e5 100755 (executable)
@@ -29,7 +29,6 @@ use C4::Circulation;
 use C4::Output;
 use C4::Members;
 use C4::Members::Messaging;
-use C4::Branch;
 use C4::Form::MessagingPreferences;
 use Koha::SMS::Providers;
 
index 75e76d2..912c372 100755 (executable)
@@ -29,7 +29,6 @@ use C4::Languages;
 use C4::Search;
 use C4::Output;
 use C4::Koha;
-use C4::Branch;
 use C4::Circulation;
 use Date::Manip;
 
index e0cf0aa..9c4238f 100755 (executable)
@@ -33,7 +33,6 @@ use C4::Biblio;
 use C4::Items;
 use C4::Serials;
 use URI::Escape;
-use C4::Branch;
 use Koha::Libraries;
 
 my $query = new CGI;
index ec64948..cf59cb8 100755 (executable)
@@ -31,7 +31,6 @@ this script is the main page for serials/
 use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;
-use C4::Branch;
 use C4::Context;
 use C4::Output;
 use C4::Serials;
diff --git a/t/Branch.t b/t/Branch.t
deleted file mode 100755 (executable)
index 35295e6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-#
-# This Koha test module is a stub!  
-# Add more tests here!!!
-
-use strict;
-use warnings;
-
-use Test::More tests => 1;
-
-BEGIN {
-        use_ok('C4::Branch');
-}
-
diff --git a/t/db_dependent/Branch.t b/t/db_dependent/Branch.t
deleted file mode 100644 (file)
index 9d4a5b9..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-#!/usr/bin/perl
-
-# Copyright 2013 Equinox Software, Inc.
-#
-# This file is part of Koha.
-#
-# Koha is free software; you can redistribute it and/or modify it under the
-# terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 3 of the License, or (at your option) any later
-# version.
-#
-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with Koha; if not, see <http://www.gnu.org/licenses>.
-
-use Modern::Perl;
-
-use C4::Context;
-use Data::Dumper;
-
-use Test::More tests => 16;
-
-use C4::Branch;
-use Koha::Database;
-use Koha::Library;
-use Koha::Libraries;
-use Koha::LibraryCategories;
-
-BEGIN {
-    use FindBin;
-    use lib $FindBin::Bin;
-    use_ok('C4::Branch');
-}
-can_ok(
-    'C4::Branch', qw(
-      GetBranch
-      GetBranches
-      )
-);
-
-my $schema = Koha::Database->new->schema;
-$schema->storage->txn_begin;
-
-my $dbh = C4::Context->dbh;
-
-# clear the slate
-$dbh->do('DELETE FROM branchcategories');
-
-# Start test
-
-my $count = Koha::Libraries->search->count;
-like( $count, '/^\d+$/', "the count is a number" );
-
-#add 2 branches
-my $b1 = {
-    branchcode     => 'BRA',
-    branchname     => 'BranchA',
-    branchaddress1 => 'adr1A',
-    branchaddress2 => 'adr2A',
-    branchaddress3 => 'adr3A',
-    branchzip      => 'zipA',
-    branchcity     => 'cityA',
-    branchstate    => 'stateA',
-    branchcountry  => 'countryA',
-    branchphone    => 'phoneA',
-    branchfax      => 'faxA',
-    branchemail    => 'emailA',
-    branchreplyto  => 'emailreply',
-    branchreturnpath => 'branchreturn',
-    branchurl      => 'urlA',
-    branchip       => 'ipA',
-    branchprinter  => undef,
-    branchnotes    => 'noteA',
-    opac_info      => 'opacA',
-    issuing        => undef,
-};
-my $b2 = {
-    branchcode     => 'BRB',
-    branchname     => 'BranchB',
-    branchaddress1 => 'adr1B',
-    branchaddress2 => 'adr2B',
-    branchaddress3 => 'adr3B',
-    branchzip      => 'zipB',
-    branchcity     => 'cityB',
-    branchstate    => 'stateB',
-    branchcountry  => 'countryB',
-    branchphone    => 'phoneB',
-    branchfax      => 'faxB',
-    branchemail    => 'emailB',
-    branchreplyto  => 'emailreply',
-    branchreturnpath => 'branchreturn',
-    branchurl      => 'urlB',
-    branchip       => 'ipB',
-    branchprinter  => undef,
-    branchnotes    => 'noteB',
-    opac_info      => 'opacB',
-    issuing        => undef,
-};
-Koha::Library->new($b1)->store;
-Koha::Library->new($b2)->store;
-
-is( Koha::Libraries->search->count, $count + 2, "two branches added" );
-
-is( Koha::Libraries->find( $b2->{branchcode} )->delete, 1,          "One row affected" );
-is( Koha::Libraries->search->count,             $count + 1, "branch BRB deleted" );
-
-#Test Getbranches
-my $branches = GetBranches();
-is( scalar( keys %$branches ),
-    Koha::Libraries->search->count, "GetBranches returns the right number of branches" );
-
-#Test modify a library
-
-$b1 = {
-    branchcode     => 'BRA',
-    branchname     => 'BranchA modified',
-    branchaddress1 => 'adr1A modified',
-    branchaddress2 => 'adr2A modified',
-    branchaddress3 => 'adr3A modified',
-    branchzip      => 'zipA modified',
-    branchcity     => 'cityA modified',
-    branchstate    => 'stateA modified',
-    branchcountry  => 'countryA modified',
-    branchphone    => 'phoneA modified',
-    branchfax      => 'faxA modified',
-    branchemail    => 'emailA modified',
-    branchreplyto  => 'emailreply modified',
-    branchreturnpath => 'branchreturn modified',
-    branchurl      => 'urlA modified',
-    branchip       => 'ipA modified',
-    branchprinter  => undef,
-    branchnotes    => 'notesA modified',
-    opac_info      => 'opacA modified',
-    issuing        => undef,
-};
-
-Koha::Libraries->find($b1->{branchcode})->set($b1)->store;
-is( Koha::Libraries->search->count, $count + 1,
-    "A branch has been modified, no new branch added" );
-
-#Test categories
-my $count_cat  = Koha::LibraryCategories->search->count;
-
-my $cat1 = {
-    categorycode     => 'CAT1',
-    categoryname     => 'catname1',
-    codedescription  => 'catdesc1',
-    categorytype     => 'cattype1',
-    show_in_pulldown => 1
-};
-my $cat2 = {
-    categorycode     => 'CAT2',
-    categoryname     => 'catname2',
-    categorytype     => 'catype2',
-    codedescription  => 'catdesc2',
-    show_in_pulldown => 1
-};
-
-my %new_category = (
-    categorycode     => 'LIBCATCODE',
-    categoryname     => 'library category name',
-    codedescription  => 'library category code description',
-    categorytype     => 'searchdomain',
-    show_in_pulldown => 1,
-);
-
-Koha::LibraryCategory->new(\%new_category)->store;
-Koha::LibraryCategory->new($cat1)->store;
-Koha::LibraryCategory->new($cat2)->store;
-
-my $categories = Koha::LibraryCategories->search;
-is( $categories->count, $count_cat + 3, "Two categories added" );
-
-my $del = Koha::LibraryCategories->find( $cat2->{categorycode} )->delete;
-is( $del, 1, 'One row affected' );
-
-is( Koha::LibraryCategories->search->count, $count_cat + 2, "Category CAT 2 deleted" );
-
-my $b2_stored = Koha::Library->new($b2)->store;
-my $CAT1 = Koha::LibraryCategories->find('CAT1');
-$b2_stored->add_to_categories([$CAT1]);
-is( Koha::Libraries->search->count, $count + 2, 'BRB added' );
-
-my $b1info = Koha::Libraries->find( $b1->{branchcode} );
-is_deeply( $b1info->get_categories->count, 0, 'BRA has no categories' );
-
-my $b2info = Koha::Libraries->find( $b2->{branchcode} );
-is_deeply( $b2info->get_categories->count, 1, 'BRB has the category CAT1' );
-
-Koha::LibraryCategory->new($cat2)->store;
-is( Koha::LibraryCategories->search->count, $count_cat + 3, "Two categories added" );
-
-$schema->storage->txn_rollback;
index 912c94b..1433f4e 100755 (executable)
@@ -20,7 +20,6 @@ use Modern::Perl;
 use DateTime;
 use t::lib::Mocks;
 use C4::Biblio;
-use C4::Branch;
 use C4::Items;
 use C4::Members;
 use C4::Reserves;
index 3b60ef5..d066809 100644 (file)
@@ -20,7 +20,6 @@ use C4::Context;
 
 use C4::Biblio;
 use C4::Members;
-use C4::Branch;
 use C4::Circulation;
 use C4::Items;
 use C4::Context;
index e92cadf..459f651 100644 (file)
@@ -4,7 +4,6 @@ use Modern::Perl;
 use C4::Biblio;
 use C4::Context;
 use C4::Items;
-use C4::Branch;
 use C4::Circulation;
 use Koha::Database;
 use Koha::DateUtils;
index ff87922..61b9e6e 100755 (executable)
@@ -6,7 +6,6 @@ use t::lib::Mocks;
 use t::lib::TestBuilder;
 
 use C4::Context;
-use C4::Branch;
 
 use Test::More tests => 61;
 use MARC::Record;
index 241272c..7ccc843 100755 (executable)
@@ -4,7 +4,6 @@ use Modern::Perl;
 
 use t::lib::Mocks;
 use C4::Context;
-use C4::Branch;
 
 use Test::More tests => 6;
 use MARC::Record;
index 90419df..b9ee036 100755 (executable)
@@ -4,7 +4,6 @@ use Modern::Perl;
 
 use t::lib::Mocks;
 use C4::Context;
-use C4::Branch;
 
 use Test::More tests => 3;
 use MARC::Record;
index 056edb5..0416c24 100755 (executable)
@@ -11,7 +11,6 @@ use Modern::Perl;
 use Test::More tests => 38;
 use Data::Dumper;
 
-use C4::Branch;
 use C4::Calendar;
 use C4::Context;
 use C4::Members;
index 07e54cf..6535535 100755 (executable)
@@ -23,7 +23,6 @@ use DateTime::TimeZone;
 
 use t::lib::TestBuilder;
 use C4::Context;
-use C4::Branch;
 use Koha::Database;
 use Koha::DateUtils;
 
index e26e553..39ee8c5 100755 (executable)
@@ -24,7 +24,6 @@ use Test::Warn;
 use MARC::Record;
 use DateTime::Duration;
 
-use C4::Branch;
 use C4::Biblio;
 use C4::Items;
 use C4::Members;
index 3df848a..6e495ed 100644 (file)
@@ -3,7 +3,6 @@ use Modern::Perl;
 use Test::More tests => 5;
 
 use C4::Context;
-use C4::Branch;
 use Koha::Template::Plugin::Categories;
 
 my $dbh = C4::Context->dbh;
index 439e424..2920da9 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Items;
 use C4::Circulation;
 use C4::Context;
 use C4::Koha;
-use C4::Branch;
 use C4::BackgroundJob;
 use C4::ClassSource;
 use C4::Debug;
index 276bd7f..3c37162 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Koha;
 use C4::Output;
 use C4::Log;
 use C4::Items;
-use C4::Branch;
 use C4::Debug;
 use C4::Search;    # enabled_staff_search_views
 use Koha::Patron::Images;