[open-ils-commits] [GIT] Evergreen ILS branch master updated. f09737676739cdb190479969e4f76150b6802852
Evergreen Git
git at git.evergreen-ils.org
Mon Feb 13 13:29:08 EST 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via f09737676739cdb190479969e4f76150b6802852 (commit)
from b324da25918a0382cba2ceac9d419121a3d1b5ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f09737676739cdb190479969e4f76150b6802852
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Wed Feb 1 18:11:52 2012 -0500
Booking: make pick up interface show resources captured for reservation ...
... even beyond the first day of the reservation. I can think of no
reason why this limitation existed in the first place.
Also, just replace naive_start_of_day() with "today"
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm
index 781bded..00bcab8 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Booking.pm
@@ -627,7 +627,6 @@ NOTES
sub naive_ts_string {strftime("%F %T", localtime($_[0] || time));}
-sub naive_start_of_day {strftime("%F", localtime($_[0] || time))." 00:00:00";}
# Return a map of bresv or an ilsevent on failure.
sub get_uncaptured_bresv_for_brsrc {
@@ -1217,7 +1216,7 @@ sub get_captured_reservations {
"usr" => $patron->id,
"capture_time" => {"!=" => undef},
"pickup_time" => undef,
- "start_time" => {">=" => naive_start_of_day()},
+ "start_time" => {"!=" => undef},
"cancel_time" => undef
},
$bresv_flesh
@@ -1238,7 +1237,7 @@ sub get_captured_reservations {
return $e->search_booking_reservation([
{
"usr" => $patron->id,
- "return_time" => {">=" => naive_start_of_day()},
+ "return_time" => {">=" => "today"},
"cancel_time" => undef
},
$bresv_flesh
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/lib/OpenILS/Application/Booking.pm | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list