Match Notes header to Ontime import screen defaults
This commit is contained in:
parent
71370ed09d
commit
a32a40f416
|
|
@ -14,14 +14,15 @@ use std::{
|
|||
};
|
||||
use zip::{ZipWriter, write::SimpleFileOptions};
|
||||
|
||||
// Match the official Ontime v4 spreadsheet template (not the JSON property names).
|
||||
// Match Ontime v4 import-screen defaults (not the JSON property names).
|
||||
// The import UI expects plural "notes", unlike Ontime's own XLSX exporter.
|
||||
const SPREADSHEET_HEADERS: [&str; 16] = [
|
||||
"Time Start",
|
||||
"Time End",
|
||||
"Duration",
|
||||
"Cue",
|
||||
"Title",
|
||||
"Note",
|
||||
"Notes",
|
||||
"Timer Type",
|
||||
"Link Start",
|
||||
"Colour",
|
||||
|
|
|
|||
|
|
@ -691,7 +691,7 @@ fn xlsx_export_has_ontime_columns_notes_metadata_and_clock_strings() {
|
|||
"Duration",
|
||||
"Cue",
|
||||
"Title",
|
||||
"Note",
|
||||
"Notes",
|
||||
"Timer Type",
|
||||
"Link Start",
|
||||
"Colour",
|
||||
|
|
|
|||
|
|
@ -320,12 +320,13 @@ use Ontime's Partial Load when you want to keep an existing project's settings.
|
|||
Native Ontime JSON is the primary target: it lets the exporter control time
|
||||
relationships and project structure without a second column-mapping step.
|
||||
XLSX export writes one `Ontime` worksheet with `Time Start`, `Time End`, `Duration`, `Cue`,
|
||||
`Title`, `Note`, `Timer Type`, `Link Start`, `Colour`, `ID`, `Flag`, `Count to end`,
|
||||
`Title`, `Notes`, `Timer Type`, `Link Start`, `Colour`, `ID`, `Flag`, `Count to end`,
|
||||
`End Action`, `Warning Time`, `Danger Time` and `Skip` columns, followed by selected
|
||||
metadata columns. Playback settings match the JSON export: `Link Start` is explicitly
|
||||
`FALSE` so Ontime does not link events across intentional gaps. Notes contain only
|
||||
columns assigned to Notes; metadata remains in separate columns.
|
||||
These headers match the [official Ontime v4 template](https://docs.google.com/spreadsheets/d/1zT6yRgQUaICEiAFR85VEL-E9hAUDujKg6DaWR0iDYmY/edit).
|
||||
Headers match Ontime v4's import-screen defaults (case-insensitive). In particular,
|
||||
`Notes` is plural in XLSX; the native JSON field remains `note`.
|
||||
Native JSON uses Ontime's schema keys such as `timeStart`, `timeEnd` and `timerType`.
|
||||
Times use `HH:MM:SS` strings accepted by Ontime. Import the file with Ontime's
|
||||
[spreadsheet importer](https://docs.getontime.no/features/import-spreadsheet/)
|
||||
|
|
|
|||
Loading…
Reference in New Issue