Spieltag-Assistent füllt „Locations Taken and Shown“ immer aus
- Ortsdetail (Stadion), Stadt, Bundesland, Land, Ländercode und Weltregion kommen aus dem Spielort und werden immer angewendet – auch wenn die Basis-Vorlage den Block nicht hat - Spielort hat eine Weltregion (Standard „Europa“), editierbar im Assistenten - Venue tolerant gelesen (gespeicherte Stadien bleiben erhalten) - Agentur-Check: der Block lässt sich als Pflichtfelder auswählen („… (Aufnahmeort)“) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
278967a358
commit
3a2c8253ac
4 files changed
+43
-12
No files matched your search
@@ -367,7 +367,9 @@ struct PreflightSettings: View {
|
||||
/// fields offered as "Pflichtfeld"
|
||||
private static let candidates = ["caption", "headline", "creator", "copyright", "credit", "source", "event",
|
||||
"city", "sublocation", "state", "country", "countryCode", "dateCreated",
|
||||
"keywords", "objectName", "captionWriter"]
|
||||
"keywords", "objectName", "captionWriter",
|
||||
// "Locations Taken and Shown" (many agencies require it)
|
||||
"lcSublocation", "lcCity", "lcState", "lcCountry", "lcCountryCode", "lcWorldRegion"]
|
||||
|
||||
private var opts: Binding<PreflightOptions> { $state.settings.preflight }
|
||||
|
||||
@@ -377,7 +379,7 @@ struct PreflightSettings: View {
|
||||
LazyVGrid(columns: [GridItem(.flexible()), GridItem(.flexible()), GridItem(.flexible())], alignment: .leading, spacing: 8) {
|
||||
ForEach(Self.candidates, id: \.self) { id in
|
||||
if let f = IPTCField.byID[id] {
|
||||
Toggle(f.label, isOn: Binding(
|
||||
Toggle(f.section == .locationCreated ? "\(f.label) (Aufnahmeort)" : f.label, isOn: Binding(
|
||||
get: { state.settings.preflight.requiredFields.contains(id) },
|
||||
set: { on in
|
||||
state.settings.preflight.requiredFields.removeAll { $0 == id }
|
||||
|
||||
Reference in new issue
Block a user