Skip to content
Snippets Groups Projects
Commit 8ab0b607 authored by Paul Pestov's avatar Paul Pestov
Browse files

feat: add matches to search result

closes #76
parent c2c610a1
Branches
Tags
1 merge request!29feat: add matches to search result
Pipeline #214343 passed
......@@ -8,7 +8,14 @@
<v-list-item-content>
<a :href="getItemUrl(item)" target="_blank">
<v-list-item-title>{{item.label}}</v-list-item-title>
<v-list-item-subtitle>Sheet {{item.n}}</v-list-item-subtitle>
<v-list-item-subtitle class="d-flex">
<span v-for="(matchItem, i) in item.matches" class="d-flex">
<span>"{{matchItem.match}}"</span>
<span>&nbsp;({{matchItem.occurrencesOnPage}})</span>
<span v-if="i < item.matches.length - 1">, </span>
</span>
<span class="ml-1">in Sheet {{item.n}}</span>
</v-list-item-subtitle>
<v-list-item-subtitle>{{getLanguage(item.lang)}}</v-list-item-subtitle>
</a>
</v-list-item-content>
......@@ -58,7 +65,7 @@ export default {
language = 'syriac'
}
return this.viewerBaseUrl + '/' + language + '/#/?itemurl=' + item.item
}
},
}
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment