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

re meta#202 bruk "word_form" som lenketekst hvis tilgjengelig

parent 38618675
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
v-bind="item.props"><!-- v-bind="item.props"><!--
-->{{item.html}}<!-- -->{{item.html}}<!--
--><router-link v-if="item.type == 'article_ref'" :to="item.ref" @click.native="article_link_click(item)"><!-- --><router-link v-if="item.type == 'article_ref'" :to="item.ref" @click.native="article_link_click(item)"><!--
-->{{item.lemmas[0].lemma}} {{item.definition_order ? ` (${item.definition_order})` : ''}}<!-- -->{{item.link_text}} {{item.definition_order ? ` (${item.definition_order})` : ''}}<!--
--></router-link><!-- --></router-link><!--
--></span></li> --></span></li>
</template> </template>
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
else if (item.type_ == 'article_ref') return { else if (item.type_ == 'article_ref') return {
type: item.type_, type: item.type_,
html: '', html: '',
lemmas: item.lemmas, link_text: item.word_form || item.lemmas[0].lemma,
ref: item.article_id + (item.definition_id ? '#def' + item.definition_id : ''), ref: item.article_id + (item.definition_id ? '#def' + item.definition_id : ''),
article_id: item.article_id, article_id: item.article_id,
definition_id: item.definition_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