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

oppdatering av innhold i "lemma"

parent 6cda3a79
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="inflection"> <div class="inflection">
<div v-for="(lemma, index) in lemmas" :key="index"> <div v-for="(lemma, index) in lemmas" :key="index">
<h4>{{lemma.lemma}}</h4> <h4>{{lemma.lemma}}</h4>
<table v-for="(std, index) in lemma.standardisations" :key="index"> <table v-for="(std, index) in lemma.paradigm_info" :key="index">
<tr> <tr>
<th rowspan="2">{{std.tags ? std.tags.join(', ') : ''}}</th> <th rowspan="2">{{std.tags ? std.tags.join(', ') : ''}}</th>
<th v-for="(inflection, index) in std.inflection" :key="index">{{inflection.tags.join(', ')}}</th> <th v-for="(inflection, index) in std.inflection" :key="index">{{inflection.tags.join(', ')}}</th>
......
var group_list = function(grps) { var group_list = function(grps) {
var grp_collection = new Set() var grp_collection = new Set()
grps.forEach(function(lemma){ grps.forEach(function(lemma){
lemma.standardisations.forEach(function(grp){ lemma.paradigm_info.forEach(function(grp){
if (grp.tags){ if (grp.tags){
grp_collection.add(grp.tags[0] == 'subst' ? grp.tags[0] + ',' + grp.tags[1] : grp.tags[0]) grp_collection.add(grp.tags[0] == 'subst' ? grp.tags[0] + ',' + grp.tags[1] : grp.tags[0])
} }
......
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