Bug 19055: Remove C4::Reserves::GetReservesToBranch
This subroutine is no longer in used and can be removed Test plan: git grep GetReservesToBranch must not return any results Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit9cc7268362) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit319f5f67aa) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
263f8ec935
commit
771f433b60
|
|
@ -108,7 +108,6 @@ BEGIN {
|
|||
&GetReservesFromBiblionumber
|
||||
&GetReservesFromBorrowernumber
|
||||
&GetReservesForBranch
|
||||
&GetReservesToBranch
|
||||
&GetReserveCount
|
||||
&GetReserveInfo
|
||||
&GetReserveStatus
|
||||
|
|
@ -750,33 +749,6 @@ SELECT COUNT(*) FROM reserves WHERE biblionumber=? AND borrowernumber<>?
|
|||
return $fee;
|
||||
}
|
||||
|
||||
=head2 GetReservesToBranch
|
||||
|
||||
@transreserv = GetReservesToBranch( $frombranch );
|
||||
|
||||
Get reserve list for a given branch
|
||||
|
||||
=cut
|
||||
|
||||
sub GetReservesToBranch {
|
||||
my ( $frombranch ) = @_;
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $sth = $dbh->prepare(
|
||||
"SELECT reserve_id,borrowernumber,reservedate,itemnumber,timestamp
|
||||
FROM reserves
|
||||
WHERE priority='0'
|
||||
AND branchcode=?"
|
||||
);
|
||||
$sth->execute( $frombranch );
|
||||
my @transreserv;
|
||||
my $i = 0;
|
||||
while ( my $data = $sth->fetchrow_hashref ) {
|
||||
$transreserv[$i] = $data;
|
||||
$i++;
|
||||
}
|
||||
return (@transreserv);
|
||||
}
|
||||
|
||||
=head2 GetReservesForBranch
|
||||
|
||||
@transreserv = GetReservesForBranch($frombranch);
|
||||
|
|
|
|||
Loading…
Reference in New Issue