Planning migration of image markup files from IMT 1.7 to 1.8
Posted by mholmes on 02 Jan 2009 in Activity log
The transition from version 1.7 to 1.8 in the Image Markup Tool has introduced some new features and changes which needed to be migrated into the Mariage project files. This is the procedure I implemented to make the changes:
- Data files (IMT XML files) were converted over to the 1.8 format. This was done with the IMT's built-in XSLT conversion file, but I modified it with some special overrides as below.
- The result of this conversion would still have the wrong IMT version number in it, so that was updated by a modification to the XSLT conversion.
- The conversion also results in a file which has inadequate distinction between transcriptional and non-transcriptional annotations. This problem arises in two locations in the file: first, in the
<tagsDecl>
area where the transcription categories are stored, theTranscription
category had to be designated as "Transcriptional" by the addition of a<desc>
tag inside the<rendition>
tag. This was also easy to do through a modification to the XSLT. - The second problem component of the file is the linking, which by default ends up using
@facs
; all cases which are not transcriptional should be using@corresp
instead. Another modification to the XSLT from IMT accomplished this conversion. - This gave me valid IMT 1.8 data files. The problem now was that the XSLT on the site was expecting the old format files, so I had to modify
imt_p5_to_xhtml
. Any code that makes use of the@facs
attribute value had to be rewritten so that it could use both@corresp
and@facs
, and was sensitive to the new presence of the hash at the beginnings of those values. - Having converted all the data and the XSLT, I tested the XSLT by first uploading one new data file, and confirming that it failed to convert using the old XSLT; then uploading the new XSLT, and confirming that it worked with the new data file but failed with the old ones; and then by uploading all the new data files and checking a sample of them. Everything seems to work fine, including links into individual annotations.
- Finally, I archived the old data files, and overwrote copies on the server in the mariage account with the new versions.
Everything seems to have gone smoothly. This is a tricky kind of task, especially on a live site, so it was good to do it when the office was empty and there were no distractions.
This entry was posted by Martin and filed under Activity log.