@digitalculture/ochre-sdk 0.17.15 → 0.17.16
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.
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -714,6 +714,8 @@ type Website = {
|
|
|
714
714
|
isDescriptionDisplayed: boolean;
|
|
715
715
|
isDocumentDisplayed: boolean;
|
|
716
716
|
isNotesDisplayed: boolean;
|
|
717
|
+
isEventsDisplayed: boolean;
|
|
718
|
+
isPeriodsDisplayed: boolean;
|
|
717
719
|
isPropertiesDisplayed: boolean;
|
|
718
720
|
isBibliographyDisplayed: boolean;
|
|
719
721
|
isPropertyValuesGrouped: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -3176,6 +3176,8 @@ function parseWebsiteProperties(properties, websiteTree) {
|
|
|
3176
3176
|
let isDescriptionDisplayed = true;
|
|
3177
3177
|
let isDocumentDisplayed = true;
|
|
3178
3178
|
let isNotesDisplayed = true;
|
|
3179
|
+
let isEventsDisplayed = true;
|
|
3180
|
+
let isPeriodsDisplayed = true;
|
|
3179
3181
|
let isPropertiesDisplayed = true;
|
|
3180
3182
|
let isBibliographyDisplayed = true;
|
|
3181
3183
|
let isPropertyValuesGrouped = true;
|
|
@@ -3203,6 +3205,10 @@ function parseWebsiteProperties(properties, websiteTree) {
|
|
|
3203
3205
|
if (isItemPageDocumentDisplayedProperty) isDocumentDisplayed = isItemPageDocumentDisplayedProperty.content === true;
|
|
3204
3206
|
const isItemPageNotesDisplayedProperty = itemPageTypeProperty.properties.find((property) => property.label === "item-page-notes-displayed")?.values[0];
|
|
3205
3207
|
if (isItemPageNotesDisplayedProperty) isNotesDisplayed = isItemPageNotesDisplayedProperty.content === true;
|
|
3208
|
+
const isItemPageEventsDisplayedProperty = itemPageTypeProperty.properties.find((property) => property.label === "item-page-events-displayed")?.values[0];
|
|
3209
|
+
if (isItemPageEventsDisplayedProperty) isEventsDisplayed = isItemPageEventsDisplayedProperty.content === true;
|
|
3210
|
+
const isItemPagePeriodsDisplayedProperty = itemPageTypeProperty.properties.find((property) => property.label === "item-page-periods-displayed")?.values[0];
|
|
3211
|
+
if (isItemPagePeriodsDisplayedProperty) isPeriodsDisplayed = isItemPagePeriodsDisplayedProperty.content === true;
|
|
3206
3212
|
const isItemPagePropertiesDisplayedProperty = itemPageTypeProperty.properties.find((property) => property.label === "item-page-properties-displayed")?.values[0];
|
|
3207
3213
|
if (isItemPagePropertiesDisplayedProperty) isPropertiesDisplayed = isItemPagePropertiesDisplayedProperty.content === true;
|
|
3208
3214
|
const isItemPageBibliographyDisplayedProperty = itemPageTypeProperty.properties.find((property) => property.label === "item-page-bibliography-displayed")?.values[0];
|
|
@@ -3264,6 +3270,8 @@ function parseWebsiteProperties(properties, websiteTree) {
|
|
|
3264
3270
|
isDescriptionDisplayed,
|
|
3265
3271
|
isDocumentDisplayed,
|
|
3266
3272
|
isNotesDisplayed,
|
|
3273
|
+
isEventsDisplayed,
|
|
3274
|
+
isPeriodsDisplayed,
|
|
3267
3275
|
isPropertiesDisplayed,
|
|
3268
3276
|
isBibliographyDisplayed,
|
|
3269
3277
|
isPropertyValuesGrouped,
|
package/package.json
CHANGED