@museumwnf/viewer-layout 3.63.0 → 3.64.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/dist/{LegacyItemSheet-Bmg8etGz.js → LegacyItemSheet-DO80usKA.js} +139 -119
- package/dist/{Theme-Daezwp0p.js → Theme-TtISKJme.js} +2 -2
- package/dist/data-CtYatYQi.js +81 -0
- package/dist/data-IBw4ehrj.js +53 -0
- package/dist/dxa.js +636 -635
- package/dist/legacyFacets-CQw2NYL4.js +9 -0
- package/dist/{themeSpecs-DIdmAEc3.js → themeSpecs-DePD36Wi.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
- package/src/dxa/testing.js +19 -1
- package/src/styles/dxa-exhibition.css +3 -0
- package/dist/data-CsMfGCkv.js +0 -77
- package/dist/data-DzrH9ikw.js +0 -45
|
@@ -4,43 +4,43 @@ import { n as c } from "./TimelineEventList-CIkKxyQu.js";
|
|
|
4
4
|
import { t as l } from "./RecordView-Bgd5mm_e.js";
|
|
5
5
|
import { t as u } from "./chrome-Bv_mLlHM.js";
|
|
6
6
|
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, guardReactiveProps as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, openBlock as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as ee, withCtx as k } from "vue";
|
|
7
|
-
import { NotFoundView as te, byId as A, loadEntities as ne, mdInline as j, mdStrip as re, mwnfLinks as M, partnerView as ie, renderInline as N, siblingSiteUrl as P, sourceUrl as F, useDataPackage as
|
|
8
|
-
import { RouterLink as
|
|
7
|
+
import { NotFoundView as te, byId as A, loadEntities as ne, mdInline as j, mdStrip as re, mwnfLinks as M, partnerView as ie, renderInline as N, siblingSiteUrl as P, sourceUrl as F, useDataPackage as I, useI18n as ae, useProjects as L, useSiteConfig as R } from "@museumwnf/viewer-core";
|
|
8
|
+
import { RouterLink as z, useRoute as B } from "vue-router";
|
|
9
9
|
// src/dxa/ItemDetailView.vue
|
|
10
|
-
var
|
|
10
|
+
var oe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "mwnf-sheet-source"
|
|
13
|
-
},
|
|
13
|
+
}, se = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "mwnf-sheet-source__line"
|
|
16
|
-
},
|
|
16
|
+
}, ce = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "mwnf-sheet-source__collection"
|
|
19
|
-
},
|
|
19
|
+
}, le = ["href"], ue = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "mwnf-sheet-notice"
|
|
22
|
-
},
|
|
22
|
+
}, de = {
|
|
23
23
|
key: "museum",
|
|
24
24
|
class: "mwnf-sheet-museum"
|
|
25
|
-
},
|
|
25
|
+
}, fe = ["innerHTML"], pe = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "mwnf-sheet-related"
|
|
28
|
-
},
|
|
28
|
+
}, me = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
31
|
-
},
|
|
31
|
+
}, he = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "mwnf-sheet-related__description"
|
|
34
|
-
},
|
|
34
|
+
}, ge = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "mwnf-sheet-related__references"
|
|
37
|
-
},
|
|
37
|
+
}, _e = {
|
|
38
38
|
key: 2,
|
|
39
39
|
class: "mwnf-sheet-related__unresolved"
|
|
40
|
-
},
|
|
40
|
+
}, ve = {
|
|
41
41
|
key: 3,
|
|
42
42
|
class: "mwnf-sheet-related__line"
|
|
43
|
-
},
|
|
43
|
+
}, ye = ["href"], be = { class: "mwnf-sheet-related__heading" }, xe = ["href"], Se = { key: 9 }, Ce = { class: "mwnf-sheet-related__heading" }, we = { key: 10 }, Te = { class: "mwnf-sheet-related__heading" }, Ee = { class: "mwnf-sheet-related__line" }, De = ["href"], Oe = { key: 11 }, ke = { class: "mwnf-sheet-related__heading" }, Ae = { class: "mwnf-sheet-related__line" }, je = ["href"], Me = { key: 12 }, Ne = { class: "mwnf-sheet-related__heading" }, Pe = "sheet.field.", V = {
|
|
44
44
|
__name: "ItemDetailView",
|
|
45
45
|
props: {
|
|
46
46
|
spec: {
|
|
@@ -66,69 +66,69 @@ var se = {
|
|
|
66
66
|
"museum",
|
|
67
67
|
"related",
|
|
68
68
|
"aside"
|
|
69
|
-
]), F = f(() => Object.keys(N).filter((e) => !P.has(e))),
|
|
70
|
-
function
|
|
71
|
-
if (typeof e != "string" || !e.startsWith(
|
|
69
|
+
]), F = f(() => Object.keys(N).filter((e) => !P.has(e))), z = f(() => !o.dataGetter || o.dataGetter(o.id) != null), { t: B } = ae();
|
|
70
|
+
function V(e) {
|
|
71
|
+
if (typeof e != "string" || !e.startsWith(Pe)) return e;
|
|
72
72
|
let t = `sheet.dxa.${e.slice(12)}`;
|
|
73
|
-
return
|
|
73
|
+
return B(t) === t ? e : t;
|
|
74
74
|
}
|
|
75
|
-
let
|
|
75
|
+
let H = f(() => Array.isArray(o.spec.fields) ? {
|
|
76
76
|
...o.spec,
|
|
77
77
|
fields: o.spec.fields.map((e) => ({
|
|
78
78
|
...e,
|
|
79
|
-
label:
|
|
79
|
+
label: V(e.label)
|
|
80
80
|
}))
|
|
81
|
-
} : o.spec),
|
|
81
|
+
} : o.spec), U = L(), W = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), G = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(W), K = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(W), q = (e) => U.links(e.project_id)?.artisticIntroductionUrl ?? null, J = (e) => U.links(e.project_id)?.relatedDatabaseUrl ?? null, Y = {
|
|
82
82
|
"islamicart.museumwnf.org": "core.project.islamicArt",
|
|
83
83
|
"baroqueart.museumwnf.org": "core.project.baroqueArt",
|
|
84
84
|
"sharinghistory.museumwnf.org": "core.project.sharingHistory"
|
|
85
85
|
};
|
|
86
|
-
function
|
|
86
|
+
function X(e) {
|
|
87
87
|
try {
|
|
88
|
-
let t =
|
|
89
|
-
if (t) return
|
|
88
|
+
let t = Y[new URL(J(e)).host];
|
|
89
|
+
if (t) return B(t);
|
|
90
90
|
} catch {}
|
|
91
|
-
return
|
|
91
|
+
return U.label(e.project_id);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Z(e, t) {
|
|
94
94
|
if (!e) return null;
|
|
95
|
-
let n =
|
|
95
|
+
let n = H.value.sourceDatabase === !1 ? null : H.value.sourceDatabase ?? null, r = null;
|
|
96
96
|
if (n) {
|
|
97
|
-
let i = n.chipClass ? n.chipClass(e, t) : null, a =
|
|
97
|
+
let i = n.chipClass ? n.chipClass(e, t) : null, a = U.label(e.project_id);
|
|
98
98
|
(i || a) && (r = {
|
|
99
99
|
chipClass: i,
|
|
100
100
|
name: a,
|
|
101
|
-
label:
|
|
101
|
+
label: B(n.label ?? "record.sheet.sourceDatabase")
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
let i = n && n.addToCollection !== !1 ?
|
|
104
|
+
let i = n && n.addToCollection !== !1 ? B(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = H.value.notice === !1 ? null : H.value.notice ?? null, o = a && a.show(e, t) ? B(a.label) : null;
|
|
105
105
|
return {
|
|
106
106
|
source: r,
|
|
107
107
|
addToCollectionLabel: i,
|
|
108
108
|
notice: o
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
let
|
|
112
|
-
ne(["partners", "countries"]),
|
|
113
|
-
function
|
|
114
|
-
let n =
|
|
115
|
-
return re(n.name ??
|
|
111
|
+
let Q = I(), $ = A("partners"), Fe = A("countries");
|
|
112
|
+
ne(["partners", "countries"]), Q.loadTranslations("countries", "en");
|
|
113
|
+
function Ie(e, t) {
|
|
114
|
+
let n = Q.tr("countries", e, t, "en");
|
|
115
|
+
return re(n.name ?? Fe.value?.get(e)?.internal_name ?? "");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
let t = e.text?.holder ? j(String(e.text.holder)) : "", n =
|
|
117
|
+
function Le(e) {
|
|
118
|
+
let t = e.text?.holder ? j(String(e.text.holder)) : "", n = H.value.museum === !1 ? null : H.value.museum ?? null, r = n ? $.value?.get(e.record?.partner_id) : null;
|
|
119
119
|
return {
|
|
120
120
|
holder: t,
|
|
121
|
-
view: r ? ie(r,
|
|
122
|
-
countryLabel: (t) =>
|
|
121
|
+
view: r ? ie(r, Q.tr("partners", r.id, e.language, "en"), {
|
|
122
|
+
countryLabel: (t) => Ie(t, e.language),
|
|
123
123
|
route: (t) => n.route ? n.route(t.id, e) : null
|
|
124
124
|
}) : null
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Re(e, t) {
|
|
128
128
|
if (!e) return null;
|
|
129
|
-
let n =
|
|
129
|
+
let n = H.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], a = o.dataGetter ? r.filter((e) => o.dataGetter(e.id) != null) : r, s = o.dataGetter ? r.filter((e) => o.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], c = [...i, ...s].map((e) => ({
|
|
130
130
|
...e,
|
|
131
|
-
name: e.project_id ?
|
|
131
|
+
name: e.project_id ? U.label(e.project_id) : null,
|
|
132
132
|
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
133
133
|
})), l = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : t.legacy_host) || "", u = (e) => ({
|
|
134
134
|
id: e.id,
|
|
@@ -142,75 +142,80 @@ var se = {
|
|
|
142
142
|
sections: n.onDisplayIn.exhibitions(e, t)
|
|
143
143
|
} : {
|
|
144
144
|
heading: n.onDisplayIn.exhibitionsHeading ?? "record.related.exhibitions",
|
|
145
|
-
links:
|
|
145
|
+
links: K(e).map(u)
|
|
146
146
|
}, {
|
|
147
147
|
heading: n.onDisplayIn.galleriesHeading ?? "record.related.galleries",
|
|
148
|
-
links:
|
|
148
|
+
links: G(e).map(u)
|
|
149
149
|
}].filter((e) => (e.sections ?? [e]).some((e) => e.links?.length))
|
|
150
|
-
} : null, f = n.databaseLabel &&
|
|
151
|
-
url:
|
|
152
|
-
label:
|
|
153
|
-
name:
|
|
150
|
+
} : null, f = n.databaseLabel && J(e) ? {
|
|
151
|
+
url: J(e),
|
|
152
|
+
label: B(n.databaseLabel),
|
|
153
|
+
name: X(e)
|
|
154
154
|
} : null, p = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
155
|
-
label:
|
|
156
|
-
linkLabel:
|
|
155
|
+
label: B(n.overallDatabase.label),
|
|
156
|
+
linkLabel: B(n.overallDatabase.linkLabel)
|
|
157
157
|
} : null;
|
|
158
158
|
return {
|
|
159
|
-
title: n.title ?
|
|
160
|
-
description: n.description ?
|
|
161
|
-
heading:
|
|
159
|
+
title: n.title ? B(n.title) : "",
|
|
160
|
+
description: n.description ? B(n.description) : "",
|
|
161
|
+
heading: B(n.heading ?? "record.related.items"),
|
|
162
162
|
variant: n.variant ?? "grid",
|
|
163
|
-
actionLabel: n.actionLabel ?
|
|
163
|
+
actionLabel: n.actionLabel ? B(n.actionLabel) : "",
|
|
164
164
|
inPackage: a,
|
|
165
165
|
references: c,
|
|
166
|
-
notInPackageLabel: n.notInPackageLabel ?
|
|
167
|
-
artisticIntroduction: n.artisticIntroductionLabel &&
|
|
168
|
-
url:
|
|
169
|
-
label:
|
|
166
|
+
notInPackageLabel: n.notInPackageLabel ? B(n.notInPackageLabel) : "",
|
|
167
|
+
artisticIntroduction: n.artisticIntroductionLabel && q(e) ? {
|
|
168
|
+
url: q(e),
|
|
169
|
+
label: B(n.artisticIntroductionLabel)
|
|
170
170
|
} : null,
|
|
171
171
|
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
172
172
|
glossary: n.glossary !== !1,
|
|
173
173
|
glossaryLabels: n.glossaryLabels ?? {},
|
|
174
174
|
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
175
|
-
dynastiesHeading:
|
|
175
|
+
dynastiesHeading: B(n.dynastiesHeading ?? "record.dynasty.list"),
|
|
176
176
|
media: n.media === !1 ? [] : e.media ?? [],
|
|
177
|
+
mediaGroups: n.mediaHeadings && n.media !== !1 ? ["audio", "video"].map((r) => ({
|
|
178
|
+
type: r,
|
|
179
|
+
heading: B(n.mediaHeadings[r]),
|
|
180
|
+
entries: (e.media ?? []).filter((e) => e?.url && e.type === r && (!e.language || !t.language || e.language === t.language))
|
|
181
|
+
})).filter((e) => e.entries.length) : null,
|
|
177
182
|
onDisplayIn: d,
|
|
178
183
|
database: f,
|
|
179
184
|
overallDatabase: p,
|
|
180
185
|
download: n.download === !1 ? null : {
|
|
181
|
-
label:
|
|
182
|
-
pdfLabel:
|
|
186
|
+
label: B("record.action.download"),
|
|
187
|
+
pdfLabel: B("record.action.downloadPdf")
|
|
183
188
|
}
|
|
184
189
|
};
|
|
185
190
|
}
|
|
186
|
-
let
|
|
187
|
-
let e = u(
|
|
191
|
+
let ze = R(), Be = f(() => {
|
|
192
|
+
let e = u(ze.chrome, "world.png");
|
|
188
193
|
return e ? { "--mwnf-dxa-glossary-image": `url("${e}")` } : null;
|
|
189
194
|
});
|
|
190
|
-
function
|
|
195
|
+
function Ve() {
|
|
191
196
|
window.print();
|
|
192
197
|
}
|
|
193
|
-
return (o, u) =>
|
|
198
|
+
return (o, u) => z.value ? (w(), p(l, {
|
|
194
199
|
key: 0,
|
|
195
|
-
spec:
|
|
200
|
+
spec: H.value,
|
|
196
201
|
id: i.id,
|
|
197
202
|
entity: i.entity,
|
|
198
|
-
style: C(
|
|
203
|
+
style: C(Be.value)
|
|
199
204
|
}, _({
|
|
200
|
-
"before-sheet": k((e) => [E(o.$slots, "before-sheet", S(b(e)), () => [(w(!0), h(d, null, T([
|
|
205
|
+
"before-sheet": k((e) => [E(o.$slots, "before-sheet", S(b(e)), () => [(w(!0), h(d, null, T([Z(e.record, e)], (t) => (w(), h(d, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (w(), h("div", oe, [t.source ? (w(), h("p", se, [t.source.chipClass ? (w(), h("span", {
|
|
201
206
|
key: 0,
|
|
202
207
|
class: x(["mwnf-chip", t.source.chipClass]),
|
|
203
208
|
"aria-hidden": "true"
|
|
204
|
-
}, null, 2)) : m("", !0), t.source.name ? (w(), h(d, { key: 1 }, [v(D(t.source.label) + ": " + D(t.source.name), 1)], 64)) : m("", !0)])) : m("", !0), t.addToCollectionLabel ? (w(), h("p",
|
|
209
|
+
}, null, 2)) : m("", !0), t.source.name ? (w(), h(d, { key: 1 }, [v(D(t.source.label) + ": " + D(t.source.name), 1)], 64)) : m("", !0)])) : m("", !0), t.addToCollectionLabel ? (w(), h("p", ce, [g("a", {
|
|
205
210
|
href: O(M).myCollection,
|
|
206
211
|
target: "_blank",
|
|
207
212
|
rel: "noopener"
|
|
208
|
-
}, "↗ " + D(t.addToCollectionLabel), 9,
|
|
209
|
-
museum: k((e) => [E(o.$slots, "museum", S(b(e)), () => [(w(!0), h(d, null, T([
|
|
213
|
+
}, "↗ " + D(t.addToCollectionLabel), 9, le)])) : m("", !0)])) : m("", !0), t?.notice ? (w(), h("div", ue, [v(D(t.notice) + " ", 1), g("strong", null, [g("em", null, D(e.languages.map((e) => e.label).join(", ")), 1)])])) : m("", !0)], 64))), 128))])]),
|
|
214
|
+
museum: k((e) => [E(o.$slots, "museum", S(b(e)), () => [(w(!0), h(d, null, T([Le(e)], (t) => (w(), h("div", de, [t.holder ? (w(), h("p", {
|
|
210
215
|
key: 0,
|
|
211
216
|
class: "mwnf-sheet-museum__holder",
|
|
212
217
|
innerHTML: t.holder
|
|
213
|
-
}, null, 8,
|
|
218
|
+
}, null, 8, fe)) : m("", !0), t.view ? (w(), p(c, {
|
|
214
219
|
key: 1,
|
|
215
220
|
variant: "summary",
|
|
216
221
|
partner: t.view,
|
|
@@ -218,9 +223,9 @@ var se = {
|
|
|
218
223
|
dir: e.dir
|
|
219
224
|
}, null, 8, ["partner", "dir"])) : m("", !0)]))), 128))])]),
|
|
220
225
|
related: k(() => []),
|
|
221
|
-
aside: k((i) => [E(o.$slots, "related", S(b(i)), () => [(w(!0), h(d, null, T([
|
|
222
|
-
o.title ? (w(), h("p",
|
|
223
|
-
o.description ? (w(), h("p",
|
|
226
|
+
aside: k((i) => [E(o.$slots, "related", S(b(i)), () => [(w(!0), h(d, null, T([Re(i.record, i)], (o) => (w(), h(d, { key: i.record?.id ?? "related" }, [o ? (w(), h("div", pe, [
|
|
227
|
+
o.title ? (w(), h("p", me, D(o.title), 1)) : m("", !0),
|
|
228
|
+
o.description ? (w(), h("p", he, D(o.description), 1)) : m("", !0),
|
|
224
229
|
o.inPackage.length || o.references.length ? (w(), p(s, {
|
|
225
230
|
key: 2,
|
|
226
231
|
heading: o.heading,
|
|
@@ -228,14 +233,14 @@ var se = {
|
|
|
228
233
|
variant: o.variant,
|
|
229
234
|
"action-label": o.actionLabel
|
|
230
235
|
}, {
|
|
231
|
-
default: k(() => [o.references.length ? (w(), h("ul",
|
|
236
|
+
default: k(() => [o.references.length ? (w(), h("ul", ge, [(w(!0), h(d, null, T(o.references, (e) => (w(), h("li", { key: e.id }, [
|
|
232
237
|
e.chipClass ? (w(), h("span", {
|
|
233
238
|
key: 0,
|
|
234
239
|
class: x(["mwnf-chip", e.chipClass]),
|
|
235
240
|
"aria-hidden": "true"
|
|
236
241
|
}, null, 2)) : m("", !0),
|
|
237
242
|
e.name ? (w(), h(d, { key: 1 }, [v(D(e.name), 1)], 64)) : m("", !0),
|
|
238
|
-
o.notInPackageLabel ? (w(), h("span",
|
|
243
|
+
o.notInPackageLabel ? (w(), h("span", _e, D(o.notInPackageLabel), 1)) : m("", !0)
|
|
239
244
|
]))), 128))])) : m("", !0)]),
|
|
240
245
|
_: 2
|
|
241
246
|
}, 1032, [
|
|
@@ -244,11 +249,11 @@ var se = {
|
|
|
244
249
|
"variant",
|
|
245
250
|
"action-label"
|
|
246
251
|
])) : m("", !0),
|
|
247
|
-
o.artisticIntroduction ? (w(), h("p",
|
|
252
|
+
o.artisticIntroduction ? (w(), h("p", ve, [g("a", {
|
|
248
253
|
href: o.artisticIntroduction.url,
|
|
249
254
|
target: "_blank",
|
|
250
255
|
rel: "noopener"
|
|
251
|
-
}, "↗ " + D(o.artisticIntroduction.label), 9,
|
|
256
|
+
}, "↗ " + D(o.artisticIntroduction.label), 9, ye)])) : m("", !0),
|
|
252
257
|
o.timeline ? (w(), p(r, {
|
|
253
258
|
key: i.record.id,
|
|
254
259
|
info: o.timeline
|
|
@@ -275,7 +280,18 @@ var se = {
|
|
|
275
280
|
"tr",
|
|
276
281
|
"dir"
|
|
277
282
|
])) : m("", !0),
|
|
278
|
-
|
|
283
|
+
o.mediaGroups ? (w(!0), h(d, { key: 7 }, T(o.mediaGroups, (e) => (w(), h("div", {
|
|
284
|
+
key: e.type,
|
|
285
|
+
class: x(["mwnf-sheet-related__media", `mwnf-sheet-related__media--${e.type}`])
|
|
286
|
+
}, [g("p", be, D(e.heading), 1), (w(!0), h(d, null, T(e.entries, (e) => (w(), h("p", {
|
|
287
|
+
key: e.url,
|
|
288
|
+
class: "mwnf-sheet-related__line"
|
|
289
|
+
}, [g("a", {
|
|
290
|
+
href: e.url,
|
|
291
|
+
target: "_blank",
|
|
292
|
+
rel: "noopener"
|
|
293
|
+
}, "↗ " + D(e.title || e.url), 9, xe)]))), 128))], 2))), 128)) : (w(), p(t, {
|
|
294
|
+
key: 8,
|
|
279
295
|
media: o.media,
|
|
280
296
|
language: i.language,
|
|
281
297
|
descriptions: !1,
|
|
@@ -284,8 +300,8 @@ var se = {
|
|
|
284
300
|
"media",
|
|
285
301
|
"language",
|
|
286
302
|
"dir"
|
|
287
|
-
]),
|
|
288
|
-
o.onDisplayIn?.groups.length ? (w(), h("div",
|
|
303
|
+
])),
|
|
304
|
+
o.onDisplayIn?.groups.length ? (w(), h("div", Se, [g("p", Ce, D(O(B)("record.related.onDisplayIn")), 1), y(a, {
|
|
289
305
|
heading: "",
|
|
290
306
|
groups: o.onDisplayIn.groups,
|
|
291
307
|
"pending-label": o.onDisplayIn.pendingLabel,
|
|
@@ -295,19 +311,19 @@ var se = {
|
|
|
295
311
|
"pending-label",
|
|
296
312
|
"dir"
|
|
297
313
|
])])) : m("", !0),
|
|
298
|
-
o.database ? (w(), h("div",
|
|
314
|
+
o.database ? (w(), h("div", we, [g("p", Te, D(o.database.label), 1), g("p", Ee, [g("a", {
|
|
299
315
|
href: o.database.url,
|
|
300
316
|
target: "_blank",
|
|
301
317
|
rel: "noopener"
|
|
302
|
-
}, "↗ " + D(o.database.name), 9,
|
|
303
|
-
o.overallDatabase ? (w(), h("div",
|
|
318
|
+
}, "↗ " + D(o.database.name), 9, De)])])) : m("", !0),
|
|
319
|
+
o.overallDatabase ? (w(), h("div", Oe, [g("p", ke, D(o.overallDatabase.label), 1), g("p", Ae, [g("a", {
|
|
304
320
|
href: O(M).overallDatabase,
|
|
305
321
|
target: "_blank",
|
|
306
322
|
rel: "noopener"
|
|
307
|
-
}, "↗ " + D(o.overallDatabase.linkLabel), 9,
|
|
308
|
-
o.download ? (w(), h("div",
|
|
323
|
+
}, "↗ " + D(o.overallDatabase.linkLabel), 9, je)])])) : m("", !0),
|
|
324
|
+
o.download ? (w(), h("div", Me, [g("p", Ne, D(o.download.label), 1), g("p", {
|
|
309
325
|
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
310
|
-
onClick:
|
|
326
|
+
onClick: Ve
|
|
311
327
|
}, "➤ " + D(o.download.pdfLabel), 1)])) : m("", !0)
|
|
312
328
|
])) : m("", !0)], 64))), 128))])]),
|
|
313
329
|
_: 2
|
|
@@ -321,8 +337,8 @@ var se = {
|
|
|
321
337
|
"style"
|
|
322
338
|
])) : (w(), p(O(te), { key: 1 }));
|
|
323
339
|
}
|
|
324
|
-
},
|
|
325
|
-
function
|
|
340
|
+
}, H = "mwnf-on-display__theme", U = (e) => N(e ?? ""), W = (e) => e?.titles?.en ?? Object.values(e?.titles ?? {})[0] ?? "", G = (e) => `<span class="${H}">${e}</span>`;
|
|
341
|
+
function K(e, t, n) {
|
|
326
342
|
return n && e.site === n ? {
|
|
327
343
|
id: e.path,
|
|
328
344
|
label: t,
|
|
@@ -334,21 +350,21 @@ function G(e, t, n) {
|
|
|
334
350
|
external: !0
|
|
335
351
|
};
|
|
336
352
|
}
|
|
337
|
-
function
|
|
353
|
+
function q(e) {
|
|
338
354
|
return e.toLowerCase().split(" ").filter((e) => ![
|
|
339
355
|
"a",
|
|
340
356
|
"an",
|
|
341
357
|
"the"
|
|
342
358
|
].includes(e)).join(" ");
|
|
343
359
|
}
|
|
344
|
-
function
|
|
360
|
+
function J(e, t, n = null) {
|
|
345
361
|
let r = e?.exhibition_references ?? [], i = [], a = r.filter((e) => e.list === "virtual" || e.list === "sharing_history");
|
|
346
362
|
a.length && i.push({
|
|
347
|
-
caption: a[0].project ?
|
|
348
|
-
links: a.map((e) =>
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
...e.subtheme ? [
|
|
363
|
+
caption: a[0].project ? U(a[0].project.name) : "",
|
|
364
|
+
links: a.map((e) => K(e, [
|
|
365
|
+
U(W(e.exhibition)),
|
|
366
|
+
G(U(W(e.theme))),
|
|
367
|
+
...e.subtheme ? [G(U(W(e.subtheme)))] : []
|
|
352
368
|
].join(" | "), n))
|
|
353
369
|
});
|
|
354
370
|
let o = r.filter((e) => e.list === "exhibition"), s = o.filter((e) => e.exhibition?.titles?.[t]), c = s.length ? {
|
|
@@ -357,9 +373,9 @@ function q(e, t, n = null) {
|
|
|
357
373
|
} : {
|
|
358
374
|
refs: o.filter((e) => e.exhibition?.titles?.en),
|
|
359
375
|
lang: "en"
|
|
360
|
-
}, l = (e) => e?.titles?.[c.lang] ?? e?.titles?.en ?? "", u = [...c.refs].sort((e, t) =>
|
|
376
|
+
}, l = (e) => e?.titles?.[c.lang] ?? e?.titles?.en ?? "", u = [...c.refs].sort((e, t) => q(l(e.exhibition)).localeCompare(q(l(t.exhibition)), "en", { sensitivity: "base" }) || (e.legacy_order?.[0] ?? 0) - (t.legacy_order?.[0] ?? 0));
|
|
361
377
|
for (let e of u) {
|
|
362
|
-
let t =
|
|
378
|
+
let t = U(l(e.exhibition)), r = K(e, `${U(l(e.theme))} | ${G(U(l(e.subtheme)))}`, n), a = i[i.length - 1];
|
|
363
379
|
a?.exhibition === e.exhibition.id ? a.links.push(r) : i.push({
|
|
364
380
|
exhibition: e.exhibition.id,
|
|
365
381
|
caption: t,
|
|
@@ -369,13 +385,13 @@ function q(e, t, n = null) {
|
|
|
369
385
|
return i;
|
|
370
386
|
}
|
|
371
387
|
// src/dxa/LegacyItemSheet.vue
|
|
372
|
-
var
|
|
388
|
+
var Y = { class: "mwnf-dxa-item__languages" }, X = ["dir"], Z = ["href"], Q = ["href"], $ = ["innerHTML"], Fe = ["innerHTML"], Ie = ["dir"], Le = { class: "mwnf-dxa-gallery-item__label" }, Re = {
|
|
373
389
|
key: "citation",
|
|
374
390
|
class: "mwnf-dxa-gallery-item__citation"
|
|
375
|
-
},
|
|
391
|
+
}, ze = { class: "mwnf-dxa-gallery-item__project" }, Be = { class: "mwnf-dxa-gallery-item__address" }, Ve = { class: "mwnf-dxa-gallery-item__credit-label" }, He = {
|
|
376
392
|
key: 1,
|
|
377
393
|
class: "mwnf-dxa-gallery-item__number"
|
|
378
|
-
},
|
|
394
|
+
}, Ue = { class: "mwnf-dxa-gallery-item__number-label" }, We = ["href"], Ge = {
|
|
379
395
|
__name: "LegacyItemSheet",
|
|
380
396
|
props: {
|
|
381
397
|
id: {
|
|
@@ -396,7 +412,7 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
396
412
|
}
|
|
397
413
|
},
|
|
398
414
|
setup(e) {
|
|
399
|
-
let t = e, { t: n } =
|
|
415
|
+
let t = e, { t: n } = ae(), r = B(), a = L(), s = I(), c = R(), l = f(() => ({
|
|
400
416
|
...t.itemDetail,
|
|
401
417
|
sourceDatabase: !1,
|
|
402
418
|
sourceCredit: !1,
|
|
@@ -410,12 +426,16 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
410
426
|
...t.itemDetail.related,
|
|
411
427
|
glossaryLabels: { tool: t.words.glossary },
|
|
412
428
|
dynastiesHeading: t.words.dynasties,
|
|
429
|
+
mediaHeadings: {
|
|
430
|
+
audio: t.words.relatedAudio,
|
|
431
|
+
video: t.words.relatedVideos
|
|
432
|
+
},
|
|
413
433
|
onDisplayIn: {
|
|
414
434
|
...t.itemDetail.related?.onDisplayIn,
|
|
415
435
|
exhibitionsHeading: t.words.exhibitions,
|
|
416
436
|
galleriesHeading: "core.project.galleries",
|
|
417
437
|
href: (e, t) => e.site ? P(e.site, `/item/${t.id}`) : e.legacy_host,
|
|
418
|
-
exhibitions: (e, t) =>
|
|
438
|
+
exhibitions: (e, t) => J(e, t.language, s.manifest?.site?.key)
|
|
419
439
|
}
|
|
420
440
|
}
|
|
421
441
|
}));
|
|
@@ -450,13 +470,13 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
450
470
|
holder: e.text?.holder ? j(String(e.text.holder)) : ""
|
|
451
471
|
};
|
|
452
472
|
}
|
|
453
|
-
return (t, r) => (w(), p(
|
|
473
|
+
return (t, r) => (w(), p(V, {
|
|
454
474
|
spec: l.value,
|
|
455
475
|
id: e.id,
|
|
456
476
|
"data-getter": e.dataGetter,
|
|
457
477
|
class: "mwnf-dxa-item mwnf-dxa-gallery-item"
|
|
458
478
|
}, {
|
|
459
|
-
header: k(({ languages: e, language: t, select: n }) => [g("div",
|
|
479
|
+
header: k(({ languages: e, language: t, select: n }) => [g("div", Y, [y(o, {
|
|
460
480
|
languages: e,
|
|
461
481
|
language: t,
|
|
462
482
|
from: 1,
|
|
@@ -477,15 +497,15 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
477
497
|
}, [r[0] ||= g("span", {
|
|
478
498
|
class: "mwnf-dxa-gallery-item__icon",
|
|
479
499
|
"aria-hidden": "true"
|
|
480
|
-
}, "↗", -1), g("bdi", null, [v(D(O(n)("record.source.label")) + " ", 1), g("span", null, "(" + D(_(u(e))) + ")", 1)])], 8,
|
|
500
|
+
}, "↗", -1), g("bdi", null, [v(D(O(n)("record.source.label")) + " ", 1), g("span", null, "(" + D(_(u(e))) + ")", 1)])], 8, Z)]), g("p", null, [g("a", {
|
|
481
501
|
href: O(M).myCollection,
|
|
482
502
|
target: "_blank",
|
|
483
503
|
rel: "noopener"
|
|
484
504
|
}, [r[1] ||= g("span", {
|
|
485
505
|
class: "mwnf-dxa-gallery-item__icon",
|
|
486
506
|
"aria-hidden": "true"
|
|
487
|
-
}, "↗", -1), v(D(O(n)("record.action.addToCollection")), 1)], 8,
|
|
488
|
-
museum: k((e) => [(w(!0), h(d, null, T([C(e)], (e) => (w(), h(d, { key: "museum" }, [e.to && e.holder ? (w(), p(O(
|
|
507
|
+
}, "↗", -1), v(D(O(n)("record.action.addToCollection")), 1)], 8, Q)])], 8, X)) : m("", !0)]),
|
|
508
|
+
museum: k((e) => [(w(!0), h(d, null, T([C(e)], (e) => (w(), h(d, { key: "museum" }, [e.to && e.holder ? (w(), p(O(z), {
|
|
489
509
|
key: 0,
|
|
490
510
|
to: e.to,
|
|
491
511
|
class: "mwnf-dxa-gallery-item__museum"
|
|
@@ -493,34 +513,34 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
493
513
|
default: k(() => [r[2] ||= g("span", {
|
|
494
514
|
class: "mwnf-dxa-gallery-item__icon",
|
|
495
515
|
"aria-hidden": "true"
|
|
496
|
-
}, "↗", -1), g("span", { innerHTML: e.holder }, null, 8,
|
|
516
|
+
}, "↗", -1), g("span", { innerHTML: e.holder }, null, 8, $)]),
|
|
497
517
|
_: 2
|
|
498
518
|
}, 1032, ["to"])) : e.holder ? (w(), h("span", {
|
|
499
519
|
key: 1,
|
|
500
520
|
innerHTML: e.holder
|
|
501
|
-
}, null, 8,
|
|
521
|
+
}, null, 8, Fe)) : m("", !0)], 64))), 128))]),
|
|
502
522
|
credits: k(({ record: t, credits: r, workingNumber: i, citation: a, dir: o }) => [t ? (w(), h("div", {
|
|
503
523
|
key: 0,
|
|
504
524
|
class: "mwnf-dxa-gallery-item__credits",
|
|
505
525
|
dir: o || void 0
|
|
506
526
|
}, [
|
|
507
|
-
a ? (w(), h(d, { key: 0 }, [g("p",
|
|
527
|
+
a ? (w(), h(d, { key: 0 }, [g("p", Le, D(O(n)("record.citation.ofThisPage")), 1), (w(!0), h(d, null, T([S(a, t)], (e) => (w(), h("p", Re, [
|
|
508
528
|
v(D(e.before), 1),
|
|
509
|
-
g("span",
|
|
529
|
+
g("span", ze, D(e.project), 1),
|
|
510
530
|
v(D(e.after) + " ", 1),
|
|
511
|
-
g("span",
|
|
531
|
+
g("span", Be, D(u(t)), 1)
|
|
512
532
|
]))), 128))], 64)) : m("", !0),
|
|
513
533
|
(w(!0), h(d, null, T(r, (e) => (w(), h("p", {
|
|
514
534
|
key: e.label,
|
|
515
535
|
class: "mwnf-dxa-gallery-item__credit"
|
|
516
|
-
}, [g("span",
|
|
517
|
-
i ? (w(), h("p",
|
|
536
|
+
}, [g("span", Ve, D(e.label), 1), g("span", null, D(e.value), 1)]))), 128)),
|
|
537
|
+
i ? (w(), h("p", He, [g("span", Ue, D(O(n)(e.words.workingNumber)), 1), v(D(" ") + D(i), 1)])) : m("", !0),
|
|
518
538
|
g("div", { class: x(["mwnf-dxa-gallery-item__source", b(t)]) }, [g("p", null, D(O(n)("record.source.label")), 1), g("p", null, [g("a", {
|
|
519
539
|
href: u(t),
|
|
520
540
|
target: "_blank",
|
|
521
541
|
rel: "noopener"
|
|
522
|
-
}, D(u(t)), 9,
|
|
523
|
-
], 8,
|
|
542
|
+
}, D(u(t)), 9, We)])], 2)
|
|
543
|
+
], 8, Ie)) : m("", !0)]),
|
|
524
544
|
_: 1
|
|
525
545
|
}, 8, [
|
|
526
546
|
"spec",
|
|
@@ -529,4 +549,4 @@ var J = { class: "mwnf-dxa-item__languages" }, Y = ["dir"], X = ["href"], Z = ["
|
|
|
529
549
|
]));
|
|
530
550
|
}
|
|
531
551
|
};
|
|
532
|
-
export {
|
|
552
|
+
export { V as n, Ge as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
|
|
2
|
-
import { O as t, d as n, j as r, u as i, v as a } from "./data-
|
|
3
|
-
import { n as o } from "./themeSpecs-
|
|
2
|
+
import { O as t, d as n, j as r, u as i, v as a } from "./data-CtYatYQi.js";
|
|
3
|
+
import { n as o } from "./themeSpecs-DePD36Wi.js";
|
|
4
4
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, nextTick as ee, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as te, onMounted as ne, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vModelCheckbox as re, watch as S, withCtx as C, withDirectives as ie } from "vue";
|
|
5
5
|
import { glossaryEntries as ae, glossaryTermsForText as oe, renderBlock as w, renderInline as T, useGlossaryPopup as se, useI18n as ce } from "@museumwnf/viewer-core";
|
|
6
6
|
import { RouterLink as E, useRoute as le, useRouter as ue } from "vue-router";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { n as e } from "./chrome-Bv_mLlHM.js";
|
|
2
|
+
import { t } from "./legacyFacets-CQw2NYL4.js";
|
|
3
|
+
import { partnerView as n, renderInline as r, useSiteConfig as i } from "@museumwnf/viewer-core";
|
|
4
|
+
import { useExhibitionCollection as a, useExhibitionData as o, useExhibitionItemDetail as s, useExhibitionPartner as c, useExhibitionThemes as l, useExhibitionTimeline as u } from "@museumwnf/viewer-core/dxa";
|
|
5
|
+
// src/dxa/exhibition/data.js
|
|
6
|
+
var d = o(), f = a(d), p = u(d, f), m = c(d), h = l(d), { itemDetail: g } = s(d, p), { defaultLang: _, tr: v, md: y, mdInline: b, mdStrip: ee, labelOf: x, loadEnglish: S, exhibition: C, relatedContent: w, items: T, itemById: E, countries: D, timelines: te, visiblePartners: O, visiblePartnerById: k, isHiddenPartner: A, itemRoute: j, partnerRoute: M, partnerObjectsRoute: N, countryLabelFromCode: P, exhibitionTitle: F, exhibitionSubtitle: I, exhibitionHeadline: ne, bannerCaption: L, projectName: R } = d;
|
|
7
|
+
function z(t, n = "hi_res") {
|
|
8
|
+
return e(i().chrome, t) ?? d.chromeImage(t, n);
|
|
9
|
+
}
|
|
10
|
+
var { haystack: B, tile: re, countryIdForCode: ie } = f, V = t(f.FACETS), H = {
|
|
11
|
+
...f.collectionResults,
|
|
12
|
+
facets: V
|
|
13
|
+
}, U = (e, t) => String(e ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
|
|
14
|
+
function W(e, t) {
|
|
15
|
+
let n = String(e ?? "").split(":"), r = String(t ?? "").split(":");
|
|
16
|
+
for (let e = 0; e < Math.max(n.length, r.length); e++) {
|
|
17
|
+
let t = n[e] ?? "", i = r[e] ?? "";
|
|
18
|
+
if (t !== i) return /^\d+$/.test(t) && /^\d+$/.test(i) ? Number(t) - Number(i) : t.localeCompare(i, "en");
|
|
19
|
+
}
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
function G(e, t) {
|
|
23
|
+
return U(x("countries", e.country_id), x("countries", t.country_id)) || U(x("partners", e.partner_id), x("partners", t.partner_id)) || W(e.backward_compatibility, t.backward_compatibility);
|
|
24
|
+
}
|
|
25
|
+
var K = {
|
|
26
|
+
pageSize: 20,
|
|
27
|
+
sort: {
|
|
28
|
+
undated: "first",
|
|
29
|
+
tiebreak: (e, t) => G(e, t)
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function q(e) {
|
|
33
|
+
let t = v("items", e.id, _), n = t.dates ?? "";
|
|
34
|
+
return {
|
|
35
|
+
id: e.id,
|
|
36
|
+
image: e.images?.[0]?.url ?? "",
|
|
37
|
+
imageAlt: x("items", e.id),
|
|
38
|
+
name: r(t.name ?? e.internal_name ?? ""),
|
|
39
|
+
date: n.length > 80 ? `${n.slice(0, 80)}...` : n,
|
|
40
|
+
partner: x("partners", e.partner_id),
|
|
41
|
+
place: [t.location, x("countries", e.country_id)].filter(Boolean).join(", "),
|
|
42
|
+
project: R(e, _) ?? "",
|
|
43
|
+
to: j(e)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var { hasTimeline: J, timelineSpec: Y, timelineGallerySpec: X } = p, { partnerListSpec: Z, partnerSheetSpec: Q } = m, $ = {
|
|
47
|
+
countryLabel: (e) => x("countries", e),
|
|
48
|
+
md: y,
|
|
49
|
+
mdInline: b,
|
|
50
|
+
route: M,
|
|
51
|
+
objectsRoute: N,
|
|
52
|
+
hidden: A
|
|
53
|
+
}, ae = {
|
|
54
|
+
spec: {
|
|
55
|
+
...Q,
|
|
56
|
+
media: () => [],
|
|
57
|
+
sourceCredit: !1
|
|
58
|
+
},
|
|
59
|
+
visible: (e) => !!k(e),
|
|
60
|
+
view: (e, t) => n(e, {
|
|
61
|
+
...v("partners", e.id, _),
|
|
62
|
+
...t
|
|
63
|
+
}, $),
|
|
64
|
+
labels: {
|
|
65
|
+
partner: {
|
|
66
|
+
objects: "exhibition.action.viewItems",
|
|
67
|
+
homepage: "exhibition.partner.homepage"
|
|
68
|
+
},
|
|
69
|
+
institution: {
|
|
70
|
+
objects: "exhibition.action.viewItems",
|
|
71
|
+
homepage: "exhibition.action.institutionHomepage"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
className: "mwnf-dxa-exhibition-profile",
|
|
75
|
+
media: {
|
|
76
|
+
thumbsFrom: 1,
|
|
77
|
+
creditCaption: !1
|
|
78
|
+
},
|
|
79
|
+
legacyMap: { label: "exhibition.partner.mapLabel" }
|
|
80
|
+
};
|
|
81
|
+
export { Y as A, ae as C, w as D, M as E, k as M, O as N, h as O, y as S, N as T, T as _, D as a, q as b, C as c, F as d, J as f, j as g, g as h, H as i, v as j, X as k, ne as l, E as m, L as n, P as o, B as p, z as r, _ as s, V as t, I as u, x as v, Z as w, S as x, K as y };
|