@museumwnf/viewer-layout 3.84.0 → 3.86.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 +1 -1
- package/dist/{LegacyItemSheet-YTByn-Aa.js → LegacyItemSheet-Bk-3fiQP.js} +75 -66
- package/dist/OnDisplayIn-Ct8xxMwQ.js +422 -0
- package/dist/content.js +1 -1
- package/dist/{data-CxiuR3R_.js → data-gT947pBe.js} +2 -2
- package/dist/dxa.js +602 -587
- package/dist/index.js +1 -1
- package/dist/minisite.js +472 -464
- package/dist/standalone.js +386 -377
- package/package.json +1 -1
- package/dist/OnDisplayIn-BH3Bqope.js +0 -418
package/README.md
CHANGED
|
@@ -812,7 +812,7 @@ the banners may each be given once or per language (`{ en, ar }`).
|
|
|
812
812
|
| --- | --- |
|
|
813
813
|
| `StandaloneShell` | `SiteShell` with legacy's chrome: the logo per language, the inner pages' centred heading and "Portal \| Home" links, the home page's picture banner, the inner pages' titled band (`navigation.sectionTitles`), the menu above or below the banner, the band above the footer on the home page, the copyright line with the year, a print-only logo. The page gets `.mwnf-standalone`, the scope of the family stylesheet |
|
|
814
814
|
| `StandaloneHome` | the home page's content: the side links and the record of the day, or a tile grid |
|
|
815
|
-
| `TodayHighlight` | legacy's "Today's highlight": the record for the day of the year from
|
|
815
|
+
| `TodayHighlight` | legacy's "Today's highlight": the record for the day of the year from the site's list (`highlight.list`: the records' inventory ids, or, for a site not moved yet, legacy's `home_items_img.txt` lines, found by legacy key), its picture and legacy's lines (`highlightRecord` in `standalone/chrome.js`) |
|
|
816
816
|
| `StandaloneItemSheet` | `RecordView` in legacy's three columns: the way back and the pictures; the sheet with its short-description toggle; the coloured Related Content column (`RelatedContent`), which takes the site's own blocks in its `sidebar` slot, then legacy's "See also" from the record's `travel_book` (Islamic Art's "Related MWNF Travel Book") and `exhibition_trails` (Baroque Art's trails), linked in the page's language (`related.seeAlso: false` leaves it out) |
|
|
817
817
|
| `StandaloneTextPage` | a text page in legacy's centred column: a Markdown entry, an optional drop cap, a "→" link and Print |
|
|
818
818
|
| `StandaloneSponsors` | the band above the footer, in columns of text, logos and links |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, guardReactiveProps as l, normalizeClass as u, normalizeProps as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useSlots as v, withCtx as y } from "vue";
|
|
2
2
|
import { RouterLink as b, useRoute as x } from "vue-router";
|
|
3
|
-
import { NotFoundView as S, byId as C, loadEntities as w, mdInline as T, mdStrip as E, mwnfLinks as D, partnerView as
|
|
4
|
-
import { i as
|
|
3
|
+
import { NotFoundView as S, byId as C, loadEntities as w, mdInline as T, mdStrip as E, mwnfLinks as D, partnerView as O, renderInline as k, siblingSiteUrl as A, sourceUrl as ee, useCatalogue as te, useDataPackage as ne, useI18n as j, useProjects as M, useSiteConfig as N } from "@museumwnf/viewer-core";
|
|
4
|
+
import { i as P, n as F, o as I, r as L, s as R, t as re } from "./OnDisplayIn-Ct8xxMwQ.js";
|
|
5
5
|
import { c as z, d as B, r as ie } from "./PartnerMap-DdyMLtgH.js";
|
|
6
6
|
import { n as ae } from "./TimelineEventList-CIkKxyQu.js";
|
|
7
7
|
import { t as oe } from "./RecordView-DAvWufWV.js";
|
|
@@ -112,16 +112,16 @@ var V = {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
setup(b) {
|
|
115
|
-
let x = b,
|
|
115
|
+
let x = b, k = v(), A = /* @__PURE__ */ new Set([
|
|
116
116
|
"before-sheet",
|
|
117
117
|
"museum",
|
|
118
118
|
"related",
|
|
119
119
|
"aside"
|
|
120
|
-
]),
|
|
120
|
+
]), ee = t(() => Object.keys(k).filter((e) => !A.has(e))), te = t(() => !x.dataGetter || x.dataGetter(x.id) != null), { t: R } = j();
|
|
121
121
|
function z(e) {
|
|
122
122
|
if (typeof e != "string" || !e.startsWith(Be)) return e;
|
|
123
123
|
let t = `sheet.dxa.${e.slice(12)}`;
|
|
124
|
-
return
|
|
124
|
+
return R(t) === t ? e : t;
|
|
125
125
|
}
|
|
126
126
|
let B = t(() => {
|
|
127
127
|
let e = Array.isArray(x.spec.fields) ? {
|
|
@@ -138,7 +138,7 @@ var V = {
|
|
|
138
138
|
inline: !1
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
}), V =
|
|
141
|
+
}), V = M(), H = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), U = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(H), W = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(H), G = (e) => V.links(e.project_id)?.artisticIntroductionUrl ?? null, K = (e) => V.links(e.project_id)?.relatedDatabaseUrl ?? null, ce = {
|
|
142
142
|
"islamicart.museumwnf.org": "core.project.islamicArt",
|
|
143
143
|
"baroqueart.museumwnf.org": "core.project.baroqueArt",
|
|
144
144
|
"sharinghistory.museumwnf.org": "core.project.sharingHistory"
|
|
@@ -146,7 +146,7 @@ var V = {
|
|
|
146
146
|
function le(e) {
|
|
147
147
|
try {
|
|
148
148
|
let t = ce[new URL(K(e)).host];
|
|
149
|
-
if (t) return
|
|
149
|
+
if (t) return R(t);
|
|
150
150
|
} catch {}
|
|
151
151
|
return V.label(e.project_id);
|
|
152
152
|
}
|
|
@@ -158,17 +158,17 @@ var V = {
|
|
|
158
158
|
(i || a) && (r = {
|
|
159
159
|
chipClass: i,
|
|
160
160
|
name: a,
|
|
161
|
-
label:
|
|
161
|
+
label: R(n.label ?? "record.sheet.sourceDatabase")
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
let i = n && n.addToCollection !== !1 ?
|
|
164
|
+
let i = n && n.addToCollection !== !1 ? R(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = B.value.notice === !1 ? null : B.value.notice ?? null, o = a && a.show(e, t) ? R(a.label) : null;
|
|
165
165
|
return {
|
|
166
166
|
source: r,
|
|
167
167
|
addToCollectionLabel: i,
|
|
168
168
|
notice: o
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
let q =
|
|
171
|
+
let q = ne(), Ve = C("partners"), J = C("countries");
|
|
172
172
|
w(["partners", "countries"]), q.loadTranslations("countries", "en");
|
|
173
173
|
function Y(e, t) {
|
|
174
174
|
let n = q.tr("countries", e, t, "en");
|
|
@@ -178,7 +178,7 @@ var V = {
|
|
|
178
178
|
let t = e.text?.holder ? T(String(e.text.holder)) : "", n = B.value.museum === !1 ? null : B.value.museum ?? null, r = n ? Ve.value?.get(e.record?.partner_id) : null;
|
|
179
179
|
return {
|
|
180
180
|
holder: t,
|
|
181
|
-
view: r ?
|
|
181
|
+
view: r ? O(r, q.tr("partners", r.id, e.language, "en"), {
|
|
182
182
|
countryLabel: (t) => Y(t, e.language),
|
|
183
183
|
route: (t) => n.route ? n.route(t.id, e) : null
|
|
184
184
|
}) : null
|
|
@@ -209,11 +209,11 @@ var V = {
|
|
|
209
209
|
}].filter((e) => (e.sections ?? [e]).some((e) => e.links?.length))
|
|
210
210
|
} : null, d = n.databaseLabel && K(e) ? {
|
|
211
211
|
url: K(e),
|
|
212
|
-
label:
|
|
212
|
+
label: R(n.databaseLabel),
|
|
213
213
|
name: le(e)
|
|
214
214
|
} : null, f = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
215
|
-
label:
|
|
216
|
-
linkLabel:
|
|
215
|
+
label: R(n.overallDatabase.label),
|
|
216
|
+
linkLabel: R(n.overallDatabase.linkLabel)
|
|
217
217
|
} : null, p = n.objectTiles ? n.objectTiles({
|
|
218
218
|
record: e,
|
|
219
219
|
inPackage: a,
|
|
@@ -221,49 +221,49 @@ var V = {
|
|
|
221
221
|
ctx: t
|
|
222
222
|
}) : null, m = !!(p && n.monumentsHeading);
|
|
223
223
|
return {
|
|
224
|
-
title: n.title ?
|
|
225
|
-
description: n.description ?
|
|
226
|
-
heading:
|
|
224
|
+
title: n.title ? R(n.title) : "",
|
|
225
|
+
description: n.description ? R(n.description) : "",
|
|
226
|
+
heading: R(n.heading ?? "record.related.items"),
|
|
227
227
|
tiles: m ? p.filter((e) => e.kind !== "monument") : p,
|
|
228
|
-
monumentsHeading: m ?
|
|
228
|
+
monumentsHeading: m ? R(n.monumentsHeading) : "",
|
|
229
229
|
monumentTiles: m ? p.filter((e) => e.kind === "monument") : [],
|
|
230
230
|
variant: n.variant ?? "grid",
|
|
231
|
-
actionLabel: n.actionLabel ?
|
|
231
|
+
actionLabel: n.actionLabel ? R(n.actionLabel) : "",
|
|
232
232
|
inPackage: a,
|
|
233
233
|
references: s,
|
|
234
|
-
notInPackageLabel: n.notInPackageLabel ?
|
|
234
|
+
notInPackageLabel: n.notInPackageLabel ? R(n.notInPackageLabel) : "",
|
|
235
235
|
artisticIntroduction: n.artisticIntroductionLabel && G(e) ? {
|
|
236
236
|
url: G(e),
|
|
237
|
-
label:
|
|
237
|
+
label: R(n.artisticIntroductionLabel)
|
|
238
238
|
} : null,
|
|
239
239
|
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
240
240
|
glossary: n.glossary !== !1,
|
|
241
241
|
glossaryLabels: n.glossaryLabels ?? {},
|
|
242
242
|
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
243
|
-
dynastiesHeading:
|
|
243
|
+
dynastiesHeading: R(n.dynastiesHeading ?? "record.dynasty.list"),
|
|
244
244
|
media: n.media === !1 ? [] : e.media ?? [],
|
|
245
245
|
mediaGroups: n.mediaHeadings && n.media !== !1 ? ["audio", "video"].map((r) => ({
|
|
246
246
|
type: r,
|
|
247
|
-
heading:
|
|
247
|
+
heading: R(n.mediaHeadings[r]),
|
|
248
248
|
entries: (e.media ?? []).filter((e) => e?.url && e.type === r && (!e.language || !t.language || e.language === t.language))
|
|
249
249
|
})).filter((e) => e.entries.length) : null,
|
|
250
250
|
onDisplayIn: u,
|
|
251
251
|
database: d,
|
|
252
252
|
overallDatabase: f,
|
|
253
253
|
download: n.download === !1 ? null : {
|
|
254
|
-
label:
|
|
255
|
-
pdfLabel:
|
|
254
|
+
label: R("record.action.download"),
|
|
255
|
+
pdfLabel: R("record.action.downloadPdf")
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
let Q =
|
|
259
|
+
let Q = N(), $ = t(() => {
|
|
260
260
|
let e = se(Q.chrome, "world.png");
|
|
261
261
|
return e ? { "--mwnf-dxa-glossary-image": `url("${e}")` } : null;
|
|
262
262
|
});
|
|
263
263
|
function He() {
|
|
264
264
|
window.print();
|
|
265
265
|
}
|
|
266
|
-
return (t, v) =>
|
|
266
|
+
return (t, v) => te.value ? (p(), n(oe, {
|
|
267
267
|
key: 0,
|
|
268
268
|
spec: B.value,
|
|
269
269
|
id: b.id,
|
|
@@ -331,11 +331,11 @@ var V = {
|
|
|
331
331
|
target: "_blank",
|
|
332
332
|
rel: "noopener"
|
|
333
333
|
}, "↗ " + g(t.artisticIntroduction.label), 9, Te)])) : r("", !0),
|
|
334
|
-
t.timeline ? (p(), n(
|
|
334
|
+
t.timeline ? (p(), n(L, {
|
|
335
335
|
key: o.record.id,
|
|
336
336
|
info: t.timeline
|
|
337
337
|
}, null, 8, ["info"])) : r("", !0),
|
|
338
|
-
t.glossary ? (p(), n(
|
|
338
|
+
t.glossary ? (p(), n(I, {
|
|
339
339
|
key: 7,
|
|
340
340
|
language: o.language,
|
|
341
341
|
labels: t.glossaryLabels,
|
|
@@ -345,7 +345,7 @@ var V = {
|
|
|
345
345
|
"labels",
|
|
346
346
|
"dir"
|
|
347
347
|
])) : r("", !0),
|
|
348
|
-
t.dynasties?.records?.length ? (p(), n(
|
|
348
|
+
t.dynasties?.records?.length ? (p(), n(P, {
|
|
349
349
|
key: 8,
|
|
350
350
|
heading: t.dynastiesHeading,
|
|
351
351
|
dynasties: t.dynasties.records,
|
|
@@ -367,7 +367,7 @@ var V = {
|
|
|
367
367
|
href: e.url,
|
|
368
368
|
target: "_blank",
|
|
369
369
|
rel: "noopener"
|
|
370
|
-
}, "↗ " + g(e.title || e.url), 9, De)]))), 128))], 2))), 128)) : (p(), n(
|
|
370
|
+
}, "↗ " + g(e.title || e.url), 9, De)]))), 128))], 2))), 128)) : (p(), n(F, {
|
|
371
371
|
key: 10,
|
|
372
372
|
media: t.media,
|
|
373
373
|
language: o.language,
|
|
@@ -378,7 +378,7 @@ var V = {
|
|
|
378
378
|
"language",
|
|
379
379
|
"dir"
|
|
380
380
|
])),
|
|
381
|
-
t.onDisplayIn?.groups.length ? (p(), i("div", Oe, [a("p", ke, g(_(
|
|
381
|
+
t.onDisplayIn?.groups.length ? (p(), i("div", Oe, [a("p", ke, g(_(R)("record.related.onDisplayIn")), 1), c(re, {
|
|
382
382
|
heading: "",
|
|
383
383
|
groups: t.onDisplayIn.groups,
|
|
384
384
|
"pending-label": t.onDisplayIn.pendingLabel,
|
|
@@ -404,7 +404,7 @@ var V = {
|
|
|
404
404
|
}, "➤ " + g(t.download.pdfLabel), 1)])) : r("", !0)
|
|
405
405
|
])) : r("", !0)], 64))), 128))])]),
|
|
406
406
|
_: 2
|
|
407
|
-
}, [m(
|
|
407
|
+
}, [m(ee.value, (e) => ({
|
|
408
408
|
name: e,
|
|
409
409
|
fn: y((n) => [h(t.$slots, e, d(l(n)))])
|
|
410
410
|
}))]), 1032, [
|
|
@@ -414,7 +414,7 @@ var V = {
|
|
|
414
414
|
"style"
|
|
415
415
|
])) : (p(), n(_(S), { key: 1 }));
|
|
416
416
|
}
|
|
417
|
-
}, Ve = "mwnf-on-display__theme", J = (e) =>
|
|
417
|
+
}, Ve = "mwnf-on-display__theme", J = (e) => k(e ?? ""), Y = (e) => e?.titles?.en ?? Object.values(e?.titles ?? {})[0] ?? "", X = (e) => `<span class="${Ve}">${e}</span>`;
|
|
418
418
|
function Z(e, t, n) {
|
|
419
419
|
return n && e.site === n ? {
|
|
420
420
|
id: e.path,
|
|
@@ -423,7 +423,7 @@ function Z(e, t, n) {
|
|
|
423
423
|
} : {
|
|
424
424
|
id: `${e.site}${e.path}`,
|
|
425
425
|
label: t,
|
|
426
|
-
href: e.url ??
|
|
426
|
+
href: e.url ?? A(e.site, e.path),
|
|
427
427
|
external: !0
|
|
428
428
|
};
|
|
429
429
|
}
|
|
@@ -463,20 +463,27 @@ function He(e, t, n = null) {
|
|
|
463
463
|
return i;
|
|
464
464
|
}
|
|
465
465
|
function Ue(e, t) {
|
|
466
|
-
return e?.item_url ? e.item_url : e?.site ?
|
|
466
|
+
return e?.item_url ? e.item_url : e?.site ? A(e.site, `/item/${t.id}`) : e?.legacy_host;
|
|
467
467
|
}
|
|
468
468
|
// src/dxa/relatedKind.js
|
|
469
469
|
function We(e, t) {
|
|
470
470
|
return (e?.type ?? t?.get(e?.id)?.type) === "monument" ? "monument" : "object";
|
|
471
471
|
}
|
|
472
|
+
// src/dxa/homeLinks.js
|
|
473
|
+
function Ge(e, { homeSite: t, siteKey: n } = {}) {
|
|
474
|
+
return e && "source_url" in e ? e.source_url ?? null : t && t !== n ? A(t, `/item/${e.id}`) : null;
|
|
475
|
+
}
|
|
476
|
+
function Ke(e, t) {
|
|
477
|
+
return "url" in e ? e.url ?? "" : t ? A(t, `/item/${e.id}`) : "";
|
|
478
|
+
}
|
|
472
479
|
// src/dxa/LegacyItemSheet.vue
|
|
473
|
-
var
|
|
480
|
+
var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe = ["href"], Ze = ["innerHTML"], Qe = ["innerHTML"], $e = ["dir"], et = { class: "mwnf-dxa-gallery-item__label" }, tt = {
|
|
474
481
|
key: "citation",
|
|
475
482
|
class: "mwnf-dxa-gallery-item__citation"
|
|
476
|
-
},
|
|
483
|
+
}, nt = { class: "mwnf-dxa-gallery-item__project" }, rt = { class: "mwnf-dxa-gallery-item__address" }, it = { class: "mwnf-dxa-gallery-item__credit-label" }, at = {
|
|
477
484
|
key: 1,
|
|
478
485
|
class: "mwnf-dxa-gallery-item__number"
|
|
479
|
-
},
|
|
486
|
+
}, ot = { class: "mwnf-dxa-gallery-item__number-label" }, st = ["href"], ct = {
|
|
480
487
|
__name: "LegacyItemSheet",
|
|
481
488
|
props: {
|
|
482
489
|
id: {
|
|
@@ -497,8 +504,8 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
497
504
|
}
|
|
498
505
|
},
|
|
499
506
|
setup(o) {
|
|
500
|
-
let l = o, { t: d } =
|
|
501
|
-
function
|
|
507
|
+
let l = o, { t: d } = j(), f = x(), h = M(), v = ne(), S = N(), C = te(), w = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
|
|
508
|
+
function O({ record: e, inPackage: t, references: n, ctx: r }) {
|
|
502
509
|
let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => E(w(a.get(e)?.justifications, i)), s = (e) => We(a.get(e) ?? { id: e }, C.itemById.value), c = (e) => (e ?? "").replace(/\.$/, ""), l = t.map((e) => ({
|
|
503
510
|
id: e.id,
|
|
504
511
|
kind: s(e.id),
|
|
@@ -516,12 +523,12 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
516
523
|
name: c(T(w(e.names, i))),
|
|
517
524
|
country: C.countryLabel(e.country_id),
|
|
518
525
|
justification: o(e.id),
|
|
519
|
-
href:
|
|
526
|
+
href: Ke(e, t)
|
|
520
527
|
};
|
|
521
528
|
}), d = (e.related_items ?? []).map((e) => e.id);
|
|
522
529
|
return [...l, ...u].sort((e, t) => d.indexOf(e.id) - d.indexOf(t.id));
|
|
523
530
|
}
|
|
524
|
-
let
|
|
531
|
+
let k = t(() => ({
|
|
525
532
|
...l.itemDetail,
|
|
526
533
|
sourceDatabase: !1,
|
|
527
534
|
sourceCredit: !1,
|
|
@@ -541,7 +548,7 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
541
548
|
},
|
|
542
549
|
...l.words.relatedObjects ? {
|
|
543
550
|
heading: l.words.relatedObjects,
|
|
544
|
-
objectTiles:
|
|
551
|
+
objectTiles: O
|
|
545
552
|
} : {},
|
|
546
553
|
...l.words.relatedMonuments ? { monumentsHeading: l.words.relatedMonuments } : {},
|
|
547
554
|
onDisplayIn: {
|
|
@@ -553,9 +560,11 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
553
560
|
}
|
|
554
561
|
}
|
|
555
562
|
}));
|
|
556
|
-
function
|
|
557
|
-
|
|
558
|
-
|
|
563
|
+
function A(e) {
|
|
564
|
+
return Ge(e, {
|
|
565
|
+
homeSite: h.links(e?.project_id)?.homeSite,
|
|
566
|
+
siteKey: v.manifest?.site?.key
|
|
567
|
+
}) ?? ee(f);
|
|
559
568
|
}
|
|
560
569
|
function P(e) {
|
|
561
570
|
try {
|
|
@@ -578,19 +587,19 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
578
587
|
after: e.slice(r + 1 + n.length)
|
|
579
588
|
};
|
|
580
589
|
}
|
|
581
|
-
function
|
|
590
|
+
function L(e) {
|
|
582
591
|
return {
|
|
583
592
|
to: l.itemDetail.museum?.route?.(e.record?.partner_id) ?? null,
|
|
584
593
|
holder: e.text?.holder ? T(String(e.text.holder)) : ""
|
|
585
594
|
};
|
|
586
595
|
}
|
|
587
596
|
return (t, l) => (p(), n(q, {
|
|
588
|
-
spec:
|
|
597
|
+
spec: k.value,
|
|
589
598
|
id: o.id,
|
|
590
599
|
"data-getter": o.dataGetter,
|
|
591
600
|
class: "mwnf-dxa-item mwnf-dxa-gallery-item"
|
|
592
601
|
}, {
|
|
593
|
-
header: y(({ languages: e, language: t, select: n }) => [a("div",
|
|
602
|
+
header: y(({ languages: e, language: t, select: n }) => [a("div", qe, [c(z, {
|
|
594
603
|
languages: e,
|
|
595
604
|
language: t,
|
|
596
605
|
from: 1,
|
|
@@ -599,27 +608,27 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
599
608
|
"languages",
|
|
600
609
|
"language",
|
|
601
610
|
"onSelect"
|
|
602
|
-
])]), c(
|
|
611
|
+
])]), c(R)]),
|
|
603
612
|
"after-media": y(({ record: e, dir: t }) => [e ? (p(), i("div", {
|
|
604
613
|
key: 0,
|
|
605
614
|
class: "mwnf-dxa-gallery-item__links",
|
|
606
615
|
dir: t || void 0
|
|
607
616
|
}, [a("p", null, [a("a", {
|
|
608
|
-
href:
|
|
617
|
+
href: A(e),
|
|
609
618
|
target: "_blank",
|
|
610
619
|
rel: "noopener"
|
|
611
620
|
}, [l[0] ||= a("span", {
|
|
612
621
|
class: "mwnf-dxa-gallery-item__icon",
|
|
613
622
|
"aria-hidden": "true"
|
|
614
|
-
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(P(
|
|
623
|
+
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(P(A(e))) + ")", 1)])], 8, Ye)]), a("p", null, [a("a", {
|
|
615
624
|
href: _(D).myCollection,
|
|
616
625
|
target: "_blank",
|
|
617
626
|
rel: "noopener"
|
|
618
627
|
}, [l[1] ||= a("span", {
|
|
619
628
|
class: "mwnf-dxa-gallery-item__icon",
|
|
620
629
|
"aria-hidden": "true"
|
|
621
|
-
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8,
|
|
622
|
-
museum: y((t) => [(p(!0), i(e, null, m([
|
|
630
|
+
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8, Xe)])], 8, Je)) : r("", !0)]),
|
|
631
|
+
museum: y((t) => [(p(!0), i(e, null, m([L(t)], (t) => (p(), i(e, { key: "museum" }, [t.to && t.holder ? (p(), n(_(b), {
|
|
623
632
|
key: 0,
|
|
624
633
|
to: t.to,
|
|
625
634
|
class: "mwnf-dxa-gallery-item__museum"
|
|
@@ -627,34 +636,34 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
627
636
|
default: y(() => [l[2] ||= a("span", {
|
|
628
637
|
class: "mwnf-dxa-gallery-item__icon",
|
|
629
638
|
"aria-hidden": "true"
|
|
630
|
-
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8,
|
|
639
|
+
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8, Ze)]),
|
|
631
640
|
_: 2
|
|
632
641
|
}, 1032, ["to"])) : t.holder ? (p(), i("span", {
|
|
633
642
|
key: 1,
|
|
634
643
|
innerHTML: t.holder
|
|
635
|
-
}, null, 8,
|
|
644
|
+
}, null, 8, Qe)) : r("", !0)], 64))), 128))]),
|
|
636
645
|
credits: y(({ record: t, credits: n, workingNumber: c, citation: l, dir: f }) => [t ? (p(), i("div", {
|
|
637
646
|
key: 0,
|
|
638
647
|
class: "mwnf-dxa-gallery-item__credits",
|
|
639
648
|
dir: f || void 0
|
|
640
649
|
}, [
|
|
641
|
-
l ? (p(), i(e, { key: 0 }, [a("p",
|
|
650
|
+
l ? (p(), i(e, { key: 0 }, [a("p", et, g(_(d)("record.citation.ofThisPage")), 1), (p(!0), i(e, null, m([I(l, t)], (e) => (p(), i("p", tt, [
|
|
642
651
|
s(g(e.before), 1),
|
|
643
|
-
a("span",
|
|
652
|
+
a("span", nt, g(e.project), 1),
|
|
644
653
|
s(g(e.after) + " ", 1),
|
|
645
|
-
a("span",
|
|
654
|
+
a("span", rt, g(A(t)), 1)
|
|
646
655
|
]))), 128))], 64)) : r("", !0),
|
|
647
656
|
(p(!0), i(e, null, m(n, (e) => (p(), i("p", {
|
|
648
657
|
key: e.label,
|
|
649
658
|
class: "mwnf-dxa-gallery-item__credit"
|
|
650
|
-
}, [a("span",
|
|
651
|
-
c ? (p(), i("p",
|
|
659
|
+
}, [a("span", it, g(e.label), 1), a("span", null, g(e.value), 1)]))), 128)),
|
|
660
|
+
c ? (p(), i("p", at, [a("span", ot, g(_(d)(o.words.workingNumber)), 1), s(g(" ") + g(c), 1)])) : r("", !0),
|
|
652
661
|
a("div", { class: u(["mwnf-dxa-gallery-item__source", F(t)]) }, [a("p", null, g(_(d)("record.source.label")), 1), a("p", null, [a("a", {
|
|
653
|
-
href:
|
|
662
|
+
href: A(t),
|
|
654
663
|
target: "_blank",
|
|
655
664
|
rel: "noopener"
|
|
656
|
-
}, g(
|
|
657
|
-
], 8,
|
|
665
|
+
}, g(A(t)), 9, st)])], 2)
|
|
666
|
+
], 8, $e)) : r("", !0)]),
|
|
658
667
|
_: 1
|
|
659
668
|
}, 8, [
|
|
660
669
|
"spec",
|
|
@@ -663,4 +672,4 @@ var Ge = { class: "mwnf-dxa-item__languages" }, Ke = ["dir"], qe = ["href"], Je
|
|
|
663
672
|
]));
|
|
664
673
|
}
|
|
665
674
|
};
|
|
666
|
-
export { q as n,
|
|
675
|
+
export { q as n, ct as t };
|