added exctract coming from niminum index #765

This commit is contained in:
2022-03-04 15:31:34 +01:00
parent 27455eb300
commit 848349c1f3
3 changed files with 41 additions and 6 deletions
+15 -3
View File
@@ -2,9 +2,10 @@
<section :class="{opened: isopened}">
<h4>
<a
:href="'/edition/'+ed.item+'/'+oc.uuid"
:href="'/edition/'+ed.item+'/'+oc.uuid+'/'+oc.form"
:uuid="oc.uuid"
:eduuid="ed.item"
:form="oc.form"
@click.prevent="onGoToText"
@keyup.enter="onGoToText"
>
@@ -88,13 +89,24 @@ export default {
title: this.oc.title,
editionTitle: this.editionTitle
})
// if (e.target.getAttribute('form')) {
// this.$router.push({
// name: `editiontext`,
// params: {
// id: e.target.getAttribute('eduuid'),
// textid: e.target.getAttribute('uuid')
// }
// })
// } else {
this.$router.push({
name: `editiontext`,
name: `editiontextextract`,
params: {
id: e.target.getAttribute('eduuid'),
textid: e.target.getAttribute('uuid')
textid: e.target.getAttribute('uuid'),
extract: e.target.getAttribute('form')
}
})
// }
} else {
this.$router.push({
name: `edition`,