wax_theme 0.1.0.beta → 1.1.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.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -0
- data/README.md +105 -24
- data/_includes/collection_gallery.html +70 -0
- data/_includes/{wax/footer.html → footer.html} +4 -4
- data/_includes/head.html +13 -0
- data/_includes/{wax/header.html → header.html} +3 -4
- data/_includes/{wax/inline_image.html → inline_image.html} +2 -2
- data/_includes/{wax/collection/interactive_metadata.html → interactive_metadata_table.html} +38 -21
- data/_includes/item_metadata.html +31 -0
- data/_includes/osd_iiif_image_viewer.html +25 -0
- data/_includes/parallax_image.html +35 -0
- data/_includes/search_box.html +31 -0
- data/_includes/simple_image_viewer.html +36 -0
- data/_layouts/default.html +24 -0
- data/_layouts/{wax/exhibit.html → exhibit.html} +1 -1
- data/_layouts/generic_collection_item.html +34 -0
- data/_layouts/page.html +8 -0
- data/_layouts/qatar_item.html +23 -0
- data/_sass/_wax.scss +233 -164
- data/assets/bootstrap/bootstrap.min.js +7 -0
- data/assets/bootstrap/bootstrap.min.js.map +1 -0
- data/assets/default.png +0 -0
- data/assets/openseadragon/alt-buttons/fullpage_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/fullpage_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/fullpage_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/fullpage_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/home_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/home_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/home_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/home_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/next_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/next_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/next_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/next_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/previous_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/previous_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/previous_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/previous_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateleft_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateleft_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateleft_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateleft_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateright_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateright_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateright_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/rotateright_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomin_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomin_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomin_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomin_rest.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomout_grouphover.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomout_hover.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomout_pressed.png +0 -0
- data/assets/openseadragon/alt-buttons/zoomout_rest.png +0 -0
- data/assets/openseadragon/images/button_grouphover.png +0 -0
- data/assets/openseadragon/images/button_hover.png +0 -0
- data/assets/openseadragon/images/button_pressed.png +0 -0
- data/assets/openseadragon/images/button_rest.png +0 -0
- data/assets/openseadragon/images/flip_grouphover.png +0 -0
- data/assets/openseadragon/images/flip_hover.png +0 -0
- data/assets/openseadragon/images/flip_pressed.png +0 -0
- data/assets/openseadragon/images/flip_rest.png +0 -0
- data/assets/openseadragon/images/fullpage_grouphover.png +0 -0
- data/assets/openseadragon/images/fullpage_hover.png +0 -0
- data/assets/openseadragon/images/fullpage_pressed.png +0 -0
- data/assets/openseadragon/images/fullpage_rest.png +0 -0
- data/assets/openseadragon/images/home_grouphover.png +0 -0
- data/assets/openseadragon/images/home_hover.png +0 -0
- data/assets/openseadragon/images/home_pressed.png +0 -0
- data/assets/openseadragon/images/home_rest.png +0 -0
- data/assets/openseadragon/images/next_grouphover.png +0 -0
- data/assets/openseadragon/images/next_hover.png +0 -0
- data/assets/openseadragon/images/next_pressed.png +0 -0
- data/assets/openseadragon/images/next_rest.png +0 -0
- data/assets/openseadragon/images/previous_grouphover.png +0 -0
- data/assets/openseadragon/images/previous_hover.png +0 -0
- data/assets/openseadragon/images/previous_pressed.png +0 -0
- data/assets/openseadragon/images/previous_rest.png +0 -0
- data/assets/openseadragon/images/rotateleft_grouphover.png +0 -0
- data/assets/openseadragon/images/rotateleft_hover.png +0 -0
- data/assets/openseadragon/images/rotateleft_pressed.png +0 -0
- data/assets/openseadragon/images/rotateleft_rest.png +0 -0
- data/assets/openseadragon/images/rotateright_grouphover.png +0 -0
- data/assets/openseadragon/images/rotateright_hover.png +0 -0
- data/assets/openseadragon/images/rotateright_pressed.png +0 -0
- data/assets/openseadragon/images/rotateright_rest.png +0 -0
- data/assets/openseadragon/images/zoomin_grouphover.png +0 -0
- data/assets/openseadragon/images/zoomin_hover.png +0 -0
- data/assets/openseadragon/images/zoomin_pressed.png +0 -0
- data/assets/openseadragon/images/zoomin_rest.png +0 -0
- data/assets/openseadragon/images/zoomout_grouphover.png +0 -0
- data/assets/openseadragon/images/zoomout_hover.png +0 -0
- data/assets/openseadragon/images/zoomout_pressed.png +0 -0
- data/assets/openseadragon/images/zoomout_rest.png +0 -0
- data/assets/openseadragon/openseadragon.min.js +9 -0
- data/assets/openseadragon/openseadragon.min.js.map +1 -0
- data/assets/{js/popper.min.js → popper.min.js} +0 -1
- data/assets/search-ui.js +68 -0
- data/assets/styles.scss +20 -20
- metadata +122 -261
- data/_includes/wax/collection/gallery.html +0 -33
- data/_includes/wax/head.html +0 -16
- data/_includes/wax/image_viewer/leaflet.html +0 -11
- data/_includes/wax/image_viewer/mirador.html +0 -8
- data/_includes/wax/image_viewer/simple.html +0 -5
- data/_includes/wax/item/metadata.html +0 -23
- data/_includes/wax/mirador_compare.html +0 -11
- data/_includes/wax/parallax.html +0 -23
- data/_includes/wax/search.html +0 -12
- data/_layouts/wax/collection_item.html +0 -41
- data/_layouts/wax/default.html +0 -20
- data/_layouts/wax/page.html +0 -13
- data/_layouts/wax/reuse_page.html +0 -7
- data/_sass/_syntax.scss +0 -129
- data/assets/css/leaflet.css +0 -636
- data/assets/js/bootstrap.min.js +0 -7
- data/assets/js/leaflet-iiif.min.js +0 -8
- data/assets/js/leaflet.js +0 -5
- data/assets/js/wax.js +0 -91
- data/assets/logo.png +0 -0
- data/assets/mirador/css/mirador-combined.css +0 -4107
- data/assets/mirador/fonts/FontAwesome.otf +0 -0
- data/assets/mirador/fonts/MaterialIcons-Regular.eot +0 -0
- data/assets/mirador/fonts/MaterialIcons-Regular.ijmap +0 -1
- data/assets/mirador/fonts/MaterialIcons-Regular.svg +0 -2373
- data/assets/mirador/fonts/MaterialIcons-Regular.ttf +0 -0
- data/assets/mirador/fonts/MaterialIcons-Regular.woff +0 -0
- data/assets/mirador/fonts/MaterialIcons-Regular.woff2 +0 -0
- data/assets/mirador/fonts/fontawesome-webfont.eot +0 -0
- data/assets/mirador/fonts/fontawesome-webfont.svg +0 -2671
- data/assets/mirador/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/mirador/fonts/fontawesome-webfont.woff +0 -0
- data/assets/mirador/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/mirador/images/border_type_1.png +0 -0
- data/assets/mirador/images/border_type_2.png +0 -0
- data/assets/mirador/images/border_type_3.png +0 -0
- data/assets/mirador/images/border_type_4.png +0 -0
- data/assets/mirador/images/border_type_5.png +0 -0
- data/assets/mirador/images/debut_dark.png +0 -0
- data/assets/mirador/locales/ar/translation.json +0 -42
- data/assets/mirador/locales/de/translation.json +0 -103
- data/assets/mirador/locales/en/translation.json +0 -106
- data/assets/mirador/locales/es/translation.json +0 -86
- data/assets/mirador/locales/fr/translation.json +0 -103
- data/assets/mirador/locales/ga/translation.json +0 -97
- data/assets/mirador/locales/ja/translation.json +0 -82
- data/assets/mirador/locales/ko/translation.json +0 -83
- data/assets/mirador/locales/nl/translation.json +0 -39
- data/assets/mirador/locales/zh/translation.json +0 -74
- data/assets/mirador/locales/zh-CN/translation.json +0 -76
- data/assets/mirador/locales/zh-TW/translation.json +0 -76
- data/assets/mirador/mirador.js +0 -49145
- data/assets/mirador/plugins/advlist/index.js +0 -7
- data/assets/mirador/plugins/advlist/plugin.js +0 -160
- data/assets/mirador/plugins/advlist/plugin.min.js +0 -1
- data/assets/mirador/plugins/anchor/index.js +0 -7
- data/assets/mirador/plugins/anchor/plugin.js +0 -118
- data/assets/mirador/plugins/anchor/plugin.min.js +0 -1
- data/assets/mirador/plugins/autolink/index.js +0 -7
- data/assets/mirador/plugins/autolink/plugin.js +0 -180
- data/assets/mirador/plugins/autolink/plugin.min.js +0 -1
- data/assets/mirador/plugins/autoresize/index.js +0 -7
- data/assets/mirador/plugins/autoresize/plugin.js +0 -169
- data/assets/mirador/plugins/autoresize/plugin.min.js +0 -1
- data/assets/mirador/plugins/autosave/index.js +0 -7
- data/assets/mirador/plugins/autosave/plugin.js +0 -226
- data/assets/mirador/plugins/autosave/plugin.min.js +0 -1
- data/assets/mirador/plugins/bbcode/index.js +0 -7
- data/assets/mirador/plugins/bbcode/plugin.js +0 -101
- data/assets/mirador/plugins/bbcode/plugin.min.js +0 -1
- data/assets/mirador/plugins/charmap/index.js +0 -7
- data/assets/mirador/plugins/charmap/plugin.js +0 -1275
- data/assets/mirador/plugins/charmap/plugin.min.js +0 -1
- data/assets/mirador/plugins/code/index.js +0 -7
- data/assets/mirador/plugins/code/plugin.js +0 -94
- data/assets/mirador/plugins/code/plugin.min.js +0 -1
- data/assets/mirador/plugins/codesample/css/prism.css +0 -138
- data/assets/mirador/plugins/codesample/index.js +0 -7
- data/assets/mirador/plugins/codesample/plugin.js +0 -967
- data/assets/mirador/plugins/codesample/plugin.min.js +0 -1
- data/assets/mirador/plugins/colorpicker/index.js +0 -7
- data/assets/mirador/plugins/colorpicker/plugin.js +0 -126
- data/assets/mirador/plugins/colorpicker/plugin.min.js +0 -1
- data/assets/mirador/plugins/contextmenu/index.js +0 -7
- data/assets/mirador/plugins/contextmenu/plugin.js +0 -168
- data/assets/mirador/plugins/contextmenu/plugin.min.js +0 -1
- data/assets/mirador/plugins/directionality/index.js +0 -7
- data/assets/mirador/plugins/directionality/plugin.js +0 -66
- data/assets/mirador/plugins/directionality/plugin.min.js +0 -1
- data/assets/mirador/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/assets/mirador/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/assets/mirador/plugins/emoticons/index.js +0 -7
- data/assets/mirador/plugins/emoticons/plugin.js +0 -87
- data/assets/mirador/plugins/emoticons/plugin.min.js +0 -1
- data/assets/mirador/plugins/fullpage/index.js +0 -7
- data/assets/mirador/plugins/fullpage/plugin.js +0 -519
- data/assets/mirador/plugins/fullpage/plugin.min.js +0 -1
- data/assets/mirador/plugins/fullscreen/index.js +0 -7
- data/assets/mirador/plugins/fullscreen/plugin.js +0 -177
- data/assets/mirador/plugins/fullscreen/plugin.min.js +0 -1
- data/assets/mirador/plugins/help/img/logo.png +0 -0
- data/assets/mirador/plugins/help/index.js +0 -7
- data/assets/mirador/plugins/help/plugin.js +0 -727
- data/assets/mirador/plugins/help/plugin.min.js +0 -1
- data/assets/mirador/plugins/hr/index.js +0 -7
- data/assets/mirador/plugins/hr/plugin.js +0 -39
- data/assets/mirador/plugins/hr/plugin.min.js +0 -1
- data/assets/mirador/plugins/image/index.js +0 -7
- data/assets/mirador/plugins/image/plugin.js +0 -1211
- data/assets/mirador/plugins/image/plugin.min.js +0 -1
- data/assets/mirador/plugins/imagetools/index.js +0 -7
- data/assets/mirador/plugins/imagetools/plugin.js +0 -3684
- data/assets/mirador/plugins/imagetools/plugin.min.js +0 -1
- data/assets/mirador/plugins/importcss/index.js +0 -7
- data/assets/mirador/plugins/importcss/plugin.js +0 -264
- data/assets/mirador/plugins/importcss/plugin.min.js +0 -1
- data/assets/mirador/plugins/insertdatetime/index.js +0 -7
- data/assets/mirador/plugins/insertdatetime/plugin.js +0 -173
- data/assets/mirador/plugins/insertdatetime/plugin.min.js +0 -1
- data/assets/mirador/plugins/legacyoutput/index.js +0 -7
- data/assets/mirador/plugins/legacyoutput/plugin.js +0 -220
- data/assets/mirador/plugins/legacyoutput/plugin.min.js +0 -1
- data/assets/mirador/plugins/link/index.js +0 -7
- data/assets/mirador/plugins/link/plugin.js +0 -713
- data/assets/mirador/plugins/link/plugin.min.js +0 -1
- data/assets/mirador/plugins/lists/index.js +0 -7
- data/assets/mirador/plugins/lists/plugin.js +0 -1115
- data/assets/mirador/plugins/lists/plugin.min.js +0 -1
- data/assets/mirador/plugins/media/index.js +0 -7
- data/assets/mirador/plugins/media/plugin.js +0 -1166
- data/assets/mirador/plugins/media/plugin.min.js +0 -1
- data/assets/mirador/plugins/nonbreaking/index.js +0 -7
- data/assets/mirador/plugins/nonbreaking/plugin.js +0 -85
- data/assets/mirador/plugins/nonbreaking/plugin.min.js +0 -1
- data/assets/mirador/plugins/noneditable/index.js +0 -7
- data/assets/mirador/plugins/noneditable/plugin.js +0 -118
- data/assets/mirador/plugins/noneditable/plugin.min.js +0 -1
- data/assets/mirador/plugins/pagebreak/index.js +0 -7
- data/assets/mirador/plugins/pagebreak/plugin.js +0 -109
- data/assets/mirador/plugins/pagebreak/plugin.min.js +0 -1
- data/assets/mirador/plugins/paste/index.js +0 -7
- data/assets/mirador/plugins/paste/plugin.js +0 -1497
- data/assets/mirador/plugins/paste/plugin.min.js +0 -1
- data/assets/mirador/plugins/preview/index.js +0 -7
- data/assets/mirador/plugins/preview/plugin.js +0 -123
- data/assets/mirador/plugins/preview/plugin.min.js +0 -1
- data/assets/mirador/plugins/print/index.js +0 -7
- data/assets/mirador/plugins/print/plugin.js +0 -38
- data/assets/mirador/plugins/print/plugin.min.js +0 -1
- data/assets/mirador/plugins/save/index.js +0 -7
- data/assets/mirador/plugins/save/plugin.js +0 -120
- data/assets/mirador/plugins/save/plugin.min.js +0 -1
- data/assets/mirador/plugins/searchreplace/index.js +0 -7
- data/assets/mirador/plugins/searchreplace/plugin.js +0 -603
- data/assets/mirador/plugins/searchreplace/plugin.min.js +0 -1
- data/assets/mirador/plugins/spellchecker/index.js +0 -7
- data/assets/mirador/plugins/spellchecker/plugin.js +0 -757
- data/assets/mirador/plugins/spellchecker/plugin.min.js +0 -1
- data/assets/mirador/plugins/tabfocus/index.js +0 -7
- data/assets/mirador/plugins/tabfocus/plugin.js +0 -124
- data/assets/mirador/plugins/tabfocus/plugin.min.js +0 -1
- data/assets/mirador/plugins/table/index.js +0 -7
- data/assets/mirador/plugins/table/plugin.js +0 -10144
- data/assets/mirador/plugins/table/plugin.min.js +0 -1
- data/assets/mirador/plugins/template/index.js +0 -7
- data/assets/mirador/plugins/template/plugin.js +0 -345
- data/assets/mirador/plugins/template/plugin.min.js +0 -1
- data/assets/mirador/plugins/textcolor/index.js +0 -7
- data/assets/mirador/plugins/textcolor/plugin.js +0 -346
- data/assets/mirador/plugins/textcolor/plugin.min.js +0 -1
- data/assets/mirador/plugins/textpattern/index.js +0 -7
- data/assets/mirador/plugins/textpattern/plugin.js +0 -370
- data/assets/mirador/plugins/textpattern/plugin.min.js +0 -1
- data/assets/mirador/plugins/toc/index.js +0 -7
- data/assets/mirador/plugins/toc/plugin.js +0 -228
- data/assets/mirador/plugins/toc/plugin.min.js +0 -1
- data/assets/mirador/plugins/visualblocks/css/visualblocks.css +0 -154
- data/assets/mirador/plugins/visualblocks/index.js +0 -7
- data/assets/mirador/plugins/visualblocks/plugin.js +0 -135
- data/assets/mirador/plugins/visualblocks/plugin.min.js +0 -1
- data/assets/mirador/plugins/visualchars/index.js +0 -7
- data/assets/mirador/plugins/visualchars/plugin.js +0 -505
- data/assets/mirador/plugins/visualchars/plugin.min.js +0 -1
- data/assets/mirador/plugins/wordcount/index.js +0 -7
- data/assets/mirador/plugins/wordcount/plugin.js +0 -343
- data/assets/mirador/plugins/wordcount/plugin.min.js +0 -1
- data/assets/mirador/skins/lightgray/content.inline.min.css +0 -1
- data/assets/mirador/skins/lightgray/content.min.css +0 -1
- data/assets/mirador/skins/lightgray/content.mobile.min.css +0 -1
- data/assets/mirador/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce-small.svg +0 -63
- data/assets/mirador/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce.svg +0 -131
- data/assets/mirador/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/mirador/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/mirador/skins/lightgray/img/anchor.gif +0 -0
- data/assets/mirador/skins/lightgray/img/loader.gif +0 -0
- data/assets/mirador/skins/lightgray/img/object.gif +0 -0
- data/assets/mirador/skins/lightgray/img/trans.gif +0 -0
- data/assets/mirador/skins/lightgray/skin.min.css +0 -1
- data/assets/mirador/skins/lightgray/skin.mobile.min.css +0 -2
- data/assets/mirador/themes/inlite/index.js +0 -7
- data/assets/mirador/themes/inlite/theme.js +0 -10235
- data/assets/mirador/themes/inlite/theme.min.js +0 -1
- data/assets/mirador/themes/mobile/index.js +0 -7
- data/assets/mirador/themes/mobile/theme.js +0 -13546
- data/assets/mirador/themes/mobile/theme.min.js +0 -1
- data/assets/mirador/themes/modern/index.js +0 -7
- data/assets/mirador/themes/modern/theme.js +0 -10041
- data/assets/mirador/themes/modern/theme.min.js +0 -1
- /data/_includes/{wax/item/pagination.html → item_pagination.html} +0 -0
- /data/assets/{css → datatables}/datatables.css +0 -0
- /data/assets/{js → datatables}/datatables.min.js +0 -0
- /data/assets/{js/elasticlunr.min.js → elasticlunr.min.js} +0 -0
- /data/assets/{js/jquery-3.2.1.min.js → jquery-3.2.1.min.js} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6779ec1f783cc81ba21e34042f3a7cd5d550f2ef756f4ce1e8fd171deaf881f
|
|
4
|
+
data.tar.gz: 3b64cc64525e2426f26c1a8651962fca580eae788ef533135029e1f442a4d391
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90a960b9eb0a8a138378da5c926a25d6b44fc6d3a005eca6b87cc22e7e975006531085e96bac9617436f8e1f42bc2cf5d64b0226abee8c2b0235a4f0a452dba2
|
|
7
|
+
data.tar.gz: 02c8c9f66da3bc63eefbc89209273e49fed2c9c38b458df57c3178d9a449ccc1a710ec37b95af81e8aeb179bf1e78299a009608fe0dcd83c0ce01b3811ad906c
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,50 +1,131 @@
|
|
|
1
|
-
#
|
|
1
|
+
# minicomp/wax 🐝
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/rb/wax_tasks)
|
|
3
|
+
[](https://badge.fury.io/rb/wax_tasks)
|
|
4
|
+
[](http://makeapullrequest.com)
|
|
5
|
+
[](https://github.com/minicomp/wax/actions?query=workflow%3Aci%3Atest)
|
|
6
|
+
[](https://depfu.com/github/minicomp/wax?project_id=10550)
|
|
7
|
+
[](https://badge.fury.io/rb/wax_theme)
|
|
8
|
+
[](https://docs.google.com/forms/d/e/1FAIpQLSeD77mBp0Y13mFePF8UmDwFrlbxNx3VttEjz_3dgglJeK-Zbg/viewform?c=0&w=1)
|
|
9
|
+

|
|
4
10
|
|
|
5
|
-
[](https://travis-ci.org/mnyrop/wax_theme) [](https://libraries.io/github/mnyrop/wax_theme)
|
|
6
11
|
|
|
7
|
-
__wax_theme__ is a gem packaged [Jekyll](https://jekyllrb.com/) theme for [Minicomp/Wax](https://github.com/minicomp/wax/).
|
|
8
12
|
|
|
9
|
-
It includes components specifically tailored for minimal scholarly exhibition sites, including IIIF and flat image viewers, faceted galleries, parallax banners, dynamic search boxes, data tables, and more.
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
|
|
15
|
+
__Wax is an extensible workflow for producing scholarly exhibitions with minimal computing principles.__<br>
|
|
16
|
+
It's comprised of: __a few Ruby gems__ for processing image data and associated metadata ([wax_tasks](https://github.com/minicomp/wax_tasks/), [wax_iiif](https://github.com/minicomp/wax_iiif/)), __a Jekyll theme__ ([wax_theme](https://github.com/minicomp/wax/)), and (hopefully soon!) a lot of __documentation and recipes__ for creating, deploying, and maintaining digital exhibitions.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
- [Prerequisites](#Prerequisites)
|
|
20
|
+
- [Getting Started](#Getting-Started)
|
|
21
|
+
- [Using Docker](#Using-Docker)
|
|
22
|
+
- [Contributing](#Contributing)
|
|
23
|
+
|
|
24
|
+
<br>
|
|
12
25
|
|
|
13
26
|
<a href="https://minicomp.github.io/wax/">
|
|
14
|
-
<img src="https://raw.githubusercontent.com/minicomp/wiki/
|
|
27
|
+
<img src="https://raw.githubusercontent.com/minicomp/wiki/main/src/assets/wax_screen.gif?raw=true"/>
|
|
15
28
|
</a>
|
|
16
29
|
|
|
17
|
-
|
|
30
|
+
<br>
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
# Prerequisites
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
|
|
35
|
+
You'll need `git` and `ruby >= 3.2` with `bundler` installed.
|
|
36
|
+
These dependencies can either be installed natively on your system or within a [Docker environment](#Using-Docker). For instructions, check the Wiki's [Setting up your system page](https://minicomp.github.io/wiki/wax/setting-up-your-system/).
|
|
37
|
+
|
|
38
|
+
Check your versions with:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
ruby -v
|
|
23
42
|
```
|
|
24
43
|
|
|
25
|
-
|
|
44
|
+
``` sh
|
|
45
|
+
bundler -v
|
|
46
|
+
```
|
|
26
47
|
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
To process images, you will also need to have ImageMagick and Ghostscript installed and functional. You can check to see if you have ImageMagick by running:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
convert -version
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
... and check Ghostscript with:
|
|
55
|
+
``` sh
|
|
56
|
+
gs -version
|
|
29
57
|
```
|
|
30
58
|
|
|
31
|
-
|
|
59
|
+
Vips will soon replace ImageMagick for Wax's image processing. If you're ahead of the curve, you can check your version with
|
|
60
|
+
|
|
61
|
+
``` sh
|
|
62
|
+
vips -v
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
# Getting Started
|
|
66
|
+
|
|
67
|
+
__There are a few ways to get started with Wax, depending on your needs.__ Copyin the demo template is suggested for new users so you can see how a full Wax site would work. __Advanced Jekyllers__ can start from a clean Jekyll install. To start with the demo:
|
|
32
68
|
|
|
33
|
-
|
|
69
|
+
1. Log into your [GitHub account](https://github.com/). (Or sign up if you don't have one!)
|
|
34
70
|
|
|
35
|
-
|
|
71
|
+
2. Head to the [Wax demo page](https://github.com/) and click **"Use this Template"** button. It will prompt you to create a copy of the repository in your own account. You should name it after the collection or exhibition you'll make, since this name will inform your free URL for the project with GitHub. For this example, our repository is called **"my-wax-site"**.
|
|
36
72
|
|
|
37
|
-
|
|
73
|
+
3. On your own, new Wax repository page, click the Green **"Code"** button and copy the URL it provides to your clipboard, e.g,
|
|
74
|
+
```sh
|
|
75
|
+
git@github.com:mnyrop/my-wax-site.git
|
|
76
|
+
```
|
|
38
77
|
|
|
39
|
-
|
|
78
|
+
4. Open your Terminal/Shell application and change directory into where you'd like to work on your project, e.g., your Desktop:
|
|
79
|
+
```sh
|
|
80
|
+
cd ~/Desktop
|
|
81
|
+
```
|
|
40
82
|
|
|
41
|
-
|
|
83
|
+
5. Run the `git clone` command plus the link you copied on your clipboard in one line, e.g.,
|
|
84
|
+
```sh
|
|
85
|
+
git clone git@github.com:mnyrop/my-wax-site.git
|
|
86
|
+
```
|
|
42
87
|
|
|
43
|
-
|
|
88
|
+
6. When the clone is complete, change directory into your newly cloned project folder, in our case:
|
|
89
|
+
```sh
|
|
90
|
+
cd my-wax-site
|
|
91
|
+
```
|
|
44
92
|
|
|
45
|
-
|
|
93
|
+
7. Install the project-specific Ruby dependencies by running the command
|
|
94
|
+
```sh
|
|
95
|
+
bundle install
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
8. Run the demo site:
|
|
99
|
+
```sh
|
|
100
|
+
bundle exec jekyll serve
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
After the last step, the terminal will provide you with a localhost URL for you to see your local copy of the site on your browser. This is the template site you will make changes to in order to make your own exhibition. For more, check out the [Minicomp/Wax Wiki](https://minicomp.github.io/wiki/wax/).
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# Using Docker
|
|
107
|
+
|
|
108
|
+
To use Wax in a container, make sure you are familiar with Docker and have [Docker installed](https://docs.docker.com/get-docker/).
|
|
109
|
+
|
|
110
|
+
Run the "Getting Started" steps 1-6 above to copy and `cd` into the repo.
|
|
111
|
+
|
|
112
|
+
Next, build the `minicomp/wax` base image:
|
|
113
|
+
```
|
|
114
|
+
docker build -t minicomp/wax .
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
You will run all of the Wax tasks and commands within an interactive bash container, which you can create and access by running:
|
|
118
|
+
```
|
|
119
|
+
docker run -it --rm -v "$PWD":/wax --name wax -p 4000:4000 minicomp/wax bash
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
To serve the site, you can run the following command in the guest container and view it in your host browser:
|
|
123
|
+
```
|
|
124
|
+
bundle exec jekyll serve --host 0.0.0.0
|
|
125
|
+
```
|
|
46
126
|
|
|
47
|
-
|
|
127
|
+
You can exit the container at any time with `$ exit`, which will automatically stop and remove the container.
|
|
48
128
|
|
|
49
|
-
|
|
129
|
+
# Contributing
|
|
50
130
|
|
|
131
|
+
We welcome contributions to Wax, including bug reports and feature requests (submitted as [Issues](https://github.com/minicomp/wax/issues)), code contributions (submitted as [Pull Requests](https://github.com/minicomp/wax/pulls)), and documentation updates (submitted however!) Not sure where to start? Feel free to get in touch via [GitHub issue](https://github.com/minicomp/wax/issues) or grab an invite to join the conversation on the `#minicomp-wax` channel of the [Code4Lib Slack](https://docs.google.com/forms/d/e/1FAIpQLSeD77mBp0Y13mFePF8UmDwFrlbxNx3VttEjz_3dgglJeK-Zbg/viewform?c=0&w=1).
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{% assign collection = site[include.collection] %}
|
|
2
|
+
{% assign undefined = include.undefined | default: 'undefined' %}
|
|
3
|
+
{% assign id = include.id | default: include | jsonify | slugify %}
|
|
4
|
+
|
|
5
|
+
{% if include.only.size > 0 %}
|
|
6
|
+
{% assign subset = collection | where: include.facet_by, include.only | sort: 'order' %}
|
|
7
|
+
{% else %}
|
|
8
|
+
{% assign subset = nil %}
|
|
9
|
+
{% endif %}
|
|
10
|
+
|
|
11
|
+
<div id='{{ id }}-container' class='wax-gallery-container full-width'>
|
|
12
|
+
<div class='wax-inline-container'>
|
|
13
|
+
{% if include.facet_by %}
|
|
14
|
+
<div id="{{ id }}-facet-buttons" class="facet-buttons"></div>
|
|
15
|
+
{% endif %}
|
|
16
|
+
<div id="wax-gallery-{{ id }}" class="wax-gallery"></div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
{% if subset.size > 0 %}
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
$( document ).ready(function() {
|
|
23
|
+
let container = $('#{{ id }}-container');
|
|
24
|
+
let gallery = $('#wax-gallery-{{ id }}');
|
|
25
|
+
let buttonDiv = $('#{{ id }}-facet-buttons');
|
|
26
|
+
|
|
27
|
+
{% for item in subset %}
|
|
28
|
+
{%- capture item_html -%}
|
|
29
|
+
"<div class='gallery-item {{ item[include.facet_by] | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | default: site.default_thumb | absolute_url }}' alt='{{ item.label | escape }}'/><div class='overlay'><p class='info'>{{ item.label | escape }}</p></div></div></a></div>"
|
|
30
|
+
{%- endcapture -%}
|
|
31
|
+
gallery.append({{ item_html | strip_newlines }});
|
|
32
|
+
{% endfor %}
|
|
33
|
+
});
|
|
34
|
+
</script>
|
|
35
|
+
{% else %}
|
|
36
|
+
<script type="text/javascript">
|
|
37
|
+
$( document ).ready(function() {
|
|
38
|
+
let container = $('#{{ id }}-container');
|
|
39
|
+
let gallery = $('#wax-gallery-{{ id }}');
|
|
40
|
+
let buttonDiv = $('#{{ id }}-facet-buttons');
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
{% for item in collection %}
|
|
44
|
+
{%- capture item_html -%}
|
|
45
|
+
"<div class='gallery-item {{ item[include.facet_by] | default: undefined | slugify }} all'><a href='{{ item.url | absolute_url }}'><div class='hovereffect'><img class='img-responsive gallery-thumb' src='{{ item.thumbnail | default: site.default_thumb | absolute_url }}' alt='{{ item.label | escape }}'/><div class='overlay'><p class='info'>{{ item.label | escape }}</p></div></div></a></div>"
|
|
46
|
+
{%- endcapture -%}
|
|
47
|
+
gallery.append({{ item_html | strip_newlines }});
|
|
48
|
+
{% endfor %}
|
|
49
|
+
|
|
50
|
+
{% if include.facet_by %}
|
|
51
|
+
var facets = Array.from(new Set([{%- for item in collection -%}'{{ item[include.facet_by] | default: undefined | slugify }}'{% unless forloop.last %}, {% endunless %}{%- endfor -%}]));
|
|
52
|
+
buttonDiv.append("<button class='btn facet active' data-filter='all'>show all</button>");
|
|
53
|
+
|
|
54
|
+
for (i in facets) {
|
|
55
|
+
buttonDiv.append(`<button class='btn facet' data-filter='${facets[i]}'>${facets[i]}</button>`);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
$(document).ready(function(){
|
|
59
|
+
$("#{{ id }}-container .facet").click(function(){
|
|
60
|
+
var filterValue = $(this).attr('data-filter');
|
|
61
|
+
$('#{{ id }}-container .facet').removeClass('active');
|
|
62
|
+
$(this).addClass('active');
|
|
63
|
+
if(filterValue == 'all') { $('#{{ id }}-container .all').show('slow'); }
|
|
64
|
+
else { $('#{{ id }}-container .all').hide('slow'); $(`.${filterValue}`).show('slow'); }
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
{% endif %}
|
|
68
|
+
});
|
|
69
|
+
</script>
|
|
70
|
+
{% endif %}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<footer id='wax-footer' class='page-footer container-fluid'>
|
|
2
2
|
<div class='wax-inline-container'>
|
|
3
3
|
<div class='row'>
|
|
4
|
-
<!-- column 1-->
|
|
5
4
|
<div class='col'>
|
|
6
5
|
<p class='footer-title'>{{ site.title }}</p>
|
|
7
6
|
<p class='footer-description'>{{ site.description }}</p>
|
|
8
7
|
<p class='footer-copyright'>
|
|
8
|
+
{% if site.copyright.size > 0 %}
|
|
9
9
|
© {{ site.copyright }}<br>
|
|
10
|
+
{% endif %}
|
|
10
11
|
Built with <a href='https://github.com/minicomp/wax/'>Minicomp/Wax</a>
|
|
11
12
|
</p>
|
|
12
13
|
</div>
|
|
13
|
-
<!-- column 2-->
|
|
14
14
|
<div class='col'>
|
|
15
15
|
<p class='footer-title'>Links</p>
|
|
16
16
|
<p class='footer-links'>
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
<p class='footer-logos'>
|
|
25
25
|
{% for item in site.footer.logos %}
|
|
26
26
|
{% assign link = item.link | default: '#' %}
|
|
27
|
-
<a href="{{ link | absolute_url }}">
|
|
28
|
-
<img src='{{ item.img | absolute_url }}' />
|
|
27
|
+
<a href="{{ link | absolute_url }}" aria-label="Logo link to resource">
|
|
28
|
+
<img src='{{ item.img | absolute_url }}' alt="logo"/>
|
|
29
29
|
</a>
|
|
30
30
|
{% endfor %}
|
|
31
31
|
</p>
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
4
|
+
<title>
|
|
5
|
+
{{ site.title }}{% if page.label %} | {{ page.label }}{% elsif page.title %} | {{ page.title }}{% endif %}
|
|
6
|
+
</title>
|
|
7
|
+
|
|
8
|
+
<link rel='canonical' href='{{ page.url | absolute_url }}'/>
|
|
9
|
+
<link rel='icon' type='image/png' href="{{ 'img/logo.png' | absolute_url }}">
|
|
10
|
+
<link rel='stylesheet' href="{{ '/assets/styles.css' | absolute_url }}"/>
|
|
11
|
+
|
|
12
|
+
<script type='text/javascript' src="{{ '/assets/jquery-3.2.1.min.js' | absolute_url }}"></script>
|
|
13
|
+
</head>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<nav id='wax-header' class='navbar navbar-expand-lg navbar-light'>
|
|
2
2
|
<div class='wax-inline-container'>
|
|
3
3
|
<a class='navbar-brand' href="{{ '/' | absolute_url }}" title='Home'>
|
|
4
|
-
<img src="{{ '/assets/logo.png' | absolute_url }}" width='30' height='30' class='d-inline-block align-top' alt='logo'>
|
|
5
4
|
{{ site.title | newline_to_br }}
|
|
6
5
|
</a>
|
|
7
6
|
|
|
@@ -14,10 +13,10 @@
|
|
|
14
13
|
{% for item in site.menu %}
|
|
15
14
|
{% if item.sub %}
|
|
16
15
|
<li class='nav-item dropdown'>
|
|
17
|
-
<a class='nav-link dropdown-toggle' href='#' id='wax-{{ item.label }}-dropdown' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
|
|
16
|
+
<a class='nav-link dropdown-toggle' href='#' id='wax-{{ item.label | slugify }}-dropdown' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
|
|
18
17
|
{{ item.label }}
|
|
19
18
|
</a>
|
|
20
|
-
<div class='dropdown-menu' aria-labelledby='wax-{{ item.label }}-dropdown'>
|
|
19
|
+
<div class='dropdown-menu' aria-labelledby='wax-{{ item.label | slugify }}-dropdown'>
|
|
21
20
|
{% for sub in item.sub %}
|
|
22
21
|
<a class='dropdown-item' href='{{ sub.link | absolute_url }}'>{{ sub.label }}</a>
|
|
23
22
|
{% endfor %}
|
|
@@ -31,5 +30,5 @@
|
|
|
31
30
|
{% endfor %}
|
|
32
31
|
</ul>
|
|
33
32
|
</div>
|
|
34
|
-
|
|
33
|
+
</div>
|
|
35
34
|
</nav>
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<div class='inline-image-reference'>
|
|
4
4
|
<a href='{{ item.url | absolute_url }}'>
|
|
5
|
-
<img src='{{ item.full | absolute_url }}'/>
|
|
5
|
+
<img src='{{ item.full | absolute_url }}' alt="{{ item.label | escape }}"/>
|
|
6
6
|
</a>
|
|
7
7
|
{% if item.label %}
|
|
8
8
|
<p class='image-caption'>
|
|
9
|
-
|
|
9
|
+
Above: <a href='{{ item.url | absolute_url }}'>{{ item.label }}</a>
|
|
10
10
|
</p>
|
|
11
11
|
{% endif %}
|
|
12
12
|
</div>
|
|
@@ -1,8 +1,41 @@
|
|
|
1
|
-
<link rel="stylesheet" type="text/css" href="{{ '/assets/
|
|
2
|
-
<script type="text/javascript" src="{{ 'assets/
|
|
1
|
+
<link rel="stylesheet" type="text/css" href="{{ '/assets/datatables/datatables.css' | absolute_url }}" />
|
|
2
|
+
<script type="text/javascript" src="{{ 'assets/datatables/datatables.min.js' | absolute_url }}"></script>
|
|
3
3
|
|
|
4
|
-
<table id='{{ include.collection }}-datatable' class='datatable display'>
|
|
5
|
-
|
|
4
|
+
<table id='{{ include.collection }}-datatable' class='datatable display'></table>
|
|
5
|
+
{% assign data = site.data[include.collection] %}
|
|
6
|
+
{%- capture columns -%}
|
|
7
|
+
{%- for field in data.first -%}
|
|
8
|
+
{
|
|
9
|
+
"title": "{{ field[0] }}",
|
|
10
|
+
"data": "{{ field[0] }}"
|
|
11
|
+
}{% unless forloop.last %}, {% endunless %}
|
|
12
|
+
{%- endfor -%}
|
|
13
|
+
{%- endcapture -%}
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
$(document).ready(function () {
|
|
17
|
+
$('#{{ include.collection }}-datatable').DataTable({
|
|
18
|
+
data: {{ data | jsonify }},
|
|
19
|
+
columns: [{{ columns }}],
|
|
20
|
+
scrollY: 600,
|
|
21
|
+
scrollX: 600,
|
|
22
|
+
paging: false,
|
|
23
|
+
fixedHeader: false,
|
|
24
|
+
searching: false,
|
|
25
|
+
ordering: false,
|
|
26
|
+
dom: 'Bfrtip',
|
|
27
|
+
buttons: [
|
|
28
|
+
'csvHtml5'
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
{% comment %}
|
|
38
|
+
{% assign first_item = site.data[include.collection].first %}
|
|
6
39
|
<thead>
|
|
7
40
|
<tr>
|
|
8
41
|
{% for field in first_item %}
|
|
@@ -34,20 +67,4 @@
|
|
|
34
67
|
{% endfor %}
|
|
35
68
|
</tbody>
|
|
36
69
|
</table>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
$(document).ready(function () {
|
|
40
|
-
$('#{{ include.collection }}-datatable').DataTable({
|
|
41
|
-
scrollY: 600,
|
|
42
|
-
scrollX: 600,
|
|
43
|
-
paging: false,
|
|
44
|
-
fixedHeader: false,
|
|
45
|
-
searching: false,
|
|
46
|
-
dom: 'Bfrtip',
|
|
47
|
-
buttons: [
|
|
48
|
-
'csvHtml5',
|
|
49
|
-
'copyHtml5'
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
</script>
|
|
70
|
+
{% endcomment %}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<dl class='metadata-block'>
|
|
2
|
+
{% for item in include.meta %}
|
|
3
|
+
{% if item.value contains 'page.' %}
|
|
4
|
+
{% assign key = item.value | remove: 'page.' %}
|
|
5
|
+
{% assign value = page[key] %}
|
|
6
|
+
{% else %}
|
|
7
|
+
{% assign value = item.value %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
{% comment %}
|
|
11
|
+
Only display non-empty values
|
|
12
|
+
{% endcomment %}
|
|
13
|
+
{% if value | strip != '' %}
|
|
14
|
+
{% if item.type == 'link' %}
|
|
15
|
+
{% if key == 'manifest' %}
|
|
16
|
+
{%- capture value -%}
|
|
17
|
+
<a href="{{ value | absolute_url }}" target="_blank" rel="noreferrer">{{ value | absolute_url }}</a>
|
|
18
|
+
{%- endcapture -%}
|
|
19
|
+
{% else %}
|
|
20
|
+
{%- capture value -%}
|
|
21
|
+
<a href="{{ value | absolute_url }}" target="_blank" rel="noreferrer">
|
|
22
|
+
{{ value | absolute_url | remove: 'https://' | remove: 'http://' | split: "/" | first }}
|
|
23
|
+
</a>
|
|
24
|
+
{%- endcapture -%}
|
|
25
|
+
{% endif %}
|
|
26
|
+
{% endif %}
|
|
27
|
+
<dt>{{ item.label }}</dt>
|
|
28
|
+
<dd>{{ value | strip }}</dd>
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% endfor %}
|
|
31
|
+
</dl>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div id="osd" class="image-viewer"></div>
|
|
2
|
+
<script defer src="{{ '/assets/openseadragon/openseadragon.min.js' | absolute_url }}"></script>
|
|
3
|
+
|
|
4
|
+
<script>
|
|
5
|
+
$(document).ready(function () {
|
|
6
|
+
var manifestUrl = "{{ include.manifest | absolute_url }}";
|
|
7
|
+
$.getJSON(manifestUrl, function(data) {
|
|
8
|
+
var tileSources = [];
|
|
9
|
+
$.each(data.sequences[0].canvases, function(_k, val) {
|
|
10
|
+
tileSources.push({
|
|
11
|
+
tileSource: val.images[0].resource.service['@id'] + '/info.json',
|
|
12
|
+
referenceStripThumbnailUrl: val.thumbnail
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
OpenSeadragon({
|
|
16
|
+
id: "osd",
|
|
17
|
+
preload: true,
|
|
18
|
+
sequenceMode: true,
|
|
19
|
+
prefixUrl: "{{ '/assets/openseadragon/images/' | absolute_url }}",
|
|
20
|
+
tileSources: tileSources,
|
|
21
|
+
showReferenceStrip: true,
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% if include.image %}
|
|
2
|
+
{% assign image = include.image %}
|
|
3
|
+
{% else %}
|
|
4
|
+
{% assign item = site[include.collection] | where: 'pid', include.pid | first %}
|
|
5
|
+
{% assign image = item.full %}
|
|
6
|
+
{% endif %}
|
|
7
|
+
|
|
8
|
+
{%- capture style -%}
|
|
9
|
+
background-image: url('{{ image | absolute_url }}');
|
|
10
|
+
background-position: 0% {{ include.y | default: '15%' }};
|
|
11
|
+
{% if include.clickable %}
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
{% endif %}
|
|
14
|
+
{% if include.height %}
|
|
15
|
+
height: {{ include.height }} !important;
|
|
16
|
+
{% endif %}
|
|
17
|
+
{%- endcapture -%}
|
|
18
|
+
|
|
19
|
+
{%- capture onclick -%}
|
|
20
|
+
{% if include.clickable %}
|
|
21
|
+
onclick="window.location='{{ item.url | absolute_url }}'; return false;"
|
|
22
|
+
{% endif %}
|
|
23
|
+
{%- endcapture -%}
|
|
24
|
+
|
|
25
|
+
<div class='wax-parallax full-width {% if page.banner %}top-banner{% else %}inline-parallax{% endif %}'>
|
|
26
|
+
<div class='parallax-image' style="{{ style | strip }}" {{ onclick | strip }}></div>
|
|
27
|
+
|
|
28
|
+
{% if item.label %}
|
|
29
|
+
<div class='parallax-caption'>
|
|
30
|
+
<div class='wax-inline-container'>
|
|
31
|
+
Above: <a href='{{ item.url | absolute_url }}'>{{ item.label }}</a>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
{% endif %}
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% assign placeholder = include.placeholder | default: 'Search... ' %}
|
|
2
|
+
{% assign key = include.search | default: 'main' %}
|
|
3
|
+
{% assign config = site.search[key] %}
|
|
4
|
+
{% assign index = config.index | absolute_url %}
|
|
5
|
+
{%- capture fields -%}
|
|
6
|
+
{%- for collection in config.collections -%}
|
|
7
|
+
{%- for field in collection[1].fields -%}
|
|
8
|
+
{{ field }}{% unless forloop.last %}|||{% endunless %}
|
|
9
|
+
{%- endfor -%}
|
|
10
|
+
{%- endfor -%}
|
|
11
|
+
{%- endcapture -%}
|
|
12
|
+
{% assign fields = fields | split: '|||' | uniq %}
|
|
13
|
+
|
|
14
|
+
<div class='search-block'>
|
|
15
|
+
<div class='input-group'>
|
|
16
|
+
<input type='text' class='form-control' id='search' name='x' placeholder='{{ placeholder }}'>
|
|
17
|
+
</div>
|
|
18
|
+
<div id='results'></div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<script type='text/javascript' src="{{ '/assets/elasticlunr.min.js' | absolute_url }}"></script>
|
|
22
|
+
<script type='text/javascript' src="{{ '/assets/search-ui.js' | absolute_url }}"></script>
|
|
23
|
+
<script type='text/javascript'>
|
|
24
|
+
var fields = {{ fields | jsonify }};
|
|
25
|
+
var indexFile = "{{ index }}";
|
|
26
|
+
var url = "{{ '' | absolute_url }}";
|
|
27
|
+
|
|
28
|
+
$(document).ready(function() {
|
|
29
|
+
startSearchUI(fields, indexFile, url);
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<div id="osd" class="image-viewer"></div>
|
|
2
|
+
<script defer src="{{ '/assets/openseadragon/openseadragon.min.js' | absolute_url }}"></script>
|
|
3
|
+
|
|
4
|
+
<script>
|
|
5
|
+
$(document).ready(function () {
|
|
6
|
+
OpenSeadragon({
|
|
7
|
+
id: "osd",
|
|
8
|
+
preload: true,
|
|
9
|
+
showNavigationControl: false,
|
|
10
|
+
panHorizontal: false,
|
|
11
|
+
defaultZoomLevel: 0,
|
|
12
|
+
zoomPerScroll: 1,
|
|
13
|
+
prefixUrl: "{{ '/assets/openseadragon/images/' | absolute_url }}",
|
|
14
|
+
{% if page.img_list.size > 1 %}
|
|
15
|
+
sequenceMode: true,
|
|
16
|
+
showReferenceStrip: true,
|
|
17
|
+
tileSources: [
|
|
18
|
+
{% for img in page.img_list %}
|
|
19
|
+
{
|
|
20
|
+
type: 'image',
|
|
21
|
+
url: '{{ img.full | absolute_url }}',
|
|
22
|
+
referenceStripThumbnailUrl: '{{ img.thumbnail | absolute_url }}',
|
|
23
|
+
buildPyramid: false
|
|
24
|
+
}{% unless forloop.last %}, {% endunless %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
]
|
|
27
|
+
{% else %}
|
|
28
|
+
tileSources: {
|
|
29
|
+
type: 'image',
|
|
30
|
+
url: '{{ page.full | absolute_url}}',
|
|
31
|
+
buildPyramid: false
|
|
32
|
+
},
|
|
33
|
+
{% endif %}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang='en-us'>
|
|
3
|
+
{% include head.html %}
|
|
4
|
+
|
|
5
|
+
<body>
|
|
6
|
+
<time datetime='{{ 'now' | date: '%Y-%m-%d %H:%M' }}'></time>
|
|
7
|
+
{% include header.html %}
|
|
8
|
+
|
|
9
|
+
{% if page.banner %}
|
|
10
|
+
{% assign b = page.banner %}
|
|
11
|
+
{% include parallax_image.html collection=b.collection pid=b.pid y=b.y height=b.height image=b.image clickable=b.clickable %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
|
|
14
|
+
<div id='wax-main'>
|
|
15
|
+
<div id='wax-content' class='wax-inline-container'>
|
|
16
|
+
{{ content }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
{% include footer.html %}
|
|
21
|
+
<script type='text/javascript' async defer src='{{ "/assets/bootstrap/bootstrap.min.js" | absolute_url }}'></script>
|
|
22
|
+
<script type='text/javascript' async defer src='{{ "/assets/popper.min.js" | absolute_url }}'></script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{% comment %}
|
|
6
|
+
The block below controls the image viewer
|
|
7
|
+
{% endcomment %}
|
|
8
|
+
|
|
9
|
+
<h3 alt="{{ page.label | escape }}" class='item-label'>{{ page.label }}</h3>
|
|
10
|
+
<div class='item-view'>
|
|
11
|
+
<span class='pagination-link' id='prevlink'></span>
|
|
12
|
+
|
|
13
|
+
{% if page.manifest.size > 0 %}
|
|
14
|
+
{% include osd_iiif_image_viewer.html manifest=page.manifest %}
|
|
15
|
+
{% elsif page.full.size > 0 %}
|
|
16
|
+
{% include simple_image_viewer.html full_image=page.full %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
|
|
19
|
+
<span class='pagination-link' id='nextlink'></span>
|
|
20
|
+
</div>
|
|
21
|
+
{% unless layout.pagination == false %}{% include item_pagination.html %}{% endunless %}
|
|
22
|
+
|
|
23
|
+
{% comment %}
|
|
24
|
+
The block below controls the item metadata table
|
|
25
|
+
{% endcomment %}
|
|
26
|
+
|
|
27
|
+
{% if layout.meta.size %}
|
|
28
|
+
{% assign metadata = layout.meta %}
|
|
29
|
+
{% elsif page.meta.size %}
|
|
30
|
+
{% assign metadata = page.meta %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% if metadata.size %}
|
|
33
|
+
{% include item_metadata.html meta=metadata %}
|
|
34
|
+
{% endif %}
|