|
@@ -13,8 +13,17 @@
|
|
<h1>
|
|
<h1>
|
|
<router-link :to="{ name:'edition', params: { id: editionid }}">{{ title }}</router-link>
|
|
<router-link :to="{ name:'edition', params: { id: editionid }}">{{ title }}</router-link>
|
|
</h1>
|
|
</h1>
|
|
-
|
|
|
|
- <p v-if="meta">{{ meta.author }}</p>
|
|
|
|
|
|
+ <div v-if="biblio" class="biblio">
|
|
|
|
+ <p v-html="biblio.description" />
|
|
|
|
+ <a
|
|
|
|
+ :href="edition_manifestation_href"
|
|
|
|
+ @click.prevent="onClickManifestation"
|
|
|
|
+ @keyup.enter="onClickManifestation"
|
|
|
|
+ >
|
|
|
|
+ {{ biblio.uuid }}
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <p v-if="meta">{{ meta.author }}</p> -->
|
|
<aside
|
|
<aside
|
|
v-if="indexitem"
|
|
v-if="indexitem"
|
|
class="index-tooltip"
|
|
class="index-tooltip"
|
|
@@ -132,6 +141,7 @@ export default {
|
|
textsuuids: [],
|
|
textsuuids: [],
|
|
metainfotitle: undefined,
|
|
metainfotitle: undefined,
|
|
title: undefined,
|
|
title: undefined,
|
|
|
|
+ biblio: undefined,
|
|
author: undefined,
|
|
author: undefined,
|
|
texttitle: undefined,
|
|
texttitle: undefined,
|
|
//
|
|
//
|
|
@@ -156,7 +166,10 @@ export default {
|
|
corpusLoaded: state => state.Corpus.corpusLoaded,
|
|
corpusLoaded: state => state.Corpus.corpusLoaded,
|
|
editionslist: state => state.Corpus.editionslist,
|
|
editionslist: state => state.Corpus.editionslist,
|
|
editionsbyuuid: state => state.Corpus.editionsbyuuid
|
|
editionsbyuuid: state => state.Corpus.editionsbyuuid
|
|
- })
|
|
|
|
|
|
+ }),
|
|
|
|
+ edition_manifestation_href () {
|
|
|
|
+ return `${this.biblio.path}${this.biblio.uuid}`
|
|
|
|
+ }
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
$route (to, from) {
|
|
$route (to, from) {
|
|
@@ -217,6 +230,7 @@ export default {
|
|
if (mutation.type === 'Corpus/setEditionsByUUID') {
|
|
if (mutation.type === 'Corpus/setEditionsByUUID') {
|
|
// console.log('Edition state.Coprus.editionsbyuuid', this.editionid, state.Corpus.editionsbyuuid)
|
|
// console.log('Edition state.Coprus.editionsbyuuid', this.editionid, state.Corpus.editionsbyuuid)
|
|
this.title = this.metainfotitle = state.Corpus.editionsbyuuid[this.editionid].title
|
|
this.title = this.metainfotitle = state.Corpus.editionsbyuuid[this.editionid].title
|
|
|
|
+ this.biblio = state.Corpus.editionsbyuuid[this.editionid].biblio
|
|
}
|
|
}
|
|
if (mutation.type === 'Corpus/setTocs') {
|
|
if (mutation.type === 'Corpus/setTocs') {
|
|
console.log('Edition Corpus/setTocs', this.editionid, state.Corpus.editionsbyuuid)
|
|
console.log('Edition Corpus/setTocs', this.editionid, state.Corpus.editionsbyuuid)
|
|
@@ -241,6 +255,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
// console.log('');
|
|
// console.log('');
|
|
this.title = this.metainfotitle = this.editionsbyuuid[this.editionid].title
|
|
this.title = this.metainfotitle = this.editionsbyuuid[this.editionid].title
|
|
|
|
+ this.biblio = this.editionsbyuuid[this.editionid].biblio
|
|
this.toc = this.editionsbyuuid[this.editionid].toc
|
|
this.toc = this.editionsbyuuid[this.editionid].toc
|
|
this.flattoc = this.editionsbyuuid[this.editionid].flattoc
|
|
this.flattoc = this.editionsbyuuid[this.editionid].flattoc
|
|
// if no textid in new route (e.g. edition front)
|
|
// if no textid in new route (e.g. edition front)
|
|
@@ -394,6 +409,13 @@ export default {
|
|
name: e.target.dataset.index,
|
|
name: e.target.dataset.index,
|
|
params: { id: e.target.dataset.uuid }
|
|
params: { id: e.target.dataset.uuid }
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ onClickManifestation (e) {
|
|
|
|
+ console.log(`onClickManifestation`)
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'bibliographieItem',
|
|
|
|
+ params: { type: 'manifestations', uuid: this.biblio.uuid }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|