@museumwnf/viewer-layout 3.89.0 → 3.91.0
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/README.md +14 -16
- package/dist/{LegacyItemSheet-BPI7vIv2.js → LegacyItemSheet-pELiIt0_.js} +76 -72
- package/dist/{Theme-BUfsZDdm.js → Theme-BwJmBagO.js} +2 -2
- package/dist/{data-CD0QmDAc.js → data-4nhfXqql.js} +1 -1
- package/dist/dxa.js +7 -7
- package/dist/minisite.js +42 -58
- package/dist/{themeSpecs-C0tSNkSd.js → themeSpecs--Lu6L5XO.js} +1 -1
- package/package.json +1 -1
- package/src/minisite/testing.js +0 -1
package/README.md
CHANGED
|
@@ -871,8 +871,7 @@ export default minisiteConfig({
|
|
|
871
871
|
```
|
|
872
872
|
|
|
873
873
|
The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
|
|
874
|
-
and for the other families `social`, `design`, `banner`, `
|
|
875
|
-
`partnerLinks`), points the frame's links at the parent product next to the
|
|
874
|
+
and for the other families `social`, `design`, `banner`, `logos`), points the frame's links at the parent product next to the
|
|
876
875
|
site's own address (`parentSite(origin, 'islamicart')`), and gives the
|
|
877
876
|
family's no-country rule (`ISLAMICART_NO_COUNTRY`, `BAROQUEART_NO_COUNTRY`) and
|
|
878
877
|
Word document title unless `minisite.json` sets `noCountry` or
|
|
@@ -988,8 +987,8 @@ const parent = 'https://museumwithnofrontiers.github.io/sharinghistory'
|
|
|
988
987
|
export default {
|
|
989
988
|
// …datasetPackage, siteName, site, features, languages, chrome…
|
|
990
989
|
shell: SharingHistoryShell,
|
|
991
|
-
navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles }),
|
|
992
|
-
minisite: sharinghistorySettings({ parent,
|
|
990
|
+
navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles: parentProfiles(manifest.site?.parent?.profiles, parent) }),
|
|
991
|
+
minisite: sharinghistorySettings({ parent, logos }),
|
|
993
992
|
views: { home: SharingHistoryHome },
|
|
994
993
|
extraViews: sharinghistoryRoutes(sectionMeta()),
|
|
995
994
|
}
|
|
@@ -1001,21 +1000,20 @@ export default {
|
|
|
1001
1000
|
theme's overview, then its subthemes (`sharinghistoryReadingOrder`); a theme or
|
|
1002
1001
|
subtheme with no title is not a page, as legacy listed only titled ones
|
|
1003
1002
|
(`sharinghistoryListedThemes`, `sharinghistoryListedSubthemes`).
|
|
1004
|
-
- **Legacy's rules
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
its status is "Y". The introduction shows the exhibition's own pictures,
|
|
1003
|
+
- **Legacy's rules, from the package**: a page's pictures are the package's
|
|
1004
|
+
`slots` (`sharinghistorySlotsOf`); the item panel's "Related" lists the other views
|
|
1005
|
+
of a slot; the caption is `showItem()`'s (`sharinghistoryCaption`), its
|
|
1006
|
+
place line the package's `caption_place`, the curator's justification only
|
|
1007
|
+
when its status is "Y". The introduction shows the exhibition's own pictures,
|
|
1010
1008
|
the first five. Related Content leads to the parent's timelines and its
|
|
1011
1009
|
gallery, narrowed to the page's theme and subtheme
|
|
1012
1010
|
(`sharinghistoryRelatedLinks`).
|
|
1013
|
-
- **The site's own values**: `
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
`
|
|
1018
|
-
|
|
1011
|
+
- **The site's own values**: `logos`, the partners' logos on the home page's band
|
|
1012
|
+
(`{ image, link, tip }`: the file under theme/assets/, the page it leads to
|
|
1013
|
+
and its tooltip; without it the band draws the package's logo images). The
|
|
1014
|
+
footer menu's Historical Profiles are the package's
|
|
1015
|
+
(`manifest.site.parent.profiles`, `parentProfiles`); a site's own
|
|
1016
|
+
`profiles` list is read only while its package has none.
|
|
1019
1017
|
- **The theme**: `minisite-sharinghistory.css` reads `--sh-*` tokens, the
|
|
1020
1018
|
exhibition's `sh_exhibitions_styles`; its pictures are the site's chrome
|
|
1021
1019
|
files under the names legacy gave them (`legacy/home_bg.jpg`,
|
|
@@ -6,6 +6,10 @@ import { c as L, d as R, r as oe } from "./PartnerMap-DdyMLtgH.js";
|
|
|
6
6
|
import { n as se } from "./TimelineEventList-CIkKxyQu.js";
|
|
7
7
|
import { t as ce } from "./RecordView-DAvWufWV.js";
|
|
8
8
|
import { t as le } from "./chrome-Bv_mLlHM.js";
|
|
9
|
+
// src/dxa/placeHref.js
|
|
10
|
+
function ue(e) {
|
|
11
|
+
return e?.item_url || e?.url || e?.legacy_host || "";
|
|
12
|
+
}
|
|
9
13
|
// src/dxa/RelatedObjects.vue
|
|
10
14
|
var z = {
|
|
11
15
|
key: 0,
|
|
@@ -20,7 +24,7 @@ var z = {
|
|
|
20
24
|
}, W = ["innerHTML"], G = {
|
|
21
25
|
class: "mwnf-related-objects__tooltip",
|
|
22
26
|
"aria-hidden": "true"
|
|
23
|
-
},
|
|
27
|
+
}, de = ["innerHTML"], fe = { key: 0 }, pe = {
|
|
24
28
|
__name: "RelatedObjects",
|
|
25
29
|
props: {
|
|
26
30
|
heading: {
|
|
@@ -56,42 +60,42 @@ var z = {
|
|
|
56
60
|
"to",
|
|
57
61
|
"href",
|
|
58
62
|
"external"
|
|
59
|
-
]), a("div", G, [a("div", null, [a("span", { innerHTML: t.name }, null, 8,
|
|
63
|
+
]), a("div", G, [a("div", null, [a("span", { innerHTML: t.name }, null, 8, de), t.country ? (p(), i(e, { key: 0 }, [s(", " + g(t.country), 1)], 64)) : r("", !0)]), t.justification ? (p(), i("div", fe, g(t.justification), 1)) : r("", !0)])]))), 128))])])) : r("", !0);
|
|
60
64
|
}
|
|
61
|
-
},
|
|
65
|
+
}, me = {
|
|
62
66
|
key: 0,
|
|
63
67
|
class: "mwnf-sheet-source"
|
|
64
|
-
},
|
|
68
|
+
}, he = {
|
|
65
69
|
key: 0,
|
|
66
70
|
class: "mwnf-sheet-source__line"
|
|
67
|
-
},
|
|
71
|
+
}, ge = {
|
|
68
72
|
key: 1,
|
|
69
73
|
class: "mwnf-sheet-source__collection"
|
|
70
|
-
},
|
|
74
|
+
}, _e = ["href"], ve = {
|
|
71
75
|
key: 1,
|
|
72
76
|
class: "mwnf-sheet-notice"
|
|
73
|
-
},
|
|
77
|
+
}, ye = {
|
|
74
78
|
key: "museum",
|
|
75
79
|
class: "mwnf-sheet-museum"
|
|
76
|
-
},
|
|
80
|
+
}, be = ["innerHTML"], xe = {
|
|
77
81
|
key: 0,
|
|
78
82
|
class: "mwnf-sheet-related"
|
|
79
|
-
},
|
|
83
|
+
}, Se = {
|
|
80
84
|
key: 0,
|
|
81
85
|
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
82
|
-
},
|
|
86
|
+
}, Ce = {
|
|
83
87
|
key: 1,
|
|
84
88
|
class: "mwnf-sheet-related__description"
|
|
85
|
-
},
|
|
89
|
+
}, we = {
|
|
86
90
|
key: 0,
|
|
87
91
|
class: "mwnf-sheet-related__references"
|
|
88
|
-
},
|
|
92
|
+
}, Te = {
|
|
89
93
|
key: 2,
|
|
90
94
|
class: "mwnf-sheet-related__unresolved"
|
|
91
|
-
},
|
|
95
|
+
}, Ee = {
|
|
92
96
|
key: 5,
|
|
93
97
|
class: "mwnf-sheet-related__line"
|
|
94
|
-
},
|
|
98
|
+
}, De = ["href"], Oe = { class: "mwnf-sheet-related__heading" }, ke = ["href"], Ae = { key: 11 }, je = { class: "mwnf-sheet-related__heading" }, Me = { key: 12 }, Ne = { class: "mwnf-sheet-related__heading" }, Pe = { class: "mwnf-sheet-related__line" }, Fe = ["href"], Ie = { key: 13 }, Le = { class: "mwnf-sheet-related__heading" }, Re = { class: "mwnf-sheet-related__line" }, ze = ["href"], Be = { key: 14 }, Ve = { class: "mwnf-sheet-related__heading" }, He = "sheet.field.", K = {
|
|
95
99
|
__name: "ItemDetailView",
|
|
96
100
|
props: {
|
|
97
101
|
spec: {
|
|
@@ -119,7 +123,7 @@ var z = {
|
|
|
119
123
|
"aside"
|
|
120
124
|
]), te = t(() => Object.keys(O).filter((e) => !k.has(e))), ne = t(() => !x.dataGetter || x.dataGetter(x.id) != null), { t: I } = ie();
|
|
121
125
|
function L(e) {
|
|
122
|
-
if (typeof e != "string" || !e.startsWith(
|
|
126
|
+
if (typeof e != "string" || !e.startsWith(He)) return e;
|
|
123
127
|
let t = `sheet.dxa.${e.slice(12)}`;
|
|
124
128
|
return I(t) === t ? e : t;
|
|
125
129
|
}
|
|
@@ -141,14 +145,14 @@ var z = {
|
|
|
141
145
|
}), z = A(), B = (e, t) => e.names?.[t] || e.names?.en || e.name || "", V = (e, t, n) => (e.gallery_references ?? []).filter((e) => e.kind === t).map((e) => ({
|
|
142
146
|
...e,
|
|
143
147
|
name: B(e, n)
|
|
144
|
-
})).sort((e, t) => e.name.localeCompare(t.name)), H = (e, t) => V(e, "gallery", t), U = (e, t) => V(e, "exhibition", t), W = (e) => z.links(e.project_id)?.artisticIntroductionUrl ?? null, G = (e) => z.links(e.project_id)?.relatedDatabaseUrl ?? null,
|
|
148
|
+
})).sort((e, t) => e.name.localeCompare(t.name)), H = (e, t) => V(e, "gallery", t), U = (e, t) => V(e, "exhibition", t), W = (e) => z.links(e.project_id)?.artisticIntroductionUrl ?? null, G = (e) => z.links(e.project_id)?.relatedDatabaseUrl ?? null, de = {
|
|
145
149
|
"islamicart.museumwnf.org": "core.project.islamicArt",
|
|
146
150
|
"baroqueart.museumwnf.org": "core.project.baroqueArt",
|
|
147
151
|
"sharinghistory.museumwnf.org": "core.project.sharingHistory"
|
|
148
152
|
};
|
|
149
|
-
function
|
|
153
|
+
function fe(e) {
|
|
150
154
|
try {
|
|
151
|
-
let t =
|
|
155
|
+
let t = de[new URL(G(e)).host];
|
|
152
156
|
if (t) return I(t);
|
|
153
157
|
} catch {}
|
|
154
158
|
return z.label(e.project_id);
|
|
@@ -193,7 +197,7 @@ var z = {
|
|
|
193
197
|
...e,
|
|
194
198
|
name: e.project_id ? z.label(e.project_id) : null,
|
|
195
199
|
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
196
|
-
})), c = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : t
|
|
200
|
+
})), c = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : ue(t)) || "", l = (e) => ({
|
|
197
201
|
id: e.id,
|
|
198
202
|
label: T(e.name ?? ""),
|
|
199
203
|
href: c(e),
|
|
@@ -213,7 +217,7 @@ var z = {
|
|
|
213
217
|
} : null, d = n.databaseLabel && G(e) ? {
|
|
214
218
|
url: G(e),
|
|
215
219
|
label: I(n.databaseLabel),
|
|
216
|
-
name:
|
|
220
|
+
name: fe(e)
|
|
217
221
|
} : null, f = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
218
222
|
label: I(n.overallDatabase.label),
|
|
219
223
|
linkLabel: I(n.overallDatabase.linkLabel)
|
|
@@ -259,11 +263,11 @@ var z = {
|
|
|
259
263
|
}
|
|
260
264
|
};
|
|
261
265
|
}
|
|
262
|
-
let $ = j(),
|
|
266
|
+
let $ = j(), Ue = t(() => {
|
|
263
267
|
let e = le($.chrome, "world.png");
|
|
264
268
|
return e ? { "--mwnf-dxa-glossary-image": `url("${e}")` } : null;
|
|
265
269
|
});
|
|
266
|
-
function
|
|
270
|
+
function We() {
|
|
267
271
|
window.print();
|
|
268
272
|
}
|
|
269
273
|
return (t, v) => ne.value ? (p(), n(ce, {
|
|
@@ -271,32 +275,32 @@ var z = {
|
|
|
271
275
|
spec: R.value,
|
|
272
276
|
id: b.id,
|
|
273
277
|
entity: b.entity,
|
|
274
|
-
style: f(
|
|
278
|
+
style: f(Ue.value)
|
|
275
279
|
}, o({
|
|
276
|
-
"before-sheet": y((n) => [h(t.$slots, "before-sheet", d(l(n)), () => [(p(!0), i(e, null, m([K(n.record, n)], (t) => (p(), i(e, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (p(), i("div",
|
|
280
|
+
"before-sheet": y((n) => [h(t.$slots, "before-sheet", d(l(n)), () => [(p(!0), i(e, null, m([K(n.record, n)], (t) => (p(), i(e, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (p(), i("div", me, [t.source ? (p(), i("p", he, [t.source.chipClass ? (p(), i("span", {
|
|
277
281
|
key: 0,
|
|
278
282
|
class: u(["mwnf-chip", t.source.chipClass]),
|
|
279
283
|
"aria-hidden": "true"
|
|
280
|
-
}, null, 2)) : r("", !0), t.source.name ? (p(), i(e, { key: 1 }, [s(g(t.source.label) + ": " + g(t.source.name), 1)], 64)) : r("", !0)])) : r("", !0), t.addToCollectionLabel ? (p(), i("p",
|
|
284
|
+
}, null, 2)) : r("", !0), t.source.name ? (p(), i(e, { key: 1 }, [s(g(t.source.label) + ": " + g(t.source.name), 1)], 64)) : r("", !0)])) : r("", !0), t.addToCollectionLabel ? (p(), i("p", ge, [a("a", {
|
|
281
285
|
href: _(E).myCollection,
|
|
282
286
|
target: "_blank",
|
|
283
287
|
rel: "noopener"
|
|
284
|
-
}, "↗ " + g(t.addToCollectionLabel), 9,
|
|
285
|
-
museum: y((a) => [h(t.$slots, "museum", d(l(a)), () => [(p(!0), i(e, null, m([Z(a)], (e) => (p(), i("div",
|
|
288
|
+
}, "↗ " + g(t.addToCollectionLabel), 9, _e)])) : r("", !0)])) : r("", !0), t?.notice ? (p(), i("div", ve, [s(g(t.notice) + " ", 1), a("strong", null, [a("em", null, g(n.languages.map((e) => e.label).join(", ")), 1)])])) : r("", !0)], 64))), 128))])]),
|
|
289
|
+
museum: y((a) => [h(t.$slots, "museum", d(l(a)), () => [(p(!0), i(e, null, m([Z(a)], (e) => (p(), i("div", ye, [e.holder ? (p(), i("p", {
|
|
286
290
|
key: 0,
|
|
287
291
|
class: "mwnf-sheet-museum__holder",
|
|
288
292
|
innerHTML: e.holder
|
|
289
|
-
}, null, 8,
|
|
293
|
+
}, null, 8, be)) : r("", !0), e.view ? (p(), n(se, {
|
|
290
294
|
key: 1,
|
|
291
295
|
variant: "summary",
|
|
292
296
|
partner: e.view,
|
|
293
297
|
label: "partner.info.about",
|
|
294
298
|
dir: a.dir
|
|
295
299
|
}, null, 8, ["partner", "dir"])) : r("", !0)]))), 128))])]),
|
|
296
|
-
aside: y((o) => [h(t.$slots, "related", d(l(o)), () => [(p(!0), i(e, null, m([Q(o.record, o)], (t) => (p(), i(e, { key: o.record?.id ?? "related" }, [t ? (p(), i("div",
|
|
297
|
-
t.title ? (p(), i("p",
|
|
298
|
-
t.description ? (p(), i("p",
|
|
299
|
-
t.tiles ? (p(), n(
|
|
300
|
+
aside: y((o) => [h(t.$slots, "related", d(l(o)), () => [(p(!0), i(e, null, m([Q(o.record, o)], (t) => (p(), i(e, { key: o.record?.id ?? "related" }, [t ? (p(), i("div", xe, [
|
|
301
|
+
t.title ? (p(), i("p", Se, g(t.title), 1)) : r("", !0),
|
|
302
|
+
t.description ? (p(), i("p", Ce, g(t.description), 1)) : r("", !0),
|
|
303
|
+
t.tiles ? (p(), n(pe, {
|
|
300
304
|
key: 2,
|
|
301
305
|
heading: t.heading,
|
|
302
306
|
tiles: t.tiles
|
|
@@ -307,14 +311,14 @@ var z = {
|
|
|
307
311
|
variant: t.variant,
|
|
308
312
|
"action-label": t.actionLabel
|
|
309
313
|
}, {
|
|
310
|
-
default: y(() => [t.references.length ? (p(), i("ul",
|
|
314
|
+
default: y(() => [t.references.length ? (p(), i("ul", we, [(p(!0), i(e, null, m(t.references, (n) => (p(), i("li", { key: n.id }, [
|
|
311
315
|
n.chipClass ? (p(), i("span", {
|
|
312
316
|
key: 0,
|
|
313
317
|
class: u(["mwnf-chip", n.chipClass]),
|
|
314
318
|
"aria-hidden": "true"
|
|
315
319
|
}, null, 2)) : r("", !0),
|
|
316
320
|
n.name ? (p(), i(e, { key: 1 }, [s(g(n.name), 1)], 64)) : r("", !0),
|
|
317
|
-
t.notInPackageLabel ? (p(), i("span",
|
|
321
|
+
t.notInPackageLabel ? (p(), i("span", Te, g(t.notInPackageLabel), 1)) : r("", !0)
|
|
318
322
|
]))), 128))])) : r("", !0)]),
|
|
319
323
|
_: 2
|
|
320
324
|
}, 1032, [
|
|
@@ -323,17 +327,17 @@ var z = {
|
|
|
323
327
|
"variant",
|
|
324
328
|
"action-label"
|
|
325
329
|
])) : r("", !0),
|
|
326
|
-
t.monumentTiles.length ? (p(), n(
|
|
330
|
+
t.monumentTiles.length ? (p(), n(pe, {
|
|
327
331
|
key: 4,
|
|
328
332
|
heading: t.monumentsHeading,
|
|
329
333
|
tiles: t.monumentTiles,
|
|
330
334
|
class: "mwnf-related-objects--monuments"
|
|
331
335
|
}, null, 8, ["heading", "tiles"])) : r("", !0),
|
|
332
|
-
t.artisticIntroduction ? (p(), i("p",
|
|
336
|
+
t.artisticIntroduction ? (p(), i("p", Ee, [a("a", {
|
|
333
337
|
href: t.artisticIntroduction.url,
|
|
334
338
|
target: "_blank",
|
|
335
339
|
rel: "noopener"
|
|
336
|
-
}, "↗ " + g(t.artisticIntroduction.label), 9,
|
|
340
|
+
}, "↗ " + g(t.artisticIntroduction.label), 9, De)])) : r("", !0),
|
|
337
341
|
t.timeline ? (p(), n(F, {
|
|
338
342
|
key: o.record.id,
|
|
339
343
|
info: t.timeline
|
|
@@ -363,14 +367,14 @@ var z = {
|
|
|
363
367
|
t.mediaGroups ? (p(!0), i(e, { key: 9 }, m(t.mediaGroups, (t) => (p(), i("div", {
|
|
364
368
|
key: t.type,
|
|
365
369
|
class: u(["mwnf-sheet-related__media", `mwnf-sheet-related__media--${t.type}`])
|
|
366
|
-
}, [a("p",
|
|
370
|
+
}, [a("p", Oe, g(t.heading), 1), (p(!0), i(e, null, m(t.entries, (e) => (p(), i("p", {
|
|
367
371
|
key: e.url,
|
|
368
372
|
class: "mwnf-sheet-related__line"
|
|
369
373
|
}, [a("a", {
|
|
370
374
|
href: e.url,
|
|
371
375
|
target: "_blank",
|
|
372
376
|
rel: "noopener"
|
|
373
|
-
}, "↗ " + g(e.title || e.url), 9,
|
|
377
|
+
}, "↗ " + g(e.title || e.url), 9, ke)]))), 128))], 2))), 128)) : (p(), n(N, {
|
|
374
378
|
key: 10,
|
|
375
379
|
media: t.media,
|
|
376
380
|
language: o.language,
|
|
@@ -381,7 +385,7 @@ var z = {
|
|
|
381
385
|
"language",
|
|
382
386
|
"dir"
|
|
383
387
|
])),
|
|
384
|
-
t.onDisplayIn?.groups.length ? (p(), i("div",
|
|
388
|
+
t.onDisplayIn?.groups.length ? (p(), i("div", Ae, [a("p", je, g(_(I)("record.related.onDisplayIn")), 1), c(ae, {
|
|
385
389
|
heading: "",
|
|
386
390
|
groups: t.onDisplayIn.groups,
|
|
387
391
|
"pending-label": t.onDisplayIn.pendingLabel,
|
|
@@ -391,19 +395,19 @@ var z = {
|
|
|
391
395
|
"pending-label",
|
|
392
396
|
"dir"
|
|
393
397
|
])])) : r("", !0),
|
|
394
|
-
t.database ? (p(), i("div",
|
|
398
|
+
t.database ? (p(), i("div", Me, [a("p", Ne, g(t.database.label), 1), a("p", Pe, [a("a", {
|
|
395
399
|
href: t.database.url,
|
|
396
400
|
target: "_blank",
|
|
397
401
|
rel: "noopener"
|
|
398
|
-
}, "↗ " + g(t.database.name), 9,
|
|
399
|
-
t.overallDatabase ? (p(), i("div",
|
|
402
|
+
}, "↗ " + g(t.database.name), 9, Fe)])])) : r("", !0),
|
|
403
|
+
t.overallDatabase ? (p(), i("div", Ie, [a("p", Le, g(t.overallDatabase.label), 1), a("p", Re, [a("a", {
|
|
400
404
|
href: _(E).overallDatabase,
|
|
401
405
|
target: "_blank",
|
|
402
406
|
rel: "noopener"
|
|
403
|
-
}, "↗ " + g(t.overallDatabase.linkLabel), 9,
|
|
404
|
-
t.download ? (p(), i("div",
|
|
407
|
+
}, "↗ " + g(t.overallDatabase.linkLabel), 9, ze)])])) : r("", !0),
|
|
408
|
+
t.download ? (p(), i("div", Be, [a("p", Ve, g(t.download.label), 1), a("p", {
|
|
405
409
|
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
406
|
-
onClick:
|
|
410
|
+
onClick: We
|
|
407
411
|
}, "➤ " + g(t.download.pdfLabel), 1)])) : r("", !0)
|
|
408
412
|
])) : r("", !0)], 64))), 128))])]),
|
|
409
413
|
_: 2
|
|
@@ -438,7 +442,7 @@ function $(e) {
|
|
|
438
442
|
"the"
|
|
439
443
|
].includes(e)).join(" ");
|
|
440
444
|
}
|
|
441
|
-
function
|
|
445
|
+
function Ue(e, t, n = null) {
|
|
442
446
|
let r = e?.exhibition_references ?? [], i = [], a = r.filter((e) => e.list === "virtual" || e.list === "sharing_history");
|
|
443
447
|
a.length && i.push({
|
|
444
448
|
caption: a[0].project ? J(a[0].project.name) : "",
|
|
@@ -465,28 +469,28 @@ function He(e, t, n = null) {
|
|
|
465
469
|
}
|
|
466
470
|
return i;
|
|
467
471
|
}
|
|
468
|
-
function
|
|
472
|
+
function We(e, t) {
|
|
469
473
|
return e?.item_url ? e.item_url : e?.site ? k(e.site, `/item/${t.id}`) : e?.legacy_host;
|
|
470
474
|
}
|
|
471
475
|
// src/dxa/relatedKind.js
|
|
472
|
-
function
|
|
476
|
+
function Ge(e, t) {
|
|
473
477
|
return (e?.type ?? t?.get(e?.id)?.type) === "monument" ? "monument" : "object";
|
|
474
478
|
}
|
|
475
479
|
// src/dxa/homeLinks.js
|
|
476
|
-
function
|
|
480
|
+
function Ke(e, { homeSite: t, siteKey: n } = {}) {
|
|
477
481
|
return e && "source_url" in e ? e.source_url ?? null : t && t !== n ? k(t, `/item/${e.id}`) : null;
|
|
478
482
|
}
|
|
479
|
-
function
|
|
483
|
+
function qe(e, t) {
|
|
480
484
|
return "url" in e ? e.url ?? "" : t ? k(t, `/item/${e.id}`) : "";
|
|
481
485
|
}
|
|
482
486
|
// src/dxa/LegacyItemSheet.vue
|
|
483
|
-
var
|
|
487
|
+
var Je = { class: "mwnf-dxa-item__languages" }, Ye = ["dir"], Xe = ["href"], Ze = ["href"], Qe = ["innerHTML"], $e = ["innerHTML"], et = ["dir"], tt = { class: "mwnf-dxa-gallery-item__label" }, nt = {
|
|
484
488
|
key: "citation",
|
|
485
489
|
class: "mwnf-dxa-gallery-item__citation"
|
|
486
|
-
},
|
|
490
|
+
}, rt = { class: "mwnf-dxa-gallery-item__project" }, it = { class: "mwnf-dxa-gallery-item__address" }, at = { class: "mwnf-dxa-gallery-item__credit-label" }, ot = {
|
|
487
491
|
key: 1,
|
|
488
492
|
class: "mwnf-dxa-gallery-item__number"
|
|
489
|
-
},
|
|
493
|
+
}, st = { class: "mwnf-dxa-gallery-item__number-label" }, ct = ["href"], lt = {
|
|
490
494
|
__name: "LegacyItemSheet",
|
|
491
495
|
props: {
|
|
492
496
|
id: {
|
|
@@ -509,7 +513,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
509
513
|
setup(o) {
|
|
510
514
|
let l = o, { t: d } = ie(), f = x(), h = A(), v = re(), S = j(), C = ne(), w = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
|
|
511
515
|
function D({ record: e, inPackage: t, references: n, ctx: r }) {
|
|
512
|
-
let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => ee(w(a.get(e)?.justifications, i)), s = (e) =>
|
|
516
|
+
let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => ee(w(a.get(e)?.justifications, i)), s = (e) => Ge(a.get(e) ?? { id: e }, C.itemById.value), c = (e) => (e ?? "").replace(/\.$/, ""), l = t.map((e) => ({
|
|
513
517
|
id: e.id,
|
|
514
518
|
kind: s(e.id),
|
|
515
519
|
image: e.image,
|
|
@@ -526,7 +530,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
526
530
|
name: c(T(w(e.names, i))),
|
|
527
531
|
country: C.countryLabel(e.country_id),
|
|
528
532
|
justification: o(e.id),
|
|
529
|
-
href:
|
|
533
|
+
href: qe(e, t)
|
|
530
534
|
};
|
|
531
535
|
}), d = (e.related_items ?? []).map((e) => e.id);
|
|
532
536
|
return [...l, ...u].sort((e, t) => d.indexOf(e.id) - d.indexOf(t.id));
|
|
@@ -558,13 +562,13 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
558
562
|
...l.itemDetail.related?.onDisplayIn,
|
|
559
563
|
exhibitionsHeading: l.words.exhibitions,
|
|
560
564
|
galleriesHeading: "core.project.galleries",
|
|
561
|
-
href:
|
|
562
|
-
exhibitions: (e, t) =>
|
|
565
|
+
href: We,
|
|
566
|
+
exhibitions: (e, t) => Ue(e, t.language, v.manifest?.site?.key)
|
|
563
567
|
}
|
|
564
568
|
}
|
|
565
569
|
}));
|
|
566
570
|
function k(e) {
|
|
567
|
-
return
|
|
571
|
+
return Ke(e, {
|
|
568
572
|
homeSite: h.links(e?.project_id)?.homeSite,
|
|
569
573
|
siteKey: v.manifest?.site?.key
|
|
570
574
|
}) ?? te(f);
|
|
@@ -602,7 +606,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
602
606
|
"data-getter": o.dataGetter,
|
|
603
607
|
class: "mwnf-dxa-item mwnf-dxa-gallery-item"
|
|
604
608
|
}, {
|
|
605
|
-
header: y(({ languages: e, language: t, select: n }) => [a("div",
|
|
609
|
+
header: y(({ languages: e, language: t, select: n }) => [a("div", Je, [c(L, {
|
|
606
610
|
languages: e,
|
|
607
611
|
language: t,
|
|
608
612
|
from: 1,
|
|
@@ -623,14 +627,14 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
623
627
|
}, [l[0] ||= a("span", {
|
|
624
628
|
class: "mwnf-dxa-gallery-item__icon",
|
|
625
629
|
"aria-hidden": "true"
|
|
626
|
-
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(M(k(e))) + ")", 1)])], 8,
|
|
630
|
+
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(M(k(e))) + ")", 1)])], 8, Xe)]), a("p", null, [a("a", {
|
|
627
631
|
href: _(E).myCollection,
|
|
628
632
|
target: "_blank",
|
|
629
633
|
rel: "noopener"
|
|
630
634
|
}, [l[1] ||= a("span", {
|
|
631
635
|
class: "mwnf-dxa-gallery-item__icon",
|
|
632
636
|
"aria-hidden": "true"
|
|
633
|
-
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8,
|
|
637
|
+
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8, Ze)])], 8, Ye)) : r("", !0)]),
|
|
634
638
|
museum: y((t) => [(p(!0), i(e, null, m([F(t)], (t) => (p(), i(e, { key: "museum" }, [t.to && t.holder ? (p(), n(_(b), {
|
|
635
639
|
key: 0,
|
|
636
640
|
to: t.to,
|
|
@@ -639,34 +643,34 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
639
643
|
default: y(() => [l[2] ||= a("span", {
|
|
640
644
|
class: "mwnf-dxa-gallery-item__icon",
|
|
641
645
|
"aria-hidden": "true"
|
|
642
|
-
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8,
|
|
646
|
+
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8, Qe)]),
|
|
643
647
|
_: 2
|
|
644
648
|
}, 1032, ["to"])) : t.holder ? (p(), i("span", {
|
|
645
649
|
key: 1,
|
|
646
650
|
innerHTML: t.holder
|
|
647
|
-
}, null, 8,
|
|
651
|
+
}, null, 8, $e)) : r("", !0)], 64))), 128))]),
|
|
648
652
|
credits: y(({ record: t, credits: n, workingNumber: c, citation: l, dir: f }) => [t ? (p(), i("div", {
|
|
649
653
|
key: 0,
|
|
650
654
|
class: "mwnf-dxa-gallery-item__credits",
|
|
651
655
|
dir: f || void 0
|
|
652
656
|
}, [
|
|
653
|
-
l ? (p(), i(e, { key: 0 }, [a("p",
|
|
657
|
+
l ? (p(), i(e, { key: 0 }, [a("p", tt, g(_(d)("record.citation.ofThisPage")), 1), (p(!0), i(e, null, m([P(l, t)], (e) => (p(), i("p", nt, [
|
|
654
658
|
s(g(e.before), 1),
|
|
655
|
-
a("span",
|
|
659
|
+
a("span", rt, g(e.project), 1),
|
|
656
660
|
s(g(e.after) + " ", 1),
|
|
657
|
-
a("span",
|
|
661
|
+
a("span", it, g(k(t)), 1)
|
|
658
662
|
]))), 128))], 64)) : r("", !0),
|
|
659
663
|
(p(!0), i(e, null, m(n, (e) => (p(), i("p", {
|
|
660
664
|
key: e.label,
|
|
661
665
|
class: "mwnf-dxa-gallery-item__credit"
|
|
662
|
-
}, [a("span",
|
|
663
|
-
c ? (p(), i("p",
|
|
666
|
+
}, [a("span", at, g(e.label), 1), a("span", null, g(e.value), 1)]))), 128)),
|
|
667
|
+
c ? (p(), i("p", ot, [a("span", st, g(_(d)(o.words.workingNumber)), 1), s(g(" ") + g(c), 1)])) : r("", !0),
|
|
664
668
|
a("div", { class: u(["mwnf-dxa-gallery-item__source", N(t)]) }, [a("p", null, g(_(d)("record.source.label")), 1), a("p", null, [a("a", {
|
|
665
669
|
href: k(t),
|
|
666
670
|
target: "_blank",
|
|
667
671
|
rel: "noopener"
|
|
668
|
-
}, g(k(t)), 9,
|
|
669
|
-
], 8,
|
|
672
|
+
}, g(k(t)), 9, ct)])], 2)
|
|
673
|
+
], 8, et)) : r("", !0)]),
|
|
670
674
|
_: 1
|
|
671
675
|
}, 8, [
|
|
672
676
|
"spec",
|
|
@@ -675,4 +679,4 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
|
|
|
675
679
|
]));
|
|
676
680
|
}
|
|
677
681
|
};
|
|
678
|
-
export { K as n,
|
|
682
|
+
export { K as n, lt as t };
|
|
@@ -2,8 +2,8 @@ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r
|
|
|
2
2
|
import { RouterLink as v, useRoute as ie, useRouter as ae } from "vue-router";
|
|
3
3
|
import { glossaryEntries as oe, glossaryTermsForText as se, renderBlock as y, renderInline as b, useGlossaryPopup as ce, useI18n as le } from "@museumwnf/viewer-core";
|
|
4
4
|
import { t as ue } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
-
import { M as de, c as fe, d as pe, k as me, u as he, v as ge } from "./data-
|
|
6
|
-
import { n as x } from "./themeSpecs
|
|
5
|
+
import { M as de, c as fe, d as pe, k as me, u as he, v as ge } from "./data-4nhfXqql.js";
|
|
6
|
+
import { n as x } from "./themeSpecs--Lu6L5XO.js";
|
|
7
7
|
// \0rolldown/runtime.js
|
|
8
8
|
var S = Object.defineProperty, C = (e, t) => {
|
|
9
9
|
let n = Object.setPrototypeOf({}, null);
|
|
@@ -21,7 +21,7 @@ function U(e, t) {
|
|
|
21
21
|
return 0;
|
|
22
22
|
}
|
|
23
23
|
function W(e, t) {
|
|
24
|
-
return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || U(e.backward_compatibility, t.backward_compatibility);
|
|
24
|
+
return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || (Number.isInteger(e.sort_key) && Number.isInteger(t.sort_key) ? e.sort_key - t.sort_key : U(e.backward_compatibility, t.backward_compatibility));
|
|
25
25
|
}
|
|
26
26
|
var G = {
|
|
27
27
|
pageSize: 20,
|
package/dist/dxa.js
CHANGED
|
@@ -5,16 +5,16 @@ import { c as ue, d as V, t as de } from "./PartnerMap-DdyMLtgH.js";
|
|
|
5
5
|
import { a as H, i as fe, n as pe } from "./TimelineEventList-CIkKxyQu.js";
|
|
6
6
|
import { t as me } from "./RecordView-DAvWufWV.js";
|
|
7
7
|
import { A as he, C as ge, D as _e, E as ve, M as ye, N as be, O as xe, P as Se, S as Ce, T as we, _ as Te, a as Ee, b as De, c as Oe, d as ke, f as Ae, g as je, h as Me, i as Ne, j as Pe, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as Ge, w as Ke, x as qe, y as Je } from "./data-gT947pBe.js";
|
|
8
|
-
import { A as Ye, C as Xe, D as Ze, E as Qe, M as U, N as $e, O as et, P as tt, S as nt, T as rt, _ as it, a as at, b as ot, c as W, d as st, f as ct, g as lt, h as ut, i as dt, j as G, k as ft, l as pt, m as K, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, u as bt, v as q, w as xt, x as St, y as Ct } from "./data-
|
|
8
|
+
import { A as Ye, C as Xe, D as Ze, E as Qe, M as U, N as $e, O as et, P as tt, S as nt, T as rt, _ as it, a as at, b as ot, c as W, d as st, f as ct, g as lt, h as ut, i as dt, j as G, k as ft, l as pt, m as K, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, u as bt, v as q, w as xt, x as St, y as Ct } from "./data-4nhfXqql.js";
|
|
9
9
|
import { n as wt, r as J, t as Tt } from "./TimelineResultsView-Bn4rC_Se.js";
|
|
10
10
|
import { RouterLink as Y, useRoute as X, useRouter as Et } from "vue-router";
|
|
11
11
|
import { romanFor as Dt } from "@museumwnf/viewer-core/dxa";
|
|
12
12
|
import { t as Ot } from "./SiteShell-D0u1FGMu.js";
|
|
13
13
|
import { i as kt, n as At, r as jt, t as Mt } from "./chrome-Bv_mLlHM.js";
|
|
14
14
|
import { i as Nt } from "./PageShell-BAtk_qcb.js";
|
|
15
|
-
import { n as Pt, t as Ft } from "./LegacyItemSheet-
|
|
16
|
-
import { n as It, r as Z } from "./Theme-
|
|
17
|
-
import { n as Lt, r as Rt, t as zt } from "./themeSpecs
|
|
15
|
+
import { n as Pt, t as Ft } from "./LegacyItemSheet-pELiIt0_.js";
|
|
16
|
+
import { n as It, r as Z } from "./Theme-BwJmBagO.js";
|
|
17
|
+
import { n as Lt, r as Rt, t as zt } from "./themeSpecs--Lu6L5XO.js";
|
|
18
18
|
// src/dxa/PartnerDetail.vue
|
|
19
19
|
var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = { class: "mwnf-dxa-profile-map-label" }, Ht = {
|
|
20
20
|
key: 1,
|
|
@@ -215,7 +215,7 @@ function nn(e) {
|
|
|
215
215
|
return {
|
|
216
216
|
name: t.name,
|
|
217
217
|
status: t.exhibition ? en.partner : en[r] ?? null,
|
|
218
|
-
tone: t.exhibition ? "exh" : Xt[n] ?? ""
|
|
218
|
+
tone: "tone" in t ? t.tone ?? "" : t.exhibition ? "exh" : Xt[n] ?? ""
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
// src/dxa/gallery/Partners.vue
|
|
@@ -1635,7 +1635,7 @@ var $i = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, ea =
|
|
|
1635
1635
|
_: 1
|
|
1636
1636
|
}, 8, ["spec"])])) : C("", !0);
|
|
1637
1637
|
}
|
|
1638
|
-
}, eo = () => Promise.resolve().then(() => _s), to = () => Promise.resolve().then(() => Es), no = () => Promise.resolve().then(() => Os), ro = () => Promise.resolve().then(() => Ws), io = () => Promise.resolve().then(() => qs), ao = () => Promise.resolve().then(() => Xs), oo = () => import("./Theme-
|
|
1638
|
+
}, eo = () => Promise.resolve().then(() => _s), to = () => Promise.resolve().then(() => Es), no = () => Promise.resolve().then(() => Os), ro = () => Promise.resolve().then(() => Ws), io = () => Promise.resolve().then(() => qs), ao = () => Promise.resolve().then(() => Xs), oo = () => import("./Theme-BwJmBagO.js").then((e) => e.t), so = () => Promise.resolve().then(() => mc), co = () => Promise.resolve().then(() => Nc), lo = () => Promise.resolve().then(() => Fc), uo = () => Promise.resolve().then(() => Zc), fo = {
|
|
1639
1639
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
1640
1640
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
1641
1641
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
|
@@ -3306,7 +3306,7 @@ var Ro = {
|
|
|
3306
3306
|
], r = {
|
|
3307
3307
|
further_reading: 1,
|
|
3308
3308
|
catalogue: 1
|
|
3309
|
-
}, i = (e) => e.category_id ?? (e.category ? r[e.category] ?? 4 : void 0), { t: a, locale: o } = p(), l = (e) => e?.[o.value] ?? e?.en ?? "";
|
|
3309
|
+
}, i = (e) => e.category_id ?? (e.category ? r[e.category] ?? 4 : void 0), { t: a, locale: o } = p(), l = (e) => e?.[o.value] ?? e?.en ?? e?.und ?? "";
|
|
3310
3310
|
function u(e) {
|
|
3311
3311
|
let t = e.document_path ? _t(e.document_path, "hi_res") : "";
|
|
3312
3312
|
return {
|
package/dist/minisite.js
CHANGED
|
@@ -1145,40 +1145,21 @@ function Xn(e, t, n) {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
1147
|
function Zn(e) {
|
|
1148
|
-
|
|
1148
|
+
return (e?.slots ?? []).map((t) => ({
|
|
1149
1149
|
n: t.position,
|
|
1150
1150
|
variants: t.variants.map((t) => e.items[t]).filter(Boolean)
|
|
1151
1151
|
}));
|
|
1152
|
-
let t = /* @__PURE__ */ new Map();
|
|
1153
|
-
for (let n of e?.items ?? []) {
|
|
1154
|
-
if (!n.image_url || n.curator_status !== "Y") continue;
|
|
1155
|
-
let e = n.display_order ?? 0;
|
|
1156
|
-
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
1157
|
-
}
|
|
1158
|
-
let n = (e) => (e.variant_order ?? 1) === 1;
|
|
1159
|
-
return [...t.entries()].sort(([e], [t]) => e - t).flatMap(([e, t]) => {
|
|
1160
|
-
let r = t.filter((e) => !n(e)).sort((e, t) => e.variant_order - t.variant_order);
|
|
1161
|
-
return t.filter(n).map((t) => ({
|
|
1162
|
-
n: e,
|
|
1163
|
-
variants: [t, ...r]
|
|
1164
|
-
}));
|
|
1165
|
-
});
|
|
1166
1152
|
}
|
|
1167
|
-
function Qn({ item: e, own: t, entry: n, lang: r
|
|
1168
|
-
let
|
|
1169
|
-
a ? t.holder : "",
|
|
1170
|
-
t.location,
|
|
1171
|
-
i(t.country_id_present_days),
|
|
1172
|
-
i(e?.country_id)
|
|
1173
|
-
].map((e) => (e ?? "").trim()).filter(Boolean).join(", "), s = n?.curator_status === "Y" ? (n.justifications?.[r]?.curator ?? "").trim() : "";
|
|
1153
|
+
function Qn({ item: e, own: t, entry: n, lang: r }) {
|
|
1154
|
+
let i = e?.type !== "monument", a = t.caption_place ?? "", o = n?.curator_status === "Y" ? (n.justifications?.[r]?.curator ?? "").trim() : "";
|
|
1174
1155
|
return {
|
|
1175
1156
|
name: t.name ?? "",
|
|
1176
1157
|
date: t.dates ?? "",
|
|
1177
|
-
place:
|
|
1178
|
-
artist:
|
|
1179
|
-
material:
|
|
1180
|
-
architects:
|
|
1181
|
-
justification:
|
|
1158
|
+
place: a,
|
|
1159
|
+
artist: i ? t.artist ?? "" : "",
|
|
1160
|
+
material: i ? t.materials ?? "" : "",
|
|
1161
|
+
architects: i ? "" : t.architects ?? "",
|
|
1162
|
+
justification: o.replace(/\s+/g, " ")
|
|
1182
1163
|
};
|
|
1183
1164
|
}
|
|
1184
1165
|
function $n({ own: e, images: t = [], picture: n }) {
|
|
@@ -1220,18 +1201,17 @@ function er({ parent: e, exhibitionId: t, themeId: n = null, subthemeId: r = nul
|
|
|
1220
1201
|
function $() {
|
|
1221
1202
|
let { pkg: e, data: t, tree: r } = He(), { locale: i, t: a } = B(), o = V(), s = o.minisite ?? {}, c = s.texts ?? "minisiteSharingHistory", l = (e) => a(`${c}.${e}`), u = T(), d = n(() => i.value);
|
|
1222
1203
|
b(d, (t) => Promise.all(Gn.flatMap((n) => [e.loadTranslations(n, t), e.loadTranslations(n, "en")])), { immediate: !0 });
|
|
1223
|
-
let f = (t) => e.translations("collections", d.value)[t] ?? {}, p = (t, n) => e.translations("collections", n)[t]?.title, m = r.root, h = n(() => m.value ? qn(r.children(m.value.id), p, d.value) : []), g = (e) => Jn(r.children(e), p, d.value), _ = n(() => Kn(h.value, g)), v = (e.manifest.site?.languages ?? []).map((e) => e.code), y = (t) => e.manifest.site?.languages?.find((e) => e.code === t)?.label ?? t
|
|
1224
|
-
function
|
|
1204
|
+
let f = (t) => e.translations("collections", d.value)[t] ?? {}, p = (t, n) => e.translations("collections", n)[t]?.title, m = r.root, h = n(() => m.value ? qn(r.children(m.value.id), p, d.value) : []), g = (e) => Jn(r.children(e), p, d.value), _ = n(() => Kn(h.value, g)), v = (e.manifest.site?.languages ?? []).map((e) => e.code), y = (t) => e.manifest.site?.languages?.find((e) => e.code === t)?.label ?? t;
|
|
1205
|
+
function x(e) {
|
|
1225
1206
|
return Qn({
|
|
1226
1207
|
item: t.itemById.value.get(e.id),
|
|
1227
1208
|
own: t.tr("items", e.id, d.value),
|
|
1228
1209
|
entry: e,
|
|
1229
|
-
lang: d.value
|
|
1230
|
-
countryName: x
|
|
1210
|
+
lang: d.value
|
|
1231
1211
|
});
|
|
1232
1212
|
}
|
|
1233
|
-
let
|
|
1234
|
-
function
|
|
1213
|
+
let S = (e) => e ? H(o.chrome, e) : null;
|
|
1214
|
+
function C(e) {
|
|
1235
1215
|
return new URL(u.resolve({
|
|
1236
1216
|
...e,
|
|
1237
1217
|
query: {
|
|
@@ -1254,9 +1234,9 @@ function $() {
|
|
|
1254
1234
|
offered: v,
|
|
1255
1235
|
languageName: y,
|
|
1256
1236
|
settings: s,
|
|
1257
|
-
caption:
|
|
1258
|
-
picture:
|
|
1259
|
-
href:
|
|
1237
|
+
caption: x,
|
|
1238
|
+
picture: S,
|
|
1239
|
+
href: C,
|
|
1260
1240
|
imagesOf: (e) => [...m.value?.images ?? []].filter((t) => t.type === e).sort((e, t) => e.display_order - t.display_order),
|
|
1261
1241
|
slots: Zn,
|
|
1262
1242
|
pageAt: (e, t) => Xn(_.value, e, t),
|
|
@@ -1382,21 +1362,21 @@ var tr = {
|
|
|
1382
1362
|
}, jr = ["href"], Mr = ["src"], Nr = ["src"], Pr = {
|
|
1383
1363
|
__name: "Home",
|
|
1384
1364
|
setup(t) {
|
|
1385
|
-
let { data: r, imagesOf: l, label: f, picture: h, root: y, settings: b, subthemesOf: C, text: w, themes: T, title: E } = $(), D =
|
|
1365
|
+
let { data: r, imagesOf: l, label: f, picture: h, root: y, settings: b, subthemesOf: C, text: w, themes: T, title: E } = $(), D = n(() => y.value ? w(y.value.id).subtitle ?? "" : ""), O = n(() => $n({
|
|
1386
1366
|
own: b.logos,
|
|
1387
1367
|
images: l("logo"),
|
|
1388
1368
|
picture: h
|
|
1389
|
-
})),
|
|
1369
|
+
})), k = p(-1);
|
|
1390
1370
|
return (t, n) => {
|
|
1391
1371
|
let l = g("router-link");
|
|
1392
1372
|
return v(y) ? (d(), a("div", hr, [
|
|
1393
1373
|
o("div", {
|
|
1394
1374
|
class: "mwnf-sh-home__picture",
|
|
1395
1375
|
style: u({ backgroundImage: `url(${v(h)("legacy/home_bg.jpg") ?? ""})` })
|
|
1396
|
-
}, [o("div", gr, [o("div", _r, _(v(E)), 1),
|
|
1376
|
+
}, [o("div", gr, [o("div", _r, _(v(E)), 1), D.value ? (d(), a("div", {
|
|
1397
1377
|
key: 0,
|
|
1398
1378
|
class: "mwnf-sh-home__quote",
|
|
1399
|
-
innerHTML: v(r).mdInline(
|
|
1379
|
+
innerHTML: v(r).mdInline(D.value)
|
|
1400
1380
|
}, null, 8, vr)) : i("", !0)])], 4),
|
|
1401
1381
|
o("div", yr, [o("div", br, [c(l, { to: { name: "introduction" } }, {
|
|
1402
1382
|
default: x(() => [o("b", null, _(v(f)("home.introduction")), 1), o("img", {
|
|
@@ -1409,14 +1389,14 @@ var tr = {
|
|
|
1409
1389
|
}), (d(!0), a(e, null, m(v(T), (t, n) => (d(), a("div", { key: t.id }, [o("button", {
|
|
1410
1390
|
type: "button",
|
|
1411
1391
|
class: "mwnf-sh-home__theme",
|
|
1412
|
-
"aria-expanded":
|
|
1413
|
-
onClick: (e) =>
|
|
1392
|
+
"aria-expanded": k.value === n,
|
|
1393
|
+
onClick: (e) => k.value = k.value === n ? -1 : n
|
|
1414
1394
|
}, [o("span", { innerHTML: v(r).mdInline(v(w)(t.id).title ?? "") }, null, 8, Cr), o("img", {
|
|
1415
1395
|
src: v(h)("legacy/arrow_black_down.gif"),
|
|
1416
1396
|
alt: "",
|
|
1417
1397
|
width: "15",
|
|
1418
1398
|
height: "9"
|
|
1419
|
-
}, null, 8, wr)], 8, Sr),
|
|
1399
|
+
}, null, 8, wr)], 8, Sr), k.value === n ? (d(), a("ul", Tr, [o("li", null, [o("img", {
|
|
1420
1400
|
src: v(h)("legacy/arrow_inner_black.gif"),
|
|
1421
1401
|
alt: "",
|
|
1422
1402
|
class: "mwnf-sh-arrow",
|
|
@@ -1444,9 +1424,9 @@ var tr = {
|
|
|
1444
1424
|
},
|
|
1445
1425
|
innerHTML: v(r).mdInline(v(w)(e.id).title ?? "")
|
|
1446
1426
|
}, null, 8, ["to", "innerHTML"])]))), 128))])) : i("", !0)]))), 128))]), c(lr, { "all-exhibitions": "" })]),
|
|
1447
|
-
o("div", Or, [c(mr, { class: "mwnf-sh-band__links" }), o("div", kr, [(d(!0), a(e, null, m(
|
|
1427
|
+
o("div", Or, [c(mr, { class: "mwnf-sh-band__links" }), o("div", kr, [(d(!0), a(e, null, m(O.value, (t, n) => (d(), a(e, { key: t.url }, [n > 0 ? (d(), a("span", Ar)) : i("", !0), t.link ? S((d(), a("a", {
|
|
1448
1428
|
key: 1,
|
|
1449
|
-
href:
|
|
1429
|
+
href: t.link
|
|
1450
1430
|
}, [o("img", {
|
|
1451
1431
|
src: t.url,
|
|
1452
1432
|
alt: ""
|
|
@@ -1995,13 +1975,9 @@ var tr = {
|
|
|
1995
1975
|
} },
|
|
1996
1976
|
setup(e) {
|
|
1997
1977
|
let t = e, { data: r, label: i, root: s, text: c, title: l } = $(), u = {
|
|
1998
|
-
curators:
|
|
1999
|
-
coverImage:
|
|
2000
|
-
}, f = n(() =>
|
|
2001
|
-
if (!s.value) return "";
|
|
2002
|
-
let e = c(s.value.id), [n, i] = u[t.kind];
|
|
2003
|
-
return r.md(e[n] ?? e.extra?.[i] ?? "");
|
|
2004
|
-
});
|
|
1978
|
+
curators: "curated_by",
|
|
1979
|
+
coverImage: "cover_caption"
|
|
1980
|
+
}, f = n(() => s.value ? r.md(c(s.value.id)[u[t.kind]] ?? "") : "");
|
|
2005
1981
|
return (t, n) => (d(), a("div", null, [
|
|
2006
1982
|
o("h3", null, _(v(l)), 1),
|
|
2007
1983
|
o("p", null, _(v(i)(`windows.${e.kind}`)), 1),
|
|
@@ -3405,23 +3381,31 @@ function Cc({ exhibition: e = {}, ...t }) {
|
|
|
3405
3381
|
extraViews: Es(I())
|
|
3406
3382
|
};
|
|
3407
3383
|
}
|
|
3408
|
-
function wc(
|
|
3409
|
-
|
|
3384
|
+
function wc(e, t, n = []) {
|
|
3385
|
+
return !Array.isArray(e) || e.length === 0 ? n : e.map((e) => {
|
|
3386
|
+
let n = e.names ?? {};
|
|
3387
|
+
return {
|
|
3388
|
+
text: String(n.en || Object.values(n).find(Boolean) || "").trim().replace(/\.$/, ""),
|
|
3389
|
+
href: `${t}/#/historical-profiles/${[e.collection_id, e.page_id].filter(Boolean).map(encodeURIComponent).join("/")}`
|
|
3390
|
+
};
|
|
3391
|
+
}).filter((e) => e.text).sort((e, t) => e.text.localeCompare(t.text, "en"));
|
|
3392
|
+
}
|
|
3393
|
+
function Tc({ exhibition: e = {}, ...t }) {
|
|
3394
|
+
let n = N(), r = vc(t.origin, "sharinghistory"), i = wc(z().manifest.site?.parent?.profiles, r, e.profiles);
|
|
3410
3395
|
return {
|
|
3411
3396
|
...bc(t, n),
|
|
3412
3397
|
shell: Un,
|
|
3413
3398
|
navigation: Aa({
|
|
3414
3399
|
languages: k(n),
|
|
3415
3400
|
parent: r,
|
|
3416
|
-
profiles:
|
|
3401
|
+
profiles: i
|
|
3417
3402
|
}),
|
|
3418
3403
|
minisite: ja({
|
|
3419
3404
|
parent: r,
|
|
3420
|
-
logos: e.logos
|
|
3421
|
-
partnerLinks: e.partnerLinks
|
|
3405
|
+
logos: e.logos
|
|
3422
3406
|
}),
|
|
3423
3407
|
views: { home: Pr },
|
|
3424
3408
|
extraViews: Oa(I())
|
|
3425
3409
|
};
|
|
3426
3410
|
}
|
|
3427
|
-
export { Bs as ArtIntroHome, mc as ArtIntroPage, ao as BAROQUEART_LABELS, Ya as BAROQUEART_NO_COUNTRY, so as BAROQUEART_WINDOWS, ko as BaroqueartHome, qo as BaroqueartIntroduction, Ss as BaroqueartPage, Ja as BaroqueartShell, Ts as BaroqueartZoom, Ue as EXHIBITION_ENTITIES, Ie as FAMILY_CODES, xe as ISLAMICART_NO_COUNTRY, Le as LABELS, dn as MinisiteCredits, nt as MinisiteHome, Pt as MinisiteIntroduction, hn as MinisiteMap, cn as MinisitePage, ve as MinisiteShell, vn as MinisiteZoom, be as PLACEHOLDER_TITLE, Wn as SHARINGHISTORY_LABELS, tr as SHARINGHISTORY_WINDOWS, Sa as SharingHistoryFurtherReading, Pr as SharingHistoryHome, bi as SharingHistoryIntroduction, da as SharingHistoryPage, Un as SharingHistoryShell, wa as SharingHistoryWindow, Ea as SharingHistoryZoom, Sc as artintroConfig, gc as artintroNavigation, hc as artintroRoutes, _c as artintroSettings, eo as baroqueartCaption, io as baroqueartCuratorLabel, to as baroqueartDetailViewCaption, ro as baroqueartIntroCaption, Ds as baroqueartMenu, Cc as baroqueartMinisiteConfig, ks as baroqueartNavigation, Es as baroqueartRoutes, As as baroqueartSettings, Xa as baroqueartSlotsOf, no as baroqueartWithFirstView, J as cleanText, Ne as curatorLabel, Pe as curatorLink, He as exhibitionData, Re as familyOf, Me as introCaption, rt as introductionOf, bn as islamicartMenu, ze as labelSet, xc as minisiteConfig, xn as minisiteNavigation, yn as minisiteRoutes, Sn as minisiteSettings, yc as packageParent, Ce as pageWithNeighbours, vc as parentSite, Oe as placementCaption, Fe as quoteHasItalics, Se as readingOrder, Qn as sharinghistoryCaption, $n as sharinghistoryHomeLogos, Jn as sharinghistoryListedSubthemes, qn as sharinghistoryListedThemes,
|
|
3411
|
+
export { Bs as ArtIntroHome, mc as ArtIntroPage, ao as BAROQUEART_LABELS, Ya as BAROQUEART_NO_COUNTRY, so as BAROQUEART_WINDOWS, ko as BaroqueartHome, qo as BaroqueartIntroduction, Ss as BaroqueartPage, Ja as BaroqueartShell, Ts as BaroqueartZoom, Ue as EXHIBITION_ENTITIES, Ie as FAMILY_CODES, xe as ISLAMICART_NO_COUNTRY, Le as LABELS, dn as MinisiteCredits, nt as MinisiteHome, Pt as MinisiteIntroduction, hn as MinisiteMap, cn as MinisitePage, ve as MinisiteShell, vn as MinisiteZoom, be as PLACEHOLDER_TITLE, Wn as SHARINGHISTORY_LABELS, tr as SHARINGHISTORY_WINDOWS, Sa as SharingHistoryFurtherReading, Pr as SharingHistoryHome, bi as SharingHistoryIntroduction, da as SharingHistoryPage, Un as SharingHistoryShell, wa as SharingHistoryWindow, Ea as SharingHistoryZoom, Sc as artintroConfig, gc as artintroNavigation, hc as artintroRoutes, _c as artintroSettings, eo as baroqueartCaption, io as baroqueartCuratorLabel, to as baroqueartDetailViewCaption, ro as baroqueartIntroCaption, Ds as baroqueartMenu, Cc as baroqueartMinisiteConfig, ks as baroqueartNavigation, Es as baroqueartRoutes, As as baroqueartSettings, Xa as baroqueartSlotsOf, no as baroqueartWithFirstView, J as cleanText, Ne as curatorLabel, Pe as curatorLink, He as exhibitionData, Re as familyOf, Me as introCaption, rt as introductionOf, bn as islamicartMenu, ze as labelSet, xc as minisiteConfig, xn as minisiteNavigation, yn as minisiteRoutes, Sn as minisiteSettings, yc as packageParent, Ce as pageWithNeighbours, wc as parentProfiles, vc as parentSite, Oe as placementCaption, Fe as quoteHasItalics, Se as readingOrder, Qn as sharinghistoryCaption, $n as sharinghistoryHomeLogos, Jn as sharinghistoryListedSubthemes, qn as sharinghistoryListedThemes, Tc as sharinghistoryMinisiteConfig, Aa as sharinghistoryNavigation, Yn as sharinghistoryPageRoute, Xn as sharinghistoryPageWithNext, Kn as sharinghistoryReadingOrder, er as sharinghistoryRelatedLinks, Oa as sharinghistoryRoutes, ja as sharinghistorySettings, Zn as sharinghistorySlotsOf, Ae as sheetItemId, we as slotsOf, ot as subtitleOf, co as useBaroqueartExhibition, Y as useExhibition, $ as useSharingHistoryExhibition, je as viewPicture, ke as withFirstView };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.91.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/minisite/testing.js
CHANGED
|
@@ -60,7 +60,6 @@ export function describeMinisiteSmoke({ config, exhibition, sharedTexts, ownText
|
|
|
60
60
|
// Legacy's address is provenance only: checked where minisite.json keeps it.
|
|
61
61
|
if (exhibition.legacy !== undefined) expect(exhibition.legacy).toMatch(marks.legacy)
|
|
62
62
|
if (family === 'ISL' || family === 'BAR') expect(exhibition.curators.length).toBeGreaterThan(0)
|
|
63
|
-
if (family === 'SH') expect(exhibition.profiles.length).toBeGreaterThan(0)
|
|
64
63
|
expect(readFileSync('theme/tokens.css', 'utf8')).toContain(marks.token)
|
|
65
64
|
expect(Object.keys(sources.files).length).toBeGreaterThan(0)
|
|
66
65
|
})
|