You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain events loaded from national liturgical calendars require some logic to create the event conditionally based on whether it falls on a Sunday or Solemnity. This logic is currently hardcoded into the main LitCalAPI class. An example is the National Day of Prayer for the Unborn in the USA:
"USA: The National Day of Prayer for the Unborn is set to Jan 22 as per the 2011 Roman Missal issued by the USCCB, however since it coincides with a Sunday or a Solemnity in the year %d, it has been moved to Jan 23",
$this->LitSettings->Year
);
} else {
We should extend the national calendar schemas to allow for language constructs that will allow to define rules for how such situations should be handled. This will likely require a bit of thought and planning, based on various concrete examples.
The text was updated successfully, but these errors were encountered:
The "coincidesWith" object could possibly accept a few different properties other than "LitGrade", for example it could be the eventkey of a specific liturgical event...
The "then" instruction could possibly accept a few different properties... whether a period of time to move it such as adding one day, or moving it one day before or after a specific other liturgical event (therefore specifying the eventkey of the other liturgical event)...
There will probably ever be only one rule, however this construct would allow for having more than rule. Rules would have to be applied in sequence...
Certain events loaded from national liturgical calendars require some logic to create the event conditionally based on whether it falls on a Sunday or Solemnity. This logic is currently hardcoded into the main
LitCalAPI
class. An example is the National Day of Prayer for the Unborn in the USA:LiturgicalCalendarAPI/includes/LitCalAPI.php
Lines 2323 to 2330 in 436ebf7
We should extend the national calendar schemas to allow for language constructs that will allow to define rules for how such situations should be handled. This will likely require a bit of thought and planning, based on various concrete examples.
The text was updated successfully, but these errors were encountered: