Closed andredelft closed 4 years ago
Hi @andredelft ! Thanks for the issue. Originally, this is done because the CTS protocol does not allow for an edition to have a different language from its parent work. If this is an issue for you, I'd recommend using Translation rather than edition, or maybe use something from capitains-structured metadata.
We are moving to a new set of guidelines built for DTS (which will be easy to transform to) that should fix this :)
Thanks a lot for your responce, @PonteIneptique !
What do you mean by 'use something from capitains-structured metadata'?
To give you a bit of context for this problem, we are encoding works of Moses Maimonides, of which lots of old editions exist in different languages (Arabic, Hebrew, Slavonic, etc.). Since he was multilingual, multiple editions might originate from him (though this is not always clear). Apart from that, modern translations also exist. Our approach was thus to call the old versions 'editions', and the modern 'translation'. But I understand that that does not fit in the CTS guidelines.
Damn, I am sorry @andredelft, I missed your message...
You can use Structured Metadata where you can define multiple dc:language
for example:
<ti:edition ...>
....
<cpt:structured-metadata>
<dc:language>Arabic</dc:language>
<dc:language>Hebrew</dc:language>
</cpt:structured-metadata>
</ti:edition>
Languages can be defined in the
__cts__.xml
work files as anxml:lang
attribute at the root element<ti:work/>
. The versions defined here will inherit this language by default, but for translations and commentaries this can be overwritten in<ti:translation>
and<ti:commentary>
respectively, but for some reason this does not work for editions.See for example the following
__cts__.xml
, which I have set up as a test with the corresponding files in a data folder:Note
xml:lang="lang0"
defined at the root element andlang1
,lang2
andlang3
defined at the edition, translation and commentary elements respectively.If I now set up a Nemo environment and query a
GetCapabilities
, this gives the following (abreviated) response:Note that the edition still has
xml:lang="lang0"
even though we have redefined this in the__cts__.xml
file.