[Koha-bugs] [Bug 11211] Move calculation code out of C4::Calendar

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 3 11:44:08 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11211

--- Comment #48 from Magnus Enger <magnus at enger.priv.no> ---
(In reply to Jesse Weaver from comment #47)
> RE: comment 5: I used event instead of holiday because you can now record
> that a given day is open or closed, seperately of the precedence order of
> specific day > day/month > weekday. 

That change makes sense to me - it looks like a good generalization from
holiday (which to me is something like Easter or "summer hliday") to "event"
(which to me could be something like "the library is closed for renovation",
which would be hard to fit into the "holiday" concept).

> RE: comment 32: I will at least cite lines 219-220 of Koha/Calendar.pm to
> argue for this patch's interpretation of isexception == open:
> 
>         # exceptions are not holidays
>         return 0;

I can sort of see that, but I have two concerns:

1) That future developers will find it hard to understand the name

2) That we are loosing some functionality. The way I understand the current
functionality, you can say that there is a holiday and the library is closed
from date A to date C, BUT on date B (which is between A and C) the library is
open anyway. If I remember correctly, you can also say that the library is
closed for a month, but open on Wednesdays. Is it still possible to do
something like that after applying the patch on this bug?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list