Commit 12d05cf4 authored by schneider210's avatar schneider210
Browse files

extend config to toggle use case of the viewer; either embedded or standalone

parent ba3de069
Pipeline #135715 passed with stages
in 1 minute and 41 seconds
...@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.0.3] - 2020-05-18
### Added
- extended config object in index.html by a key named "standalone" (Possible values: true || false).
This indicates if the viewer will be used embedded or standalone respectively.
If used in the latter case, the language toggle shows up in the footer and vice versa.
## [0.0.2] - 2020-05-15 ## [0.0.2] - 2020-05-15
### Added ### Added
- openseadragon.vue: Event listener for fullscreen change - openseadragon.vue: Event listener for fullscreen change
......
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
/> />
</q-page-container> </q-page-container>
<Footer /> <Footer
:standalone="config.standalone"
/>
</q-layout> </q-layout>
</div> </div>
</template> </template>
......
<template> <template>
<q-footer bordered reveal class="bg-white"> <q-footer bordered reveal class="bg-white">
<Language /> <Language v-if="standalone" />
</q-footer> </q-footer>
</template> </template>
...@@ -12,5 +12,8 @@ export default { ...@@ -12,5 +12,8 @@ export default {
components: { components: {
Language, Language,
}, },
props: {
standalone: Boolean,
},
}; };
</script> </script>
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
{ {
"entrypoint": "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json", "entrypoint": "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json",
"itemlabel": "Page", "itemlabel": "Page",
"manifestlabel": "Manuscript" "manifestlabel": "Manuscript",
"standalone": true
} }
</script> </script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment