Fall back to a saint's collectCommon/collectName in commemorations too
sanctoralCommemorationPart() only ever checked a commemorated saint's own propers, so a saint like St. Sabina — no propers of her own, but a real collectCommon + collectName template fallback, verified text and all — rendered as an outright "missing" commemoration. The day's primary-collect resolver (getDayCollect) already had this same collectCommon/collectName fallback tier; this brings the commemoration path in line with it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VFGHb4XMe6Wya4pGpPhEEi
This commit is contained in:
@@ -542,7 +542,16 @@ function sanctoralCommemorationPart(commemoration: Extract<Commemoration, { kind
|
||||
if (combined.status.la !== 'missing' || combined.status.en !== 'missing') {
|
||||
return { kind: 'preces', text: combined, label };
|
||||
}
|
||||
return { kind: 'preces', text: resolveCommon(`${saint.propers}-collect`), label };
|
||||
const properCollect = resolveCommon(`${saint.propers}-collect`);
|
||||
if (properCollect.status.la !== 'missing' || properCollect.status.en !== 'missing') {
|
||||
return { kind: 'preces', text: properCollect, label };
|
||||
}
|
||||
}
|
||||
if (saint?.collectCommon && saint.collectName) {
|
||||
const template = resolveCommon(saint.collectCommon);
|
||||
if (template.status.la !== 'missing' || template.status.en !== 'missing') {
|
||||
return { kind: 'preces', text: substituteName(template, saint.collectName), label };
|
||||
}
|
||||
}
|
||||
return { kind: 'preces', text: { text: {}, status: { la: 'missing', en: 'missing' } }, label };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user