https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43495
Bug ID: 43495
Summary: Use the new opening hours facade in circulation due
date calculations
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Depends on: 43492, 43493
Target Milestone: ---
C4::Circulation::CalcDateDue is currently the only functional consumer of
library_hours: for hourly loan periods it looks up Koha::Library::Hours rows
directly and snaps the due time to open_time/close_time depending on the
ConsiderLibraryHoursInCirculation preference, with close to 140 lines of
hand-rolled logic duplicated across the Days/Calendar branches, and no handling
for slots that cross midnight or the multi-slot/typed hours introduced in Bug
43492.
This bug replaces that direct table access with calls onto the
Koha::Library::OpeningHours facade from Bug 43492 and Bug 43493 (for its
Calendar-aware availability checks), removing Koha::Library::Hour(s) and the
old library_hours table reference, and extending due date handling to correctly
account for overnight and multi-day opening hours.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43492
[Bug 43492] Normalize library opening hours into a dedicated
library_opening_hours table
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43493
[Bug 43493] Link Koha::Library opening hours with the library Calendar
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/