diff options
Diffstat (limited to 'src/sisudoc/ocda/abstraction/db_in.d')
| -rw-r--r-- | src/sisudoc/ocda/abstraction/db_in.d | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sisudoc/ocda/abstraction/db_in.d b/src/sisudoc/ocda/abstraction/db_in.d index 5535870..7f1b2c3 100644 --- a/src/sisudoc/ocda/abstraction/db_in.d +++ b/src/sisudoc/ocda/abstraction/db_in.d @@ -214,6 +214,16 @@ template spineAbstractionDbRead() { /+ ↓ this database's own note of the .ssp it was built from. it is not part of the .ssp, so it does not go back into the block +/ doc.ssp_digest = _v; + } else if (_k.startsWith("translation.")) { + /+ ↓ what the database knows about this language's place among the + others, translation.ocn_aligned being the one such key today. + A language cannot state it about itself: it is the outcome of a + comparison made when every language had been read, which is + after the .ssp was written. So it is in the database and not in + the .ssp, and putting it back into the header here would make a + round trip differ from the file it is held against. Read it from + the metadata table, which is where it is. + +/ } else if (_k.startsWith("source.")) { string _kk = _k["source.".length .. $]; doc.source_info[_kk] = _v; |
