Closed ErwinKomen closed 1 year ago
transcription
to the model SermonDescr
.
transcription_path()
to upload files to a media/transcription subdirectory on the server. That is where the TEI-P5 xml files will be stored.get_trans_file()
to retrieve the file (as File object)SermonEdit
should now be made able to handle the file field
SermonForm
after_save()
to actually read the XML, extract the text from it and store it in field fulltext
read_transcription()
in reader/views.py (largely based on existing read_trans_eqg()
)This really works very nice! Should take the same approach for EqualGold (AF/SSG), since such a XML file with a transcription really 'belongs' to one particular SSG or S. Will do so in issue #673
Well, there is one thing remaining. If all XML files are going to be stored in one directory media/transcription, then how are we going to distinguish: (a) whether the XML is used for uploading to an S or SSG and (b) which S or SSG the file actually belongs to?
Perhaps I should adapt the name of the file to include: type
underscore id
underscore filename
?
The above is done and working well.
There should be a button
Add transcription
in a Sermon, where the user can upload one (!) TEI-P5 XML containining one transcription