diff --git a/assets/css/app.scss b/assets/css/app.scss index ef58c58..0e23330 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -253,6 +253,7 @@ section[role="main-content"]{ @include title1black; } aside.index-tooltip{ + z-index:10; margin-top: -1.75em; position:absolute; text-align: right; diff --git a/src/components/Content/EdText.vue b/src/components/Content/EdText.vue index ff475a1..be1181e 100644 --- a/src/components/Content/EdText.vue +++ b/src/components/Content/EdText.vue @@ -43,7 +43,7 @@ export default { }, parseLinks () { let links = this.html.match(//g) - // console.log('links', links) + console.log('links', links) if (links) { // let domparser = new DOMParser() // let domlink @@ -51,36 +51,23 @@ export default { let index = null for (var i = 0; i < links.length; i++) { // console.log(`link ${i}:`, links[i]) - linkparts = RegExp(/(.+)<\/a>/g).exec(links[i], 'g') - // console.log('linkparts', linkparts) - switch (linkparts[1]) { - case 'persName': - index = 'nominum' - break - case 'placeName': - index = 'locorum' - break - case 'objectName': - index = 'operum' - break - } - if (index) { - uuid = linkparts[2].replace('#', '') - newlink = `${linkparts[3]}` + - `` + - `` - // console.log('newlink', newlink) - this.html = this.html.replace(links[i], newlink) - } + linkparts = RegExp(/(.+)<\/a>/g).exec(links[i], 'g') + index = linkparts[3] + uuid = linkparts[2].replace('#', '') + newlink = `${linkparts[4]}` + + `` + + `` + // console.log('newlink', newlink) + this.html = this.html.replace(links[i], newlink) } // console.log('this.html', this.html) } diff --git a/src/components/Content/IndexItemOcurrences.vue b/src/components/Content/IndexItemOcurrences.vue index 8f18898..ede3e87 100644 --- a/src/components/Content/IndexItemOcurrences.vue +++ b/src/components/Content/IndexItemOcurrences.vue @@ -53,6 +53,7 @@ export default { }), methods: { ocAsArray (oc) { + // not necesseary anymore (KB #758) console.log('Array.isArray(oc)', Array.isArray(oc)) return Array.isArray(oc) ? oc : [oc] }, diff --git a/src/pages/Edition.vue b/src/pages/Edition.vue index e7d078d..625b40b 100644 --- a/src/pages/Edition.vue +++ b/src/pages/Edition.vue @@ -14,13 +14,16 @@ Loading ...