[Koha-bugs] [Bug 17015] New Koha Calendar
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 12 22:06:40 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17015
--- Comment #84 from Mehdi Hamidi <mehdi.hamidi at inlibro.com> ---
Hello everyone,
We updated the UI a little a bit.
UI updates:
- You can now change informations of a specific day of the week in a given
range.
Perforamce enhancement :
DiscreteCalendar module and scripts use sql transactions to make less calls
to the database and reduce time usage.
Patch test plan:
1- Apply patch
2- Run installer/data/mysql/updatedatabase.pl
3- Run the script add_days_discrete_calendar.pl to add couple days in the
future with debug option
4- Run test t/db_dependent/DiscreteCalendar.t
5- 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.
- 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 UPCOMING 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 now be a Working day**
[Range of dates]
[Everyday]
- 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 anything except repeatable.
- Choose week day : Everyday
- Save.
Result: **The selected range of dates should be changed to the selected
date type**
[Specific day]
- 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 anything except repeatable.
- Choose week day : Fridays
- Save.
Result: **All the fridays in the selected range of dates should be changed
to the selected date type**
PS:
- Everyday will be applied when changing to repeatable holiday of a range.
- Title, open and close hours will be affected to **ALL OF THE MATCHED
RESULTS** unless the inputs are empty.
[Change Open/Close hours specific day of week]
- 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 empty, so the type won't updated.
- Choose week day : Sundays.
- Choose Open hours : 10:00:00
- Choose Close hours : 17:00:00
- Save.
Result : **All the close and open hours of Sundays in the given range
should be updated to 10:00:00 and 17:00:00**
[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 (CHecking this option will change the type
to working days automatically)
- Save.
Result: -Weekly, all upcoming weekly holidays of that day will be normal days.
Example : all upcoming Sundays will be working days
-Repeatable, all upcoming repeatable 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**
Thank you!
Mehdi Hamidi
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list