https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43492

--- Comment #12 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 205373
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205373&action=edit
Bug 43492: Add Koha::Library::OpeningHours object classes

Adds Koha::Library::OpeningHours::Slot / Slots (Koha::Object(s) over
library_opening_hours, validating weekday range, the open/close/link
combination, and the type against OPENING_HOURS_TYPE) and the
Koha::Library::OpeningHours facade (mirroring Koha::Library::Calendar),
which resolves closes_opening_id links and per-type fallback into plain
weekly intervals for is_open_at/next_change/next_open/previous_close.

unlinked_slots() supports simple (non-multi-day-linked) editors, such as
the admin UI added later in this bug, without risking corruption of
closes_opening_id-linked spans they don't have controls for.

Calendar-aware availability checks (consulting Koha::Library->calendar)
are added in Bug 43493.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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/

Reply via email to