From 7b58255028da6a9cc4652b32913b01b47e651f1f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 30 Jan 2014 16:48:26 +0000 Subject: [PATCH] Bug 9823: (follow-up) improve POD for C4::Reserves::GetReservesFromBiblionumber Signed-off-by: Galen Charlton --- C4/Reserves.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 7f3c5fb367..8fe0fd0a00 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -270,13 +270,21 @@ sub GetReserve { my $reserves = GetReservesFromBiblionumber({ biblionumber => $biblionumber, - itemnumber => $itemnumber, - all_dates => 1|0 + [ itemnumber => $itemnumber, ] + [ all_dates => 1|0 ] }); This function gets the list of reservations for one C<$biblionumber>, returning an arrayref pointing to the reserves for C<$biblionumber>. +By default, only reserves whose start date falls before the current +time are returned. To return all reserves, including future ones, +the C parameter can be included and set to a true value. + +If the C parameter is supplied, reserves must be targeted +to that item or not targeted to any item at all; otherwise, they +are excluded from the list. + =cut sub GetReservesFromBiblionumber { -- 2.39.5