disabled index occurence loading
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
{{ oc.title }}
|
{{ oc.title }}
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<span
|
<!-- <span
|
||||||
class="open-close"
|
class="open-close"
|
||||||
@click.prevent="onOpenPreview"
|
@click.prevent="onOpenPreview"
|
||||||
@keyup.enter="onOpenPreview"
|
@keyup.enter="onOpenPreview"
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" role="presentation" class="vs__open-indicator">
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" role="presentation" class="vs__open-indicator">
|
||||||
<path d="M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" />
|
<path d="M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" />
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span> -->
|
||||||
<div v-if="content" class="text" v-html="tei" />
|
<!-- <div v-if="content" class="text" v-html="tei" /> -->
|
||||||
<a
|
<!-- <a
|
||||||
v-if="content"
|
v-if="content"
|
||||||
class="lire-plus"
|
class="lire-plus"
|
||||||
:href="'/edition/'+ed.item+'/'+oc.uuid"
|
:href="'/edition/'+ed.item+'/'+oc.uuid"
|
||||||
@@ -31,12 +31,12 @@
|
|||||||
@keyup.enter="onGoToText"
|
@keyup.enter="onGoToText"
|
||||||
>
|
>
|
||||||
lire plus
|
lire plus
|
||||||
</a>
|
</a> -->
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { REST } from 'api/rest-axios'
|
// import { REST } from 'api/rest-axios'
|
||||||
import { mapState, mapActions } from 'vuex'
|
import { mapState, mapActions } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -60,19 +60,19 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
console.log('occurence beforeCreate')
|
console.log('occurence beforeCreate')
|
||||||
REST.get(`${window.apipath}/items/` + this.oc.uuid, {})
|
// REST.get(`${window.apipath}/items/` + this.oc.uuid, {})
|
||||||
.then(({ data }) => {
|
// .then(({ data }) => {
|
||||||
console.log('occurence text REST: data', data)
|
// console.log('occurence text REST: data', data)
|
||||||
if (data.content) {
|
// if (data.content) {
|
||||||
this.content = data.content
|
// this.content = data.content
|
||||||
const subString = this.content.tei.substr(0, 500)
|
// const subString = this.content.tei.substr(0, 500)
|
||||||
this.tei = subString.substr(0, subString.lastIndexOf(' ')) + ' …'
|
// this.tei = subString.substr(0, subString.lastIndexOf(' ')) + ' …'
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
.catch((error) => {
|
// .catch((error) => {
|
||||||
console.warn('Issue with nominum', error)
|
// console.warn('Issue with nominum', error)
|
||||||
Promise.reject(error)
|
// Promise.reject(error)
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
Reference in New Issue
Block a user