-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configurable IIIF Presentation plugin (#2387)
* feat: configurable IIIF viewer * Default is Mirador * Switch to media swiper, without bundling Mirador code, with: `BUILD_IIIF_VIEWER=swiper` * refactor: change env var; rename plugins; list props as alt "list-props" IIIF Presentation plugin simply lists its props. Enable (non-production) with: `IIIF_PRESENTATION_PLUGIN=list-props` * chore: bump size limit
- Loading branch information
Showing
10 changed files
with
88 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div | ||
class="d-flex flex-column align-items-center" | ||
> | ||
<h2>IIIF</h2> | ||
<dl> | ||
<dt>uri</dt> | ||
<dd>{{ uri }}</dd> | ||
<dt>itemId</dt> | ||
<dd>{{ itemId }}</dd> | ||
<dt>searchQuery</dt> | ||
<dd>{{ searchQuery }}</dd> | ||
<dt>providerUrl</dt> | ||
<dd>{{ providerUrl }}</dd> | ||
</dl> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'IIIFListProps', | ||
props: { | ||
uri: { | ||
type: String, | ||
required: true | ||
}, | ||
itemId: { | ||
type: String, | ||
default: null | ||
}, | ||
searchQuery: { | ||
type: String, | ||
default: null | ||
}, | ||
providerUrl: { | ||
type: String, | ||
default: null | ||
} | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/portal/src/plugins/iiif/presentation/list-props.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Vue from 'vue'; | ||
import IIIFListProps from '@/components/iiif/IIIFListProps.vue'; | ||
|
||
const plugin = { | ||
install(vue) { | ||
vue.component('IIIFPresentation', IIIFListProps); | ||
} | ||
}; | ||
|
||
export default () => { | ||
Vue.use(plugin); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Vue from 'vue'; | ||
import IIIFMiradorViewer from '@/components/iiif/IIIFMiradorViewer.vue'; | ||
|
||
const plugin = { | ||
install(vue) { | ||
vue.component('IIIFPresentation', IIIFMiradorViewer); | ||
} | ||
}; | ||
|
||
export default () => { | ||
Vue.use(plugin); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters