mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(search) Add screenreader-only positions count text to search results
This commit is contained in:
parent
9fecfc5025
commit
2840d9d403
@ -30,6 +30,7 @@ public class UrlDetails implements Comparable<UrlDetails> {
|
|||||||
public int resultsFromSameDomain;
|
public int resultsFromSameDomain;
|
||||||
|
|
||||||
public String positions;
|
public String positions;
|
||||||
|
public int positionsCount;
|
||||||
public SearchResultItem resultItem;
|
public SearchResultItem resultItem;
|
||||||
public List<SearchResultKeywordScore> keywordScores;
|
public List<SearchResultKeywordScore> keywordScores;
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ public class SearchQueryIndexService {
|
|||||||
detail.rankingScore, // termScore
|
detail.rankingScore, // termScore
|
||||||
detail.resultsFromDomain(),
|
detail.resultsFromDomain(),
|
||||||
getPositionsString(detail),
|
getPositionsString(detail),
|
||||||
|
Long.bitCount(detail.bestPositions),
|
||||||
detail.rawIndexResult,
|
detail.rawIndexResult,
|
||||||
detail.rawIndexResult.keywordScores
|
detail.rawIndexResult.keywordScores
|
||||||
));
|
));
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
{{#if problemCount}} <span class="problems" title="{{problems}}"> ⚠ {{problemCount}} </span> {{/if}}
|
{{#if problemCount}} <span class="problems" title="{{problems}}"> ⚠ {{problemCount}} </span> {{/if}}
|
||||||
<span aria-hidden="true" class="meta positions"
|
<span aria-hidden="true" class="meta positions"
|
||||||
title="Positions where keywords were found within the document">{{positions}}</span>
|
title="Positions where keywords were found within the document">{{positions}}</span>
|
||||||
|
<div class="screenreader-only">Terms appear in {{positionsCount}} positions</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user