@@ -, +, @@ --- C4/Branch.pm | 29 ----------------------------- reserve/request.pl | 2 +- t/db_dependent/lib/KohaTest/Branch.pm | 1 - 3 files changed, 1 insertions(+), 31 deletions(-) --- a/C4/Branch.pm +++ a/C4/Branch.pm @@ -20,7 +20,6 @@ use strict; #use warnings; FIXME - Bug 2505 require Exporter; use C4::Context; -use C4::Koha; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); @@ -408,34 +407,6 @@ sub GetBranchDetail { return $sth->fetchrow_hashref(); } -=head2 get_branchinfos_of - - my $branchinfos_of = get_branchinfos_of(@branchcodes); - -Associates a list of branchcodes to the information of the branch, taken in -branches table. - -Returns a href where keys are branchcodes and values are href where keys are -branch information key. - - print 'branchname is ', $branchinfos_of->{$code}->{branchname}; - -=cut - -sub get_branchinfos_of { - my @branchcodes = @_; - - my $query = ' - SELECT branchcode, - branchname - FROM branches - WHERE branchcode IN (' - . join( ',', map( { "'" . $_ . "'" } @branchcodes ) ) . ') -'; - return C4::Koha::get_infos_of( $query, 'branchcode' ); -} - - =head2 GetBranchesInCategory my $branches = GetBranchesInCategory($categorycode); --- a/reserve/request.pl +++ a/reserve/request.pl @@ -28,7 +28,7 @@ script to place reserves/requests use strict; use warnings; -use C4::Branch; # GetBranches get_branchinfos_of +use C4::Branch; use CGI; use List::MoreUtils qw/uniq/; use Date::Calc qw/Date_to_Days/; --- a/t/db_dependent/lib/KohaTest/Branch.pm +++ a/t/db_dependent/lib/KohaTest/Branch.pm @@ -20,7 +20,6 @@ sub methods : Test( 1 ) { GetCategoryTypes GetBranch GetBranchDetail - get_branchinfos_of GetBranchesInCategory GetBranchInfo DelBranch --