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

refs meta#32 definisjonsnummer i parantes i lenker

parent 99a2282e
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ export default {
if (item.type_ == 'usage') return {type: item.type_, html: item.text}
else if (item.type_ == 'article_ref') return {
type: item.type_,
html: item.lemmas.join(','),
html: item.lemmas.join(',') + (item.definition_order ? ` (${item.definition_order})` : ''),
ref: item.article_id + (item.definition_id ? '#def' + item.definition_id : ''),
article_id: item.article_id,
definition_id: item.definition_id
......
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