https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43506 Bug ID: 43506 Summary: Add a way to copy opening hours from one library to another Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Depends on: 43492 Target Milestone: --- There is currently no way to copy a library's opening hours (Bug 43492) to another library. A multi-branch system where several service points share identical hours (a consortium, or a new library going live with the same hours as a sister branch) has to re-enter every weekday/time-range/type combination by hand. Koha::Library::Calendar already solves the equivalent problem for holiday closures via copy_to and the REST /libraries/{id}/calendar/copy endpoint (Bug 42311). Opening hours should offer the same capability: a Koha::Library::OpeningHours->copy_to method, a REST endpoint following the same shape, and a UI action alongside the existing hours editor in Administration -> Libraries. Test plan: 1. Set up opening hours for library A, including at least one multi-day linked span. 2. Copy library A's hours to library B via the new action. 3. Confirm library B now has the same hours, correctly re-linked (not pointing at library A's row ids). 4. Confirm re-running the copy does not create duplicates. Depends on Bug 43492. 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 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.