https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17015
--- Comment #45 from Mehdi Hamidi <[email protected]> --- Hello everyone, We updated the UI a little a bit and changed the behavior of the add_days script. UI updates: - Moved copy to another branch to the top, just like in circulation rules, to follow the current Koha pattern. - Inputs for past days are now disabled for clarity since they can't be edited. - Renamed Normal day to Working day for clarity. - Renamed Fixed holiday to Repeatable holiday for clarity. - Renamed Exception holiday to Unique holiday for clarity. - Added coloring to all datepickers. Script add_days_discrete_calendar.pl: - Unique holidays will no longer be "Need validation" when copied from a past date. - Added debug option to display the details about the added date. - Branchcodes will now be retrieved from table discrete_calendar instead of branches to prevent empty data and errors. Patch test plan: 1- Apply patch 2- Run installer/data/mysql/updatedatabase.pl 3- Run the script add_days_discrete_calendar.pl with debug option 4- Generate schemas by running misc/devel/update_dbix_class_files.pl 5- Run test t/db_dependent/DiscreteCalendar.t 6- Run all of Koha's tests in t/ UI test plan : - Go tools and choose Discrete Calendar - The field title is optional. [Change past] - Choose any date from the calendar that is yesterday or older. - Everything should be disabled except the To date. You can only use past dates to copy into different dates. Adding holidays : [Unique holiday] - Choose any date from the calendar that is today or in the future. - Choose another date in the To date field that is in the future (optional, for range only). - Change Date type to : Unique holiday. - Save. Result: **All dates in the range should be marked red for unique holiday.** [Weekly] - Choose a Sunday from the calendar that is editable (today or in the future). - Change Date type to : Weekly. - Save. Result: **All upcoming (starting from today) Sundays will be holidays.** PS: Title, open and close hour will be affected to **ALL SUNDAYS** unless the inputs are empty. [Repeatable] - Choose any date from the calendar that is today or in the future. - Change Date type to : Repeatable holiday. - Save Result: **The selected date and the same day in the future (if available in Calendar) will be holiday.** Delete holidays : [Single date] - Choose any date from the calendar that is today or in the future and is also a holiday. - Change Date type to : Working day. - Save. Result: **The selected date should be a Working day** [Range of dates] - Choose any date from the calendar that is today or in the future. - Choose another date in the To date field that is in the future. - Change date type to : Normal day - Save. Result: **The selected range of dates should be Working days** [Delete type] - Choose any date from the calendar that is today or in the future and is a weekly or a repeatable holiday. - Change date type to : Working day. - Check : Delete this type CheckBox - Save. Result: -Weekly, all upcoming weekly holidays if that day will be normal days. Example : all upcoming Sundays will be working days -Fixed, all upcoming fixed holidays of that day will be normal days. Example : all upcoming 25 December will be working days [Copy dates, 1 day to multiple] - Choose starting date from the calendar. - Select Copy to different dates - Choose starting date. - Choose end date date. - Save. Result: **The selected day details will be copied to all the dates in the range.** [Copy dates, 1 week to 1 week] - Choose starting date from the calendar. - Choose end date in the To date field to make a whole week(7 days). - Select Copy to different dates - Choose starting date. - Choose end date date to make a whole week(7 days). - Save. Result: **Every day of week from the first range will be applied to the second range. Independently of the order. Exemple : Sunday1 to Sunday2, Monday1 to Monday2, etc.** [Copy dates, multiple dates to multiple dates] - Choose start date from the calendar. - Choose end date in the To date field. - Select Copy to different dates - Choose start date. - Choose end date date to have the same number of days as the first range - Save. Result: **Each day from the first range will be applied the second range in the same order. Exemple : day1 to day1, day2 to day2, etc.** [Copy to branch] - The from branch is the current used calendar (Define the holidays for) - Choose a calendar to copy TO, from the second Dropdown. - Click on Clone. - Choose Copy calendar to in the Dropdown : Define the holidays for. Result: **All of the information in the current calendar will be copied to the selected calendar** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
