mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
Fix: CSV importer and imported data
- pad rows, distinguish empty year, better error diagnostics - derive year from identifier when year column is empty - fix remaining 18 theses: Installation/Performance (slash→dash) orientation alias - csv importer: use column-name-based header detection instead of hardcoded positions
This commit is contained in:
@@ -75,10 +75,14 @@
|
||||
- [x] `templates/admin/edit.php` — moved `.admin-form-footer` from bottom to top-right, right after `<h1>`
|
||||
- [x] `admin.css` — added `.admin-form-footer--sticky` variant with `position:sticky; top:0; justify-content:flex-end`
|
||||
|
||||
## Fix CSV importer robustness
|
||||
## Fix CSV importer column shift and data repair
|
||||
- [x] Pad rows to expected column count to avoid offset warnings from short rows
|
||||
- [x] Distinguish `$yearRaw !== ''` before `intval()` to handle empty-year rows correctly
|
||||
- [x] Improve missing-field error message: lists which fields are missing, includes identifier/title snippet
|
||||
- [x] Derive year from identifier when year column is empty
|
||||
- [x] Auto-detect column-shifted CSV: when orientation/finality columns are empty but synopsis/context match known orientation/finality names, remap on import
|
||||
- [x] Migration `013_fix_csv_column_shift.sql`: move orientation from synopsis→orientation_id, finality from context_note→finality_id for already-imported theses
|
||||
- [x] Migration `013_fix_remarks_keywords.php`: move keywords from remarks→tags+thesis_tags for already-imported theses
|
||||
|
||||
## Standardise répertoire filter column rendering
|
||||
- [x] Centralise filter column rendering into a shared `repFilterEntry()` function
|
||||
|
||||
Reference in New Issue
Block a user