@if (candidate.Significance is { } significance)
{
@significance.Classification · significance @significance.Score/100
@foreach (var reason in significance.Reasons) { @reason }
@if (significance.Characters.Any()) {
Characters: @string.Join(", ", significance.Characters)
}
@if (significance.PlotLines.Any()) {
Plot lines: @string.Join(", ", significance.PlotLines)
}
@foreach (var scene in significance.KeyScenes) {
@scene.SceneLabel
}
}
First appearance @Display(candidate.ExampleFirstAppearance)
Proposed parent @Display(proposedParentLabel)
Existing match @(candidate.ExistingLocationName ?? "None")
@if (!string.IsNullOrWhiteSpace(candidate.ExampleContext))
{
Scene context
@candidate.ExampleContext
}
@if (candidate.EvidenceSummaries.Any())
{
Evidence from @candidate.AppearsInScenes.ToString("N0") scene@(candidate.AppearsInScenes == 1 ? string.Empty : "s")
@foreach (var evidence in candidate.EvidenceSummaries)
{
@evidence
}
}
@if (candidate.IsPending)
{
@if (candidate.IsExistingMatch)
{
Existing location matched
@candidate.LocationName is linked to @candidate.ExistingLocationName. Review only the parent location if needed.
}
@if (candidate.IsExistingMatch)
{
}
else
{
Decision
Create new location
Same location as
Ignore
Import name
}
Parent location
@if (!string.IsNullOrWhiteSpace(proposedParentLabel))
{
Use proposed: @proposedParentLabel
}
@if (string.IsNullOrWhiteSpace(proposedParentLabel))
{
Not determined
}
else
{
Not determined
}
@foreach (var group in Model.LocationReview.LocationTargetOptions
.Where(target => !IsSelfTarget(target, candidate))
.GroupBy(target => target.GroupName))
{
@foreach (var target in group)
{
if (string.Equals(target.Value, proposedParentValue, StringComparison.OrdinalIgnoreCase))
{
continue;
}
@TargetLabel(target)
}
}
@if (!candidate.IsExistingMatch)
{
Same location as
Choose location...
@foreach (var group in Model.LocationReview.LocationTargetOptions
.Where(target => !IsSelfTarget(target, candidate))
.GroupBy(target => target.GroupName))
{
@foreach (var target in group)
{
@TargetLabel(target)
}
}
}
}
else {
Decision saved: @candidate.DecisionStatus
}