Bug 36079

Summary: Library hours and the Calendar are not linked in any meaningful ways
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: cj.lynce, gmcharlt, r.delahunty
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36594
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 6796    
Bug Blocks:    

Description Martin Renvoize (ashimema) 2024-02-13 10:59:37 UTC
Bug 6796 adds the ability to define library opening hours for each branch. It does not, however, respect weekday closed days as defined in the Calendar page.

We should expose that detail from the libraries interface, including in the summary table, details view and edit form.

I believe this would be best achieved by migrating the weekly closed days from repeatable holidays into the new library_hours table and thus making it available via the existing library_hours embed in the API.  This makes it trivial to display the open/closed state in the api driven datatable as well as on the view and edit pages.

We should continue to support displaying and editing these weekly closed days from the calendar too, however.
Comment 1 CJ Lynce 2024-08-28 19:27:07 UTC
Trying to think this through:

1) Is there a difference in purpose of the hours listed in Library info, versus what the calendar does? Are the hours in Library info intended to define the 'standard' hours, versus the calendar marking exceptions to these? ("Holidays repeating weekly" on the calendar can be used to close the same day of every week though, and if so, how to be reconcile the data in both places?)

2) Does it make sense to incorporate the weekly hours to the calendar? If we define the 'normal' hours for each day of the week for each location (or all locations) and then use the calendar to mark exceptions to that? 

3) As it stands, the calendar is really just for marking closed days, not for making exceptions to hours like closing early or opening late. This could be very helpful for many libraries who change hours around holidays or seasonally. Integrating the daily hours settings into the calendar could allow for defined exceptions to hours via the calendar.