Skip to content
Snippets Groups Projects
Commit 4eefb065 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

legger til url-framgment med definisjonbs-id i linker

parent f22f4606
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ export default {
return this.body.items.map(
function(item){
if (item.type == 'usage') return {type: item.type, html: item.text}
else if (item.type == 'article_ref') return {type: item.type, html: `<a href="${item.article_id}">${item.lemmas.join(',')}</a>`}
else if (item.type == 'article_ref') return {type: item.type, html: `<a href="${item.article_id}${item.definition_id ? '#def'+item.definition_id : ''}">${item.lemmas.join(',')}</a>`}
else if (item.id) return {type: item.type, html: entities[item.id] || languages[item.id] || item.id}
else return {type: item.type || 'plain', html: item}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment