9 lines
1.2 KiB
Plaintext
9 lines
1.2 KiB
Plaintext
@model IReadOnlyList<NameUsageDecoration>
|
|
<div data-name-usage-fragment>
|
|
@if(Model.Count==0){<p>No matching canonical name or alias use is recorded in this scope.</p>}else{
|
|
@if(Model.Select(r=>r.CharacterID).Distinct().Count()>1){<p class="small">This spelling belongs to more than one recorded identity. Shared names can be legitimate; no identities are merged.</p>}
|
|
<p class="small">Up to 100 distinct use records. Book use is based on recorded scene participation; it does not prove that every character knows this name.</p>
|
|
<ul>@foreach(var person in Model.GroupBy(r=>r.CharacterID)){var row=person.First();<li><strong>@row.CharacterName</strong> · @row.MatchType: @row.MatchedName <span class="small">@row.ProjectName · @string.Join(", ",person.Where(p=>p.BookID.HasValue).Select(p=>p.BookDisplayTitle).Where(s=>!string.IsNullOrWhiteSpace(s)).Distinct())</span>
|
|
<button type="button" class="btn btn-link btn-sm" data-name-focus="@row.CharacterID">Focus character in My Windows</button><button type="button" class="btn btn-link btn-sm" data-name-identity="@row.CharacterID" data-identity-project="@row.ProjectID">Inspect identity / corrections</button></li>}</ul>}
|
|
</div>
|