@museumwnf/viewer-layout 3.14.0 → 3.16.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 +60 -14
- package/dist/minisite.js +1511 -843
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -775,9 +775,11 @@ in `style.css`, so a site imports nothing more.
|
|
|
775
775
|
|
|
776
776
|
`@museumwnf/viewer-layout/minisite` is the family layer of the mini-sites:
|
|
777
777
|
legacy's virtual exhibitions, each a website of its own (inventory-app#2359).
|
|
778
|
-
Every one of
|
|
779
|
-
`exhibitions/ISL/generic_*.php
|
|
780
|
-
and a change to how a page is drawn reaches every
|
|
778
|
+
Every one of Discover Islamic Art's ran on the same pages
|
|
779
|
+
(`exhibitions/ISL/generic_*.php`), so every page, rule and window is here once,
|
|
780
|
+
and a change to how a page is drawn reaches every one of them. Discover Baroque
|
|
781
|
+
Art's and Sharing History's are products of their own, with pages of their own
|
|
782
|
+
(below). What is an
|
|
781
783
|
exhibition's own stays in its repository: its settings (`minisite`), its
|
|
782
784
|
theme (`theme/tokens.css`), its legacy pictures and its texts.
|
|
783
785
|
|
|
@@ -827,17 +829,6 @@ export default {
|
|
|
827
829
|
`legacy/bg_fading_left.gif`, `legacy/bg_fading_right.gif`,
|
|
828
830
|
`legacy/ico_item(_selected).gif`, `legacy/print_dark.gif`,
|
|
829
831
|
`legacy/arrow_inner_black.gif`), plus the logos and maps the settings name.
|
|
830
|
-
- **Two families**: Discover Islamic Art's exhibitions (the default) and
|
|
831
|
-
Discover Baroque Art's (`family: 'BAR'`, given to both `minisiteNavigation`
|
|
832
|
-
and `minisiteSettings`). Each family reads a label set of its own from
|
|
833
|
-
viewer-i18n — `minisite`, and `minisiteBaroque` (viewer-i18n 6.3) — named
|
|
834
|
-
alike. Baroque Art's pages print an artist and a material line, show a
|
|
835
|
-
placement's detail views (`details`) as its views, captioned from their own
|
|
836
|
-
text, the first view's and the detail they show (`detailViewCaption`), and
|
|
837
|
-
draw its home band: who curated the exhibition (its `credits` text), the
|
|
838
|
-
partner institutions (`partnerListHref`), each curator named over its logo
|
|
839
|
-
(`place`, `country`), and the designer (`design`). Its menu has no Artistic
|
|
840
|
-
Introduction and no bars, and its footer links the language policy.
|
|
841
832
|
- **The theme**: `minisite.css` reads `--minisite-*` tokens for every value an
|
|
842
833
|
exhibition's stylesheet set — colours, fonts and the positions of its titles,
|
|
843
834
|
menus and links on its pictures, the Arabic ones under `[dir='rtl']`.
|
|
@@ -849,6 +840,61 @@ export default {
|
|
|
849
840
|
curator legacy named itself (`{ name, country, href, logo, space }`).
|
|
850
841
|
- **The texts** are viewer-i18n's `minisite` bundle (class `minisite`).
|
|
851
842
|
|
|
843
|
+
### Discover Baroque Art's mini-sites
|
|
844
|
+
|
|
845
|
+
Discover Baroque Art's virtual exhibitions are a product of their own, on
|
|
846
|
+
pages of their own (legacy's `exhibitions/BAR/generic_*.php`), with their own
|
|
847
|
+
frame, caption rules and stylesheet (`src/minisite/baroqueart/`,
|
|
848
|
+
`minisite-baroqueart.css`, classes `mwnf-baroqueart-*`). They share with every
|
|
849
|
+
mini-site only how it reads its records, the order of its pages, which record a
|
|
850
|
+
view opens, the tooltip and the Word document, so a change to another family's
|
|
851
|
+
pages never reaches them. Their exports are named `Baroqueart*` / `baroqueart*`,
|
|
852
|
+
and their sites are created from `baroqueart-minisite-template`.
|
|
853
|
+
|
|
854
|
+
```js
|
|
855
|
+
import {
|
|
856
|
+
BAROQUEART_NO_COUNTRY, BaroqueartHome, baroqueartNavigation, baroqueartRoutes, baroqueartSettings, BaroqueartShell,
|
|
857
|
+
} from '@museumwnf/viewer-layout/minisite'
|
|
858
|
+
|
|
859
|
+
const parent = 'https://museumwithnofrontiers.github.io/baroqueart'
|
|
860
|
+
|
|
861
|
+
export default {
|
|
862
|
+
// …datasetPackage, siteName, site, features, languages, chrome…
|
|
863
|
+
shell: BaroqueartShell,
|
|
864
|
+
navigation: baroqueartNavigation({ languages: languageLabels(languages), parent }),
|
|
865
|
+
minisite: baroqueartSettings({
|
|
866
|
+
parent,
|
|
867
|
+
menuSecondColumnFrom: 7,
|
|
868
|
+
curators: [{ partner: '<uuid>', place: 'Brno', country: 'cze', logo: 'legacy/CZ-46.png', space: 35 }],
|
|
869
|
+
design: { name: 'Yasar University Izmir, Turkey', logo: 'legacy/yasar.png', href: 'http://www.yasar.edu.tr/en/' },
|
|
870
|
+
banner: 'legacy/banner.png',
|
|
871
|
+
noCountry: BAROQUEART_NO_COUNTRY,
|
|
872
|
+
documentTitle: 'MWNF DISCOVER BAROQUE ART - Exhibition',
|
|
873
|
+
}),
|
|
874
|
+
views: { home: BaroqueartHome },
|
|
875
|
+
extraViews: baroqueartRoutes(sectionMeta()),
|
|
876
|
+
}
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
- **Routes** (`baroqueartRoutes`): `home`, `introduction`, `exhibition`
|
|
880
|
+
(`/exhibition/<theme>/<page>`) and the `zoom` window, marked `meta.bare`.
|
|
881
|
+
Legacy linked no credits window and drew no map for these exhibitions.
|
|
882
|
+
- **The captions** (`baroqueartCaption`): the page's own text first, the
|
|
883
|
+
record's own otherwise, and under the place an artist line (an object's
|
|
884
|
+
artist, a monument's architects) and a material line. A placement's detail
|
|
885
|
+
views (`details`) are its views (`baroqueartSlotsOf`), captioned from their
|
|
886
|
+
own text, the first view's and the detail they show
|
|
887
|
+
(`baroqueartDetailViewCaption`); a view never takes the first view's
|
|
888
|
+
detail name (`baroqueartWithFirstView`).
|
|
889
|
+
- **The home band**: who curated the exhibition (its `credits` text), the
|
|
890
|
+
partner institutions (`partnerListHref`), each curator named over its logo
|
|
891
|
+
with the city and country legacy wrote after it (`place`, `country`), and
|
|
892
|
+
the designer (`design`); the home picture (`banner`) sits against the footer.
|
|
893
|
+
- **The frame**: the menu over the footer has no Artistic Introduction and no
|
|
894
|
+
bars, its Exhibitions leads to the exhibition's own home, and the footer
|
|
895
|
+
links the language policy.
|
|
896
|
+
- **The texts** are viewer-i18n's `minisiteBaroque` bundle (`BAROQUEART_LABELS`).
|
|
897
|
+
|
|
852
898
|
### Sharing History's mini-sites
|
|
853
899
|
|
|
854
900
|
Sharing History's virtual exhibitions are a family of their own, on pages of
|