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

--- Comment #18 from CJ Lynce <[email protected]> ---
Created attachment 171152
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171152&action=edit
Bug 36594: Library hours in koha/admin/branches.pl now adhere to selected time
and calendar system preferences.

-Newly created or edited libraries no longer display 'null' for undefined
        open and close times.
-Libraries without any defined hours will state such instead of displaying the
        hours table.
-The CalendarFirstDayOfWeek system preferences is now respected when viewing
        a library with defined hours.
-Time displays and inputs now follow the TimeFormat system preference.
-Times are no longer displayed with seconds.

As part of this patch, a new Template Filter, KohaTimes, has been added to
        allow for proper formatting of time strings based on systems
preferences.

To Test:
1. Login to staff interface
2. Go to Koha administration > Basic parameters > Libraries
3. Edit any library or create a new library. Do not set hours.
4. Save the library.
        *Note that on the library list, in the hours column, all days are
displayed
        with 'null'.
5. Edit or create a 2nd library.
6. Try to manually enter a time (not using the flatpickr modal)
        *Note that the mask wants a date format, not a time format.
7. Set some hours for the library, leaving at least one
        day without hours. Save.
        *Note that in the library list, in the hours column, defined times are
in
        the format HH:MM:SS.
7. Edit the system preference CalendarFirstDayOfWeek to set a day other
        than Sunday as the first day of the week.
8. Return to Koha administration > Basic parameters > Libraries
9. Click on the name of a specific library with hours to view details.
        *Note that the order of the calendar weeek still starts with Sunday.
10. The order of the calendar week still starts with Sunday.
11. Edit the system preference TimeFormat and set to 12-hours.
12. Return to Koha administration > Basic parameters > Libraries.
        *Note that the time format on the branches list is not in 12-hour
format.
13. Click on the name of a specific library with hours to view details.
        *Note that the time format in the branch details screen is not in
12-hour
        format.

14. Apply Patch.

15. Return to Koha administration > Basic parameters > Libraries
16. Verify that your library with all undefined times shows "Library hours
        not set".
17. Verify that your library with defined hours is showing times in     HH:MM
        format, and days without defined hours are blank.
18. Verify that your library with defined hours is respecting the TimeFormat
        preferences.
19. Click on the name of a library with hours to view details.
20. Verify that the hours respect the CalendarFirstDayOfWeek and TimeFormat
        preferences.
21. Click on the name of another library without hours to view details.
        Verify these libraries show as "No opening hours have been set"
        in the branch detail view.
22. Edit a library's hours. When inputing, try to manually enter a time (not
        using the flatpickr modal). Verify that you can enter time in the
proper
        (12 or 24 hours) format.

Sponsored-by: Westlake Porter Public Library

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to