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.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)
}
}
}