On Wed, May 27, 2015 at 5:59 AM, Liam Wyatt <[email protected]> wrote: > > My metadata has these two elements, for example: > <description> lorem ipsum </description> > <language> en </language> > > And, if I understand the documentation correctly, I need for it to be > formatted in this way if I want to get the GWT to automatically wrap the > language template: > <description lang='en'> lorem ipsum </description> > > Question 1: Is that correct that I need to merge these two metadata fields > in that way? Or, am I able to leave them as they currently are (that would > be ideal!)
currently, the element that contains the description would need to have the attribute lang="lc" specified; where lc is the language code designating the language the description is written in. what you’re describing as ideal would be a good feature request. > > Question 2: If I DO have to merge them, how can I merge these two fields > when only SOME of the records have a <language> tag at all? (recalling that > I can't add the same tag to all the records because they're in multiple > different languages). you don’t need to merge the metadata, but copy the lc value into the description element as a lang="lc" attribute. this can be done programmatically or via xslt. unfortunately xslt is not straight forward and takes a bit of time to sort out unless you already have experience with it. i’ll see if i can work on this later this week, but if someone else already has xslt experience please let liam know if you can help him out. with kind regards, dan _______________________________________________ Glamtools mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/glamtools
