tycho-components 0.41.5 → 0.41.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,7 +66,8 @@ const buildEditionGroups = (corpus) => {
|
|
|
66
66
|
{
|
|
67
67
|
id: 'diplomatic',
|
|
68
68
|
labelKey: 'edition.group.diplomatic',
|
|
69
|
-
|
|
69
|
+
// No selectable child levels — diplomatic is the original form itself.
|
|
70
|
+
tiers: [],
|
|
70
71
|
defaultTier: StructuralEditionTiers.ORIGINAL,
|
|
71
72
|
},
|
|
72
73
|
...(semi.length > 0
|
|
@@ -94,7 +95,7 @@ const buildEditionGroups = (corpus) => {
|
|
|
94
95
|
const getUngroupedEditionTiers = (corpus) => getCorpusEditionTiers(corpus)
|
|
95
96
|
.filter((tier) => tier.group !== 'semiDiplomatic' && tier.group !== 'modernized')
|
|
96
97
|
.map((tier) => tier.symbol);
|
|
97
|
-
const findGroupForTier = (tier, corpus) => buildEditionGroups(corpus).find((group) => group.tiers.includes(tier));
|
|
98
|
+
const findGroupForTier = (tier, corpus) => buildEditionGroups(corpus).find((group) => group.tiers.includes(tier) || group.defaultTier === tier);
|
|
98
99
|
const isAbbreviationTier = (symbol, corpus) => getCorpusEditionTiers(corpus).some((tier) => tier.symbol === symbol && tier.abbreviation);
|
|
99
100
|
const validateEditionTiers = (tiers) => {
|
|
100
101
|
const symbols = new Set();
|