Hi all, I could use some advice on a problem I'm having with prepping an upload...
My batch of images contain descriptions written in a half-dozen languages, so I need to have different language tags for them. However, only SOME of the files have that metadata included (other times it's just blank so I can't help that).
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!)
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).
I hope this makes sense...
Sincerely, -Liam
wittylama.com Peace, love & metadata
1. are you sure blank is truly blank? i.e. there could be some default language you are not seeing 2. is there always a lang field attached when there is more than one description?
On Wed, May 27, 2015 at 2:59 PM, Liam Wyatt liamwyatt@gmail.com wrote:
Hi all, I could use some advice on a problem I'm having with prepping an upload...
My batch of images contain descriptions written in a half-dozen languages, so I need to have different language tags for them. However, only SOME of the files have that metadata included (other times it's just blank so I can't help that).
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!)
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).
I hope this makes sense...
Sincerely, -Liam
wittylama.com Peace, love & metadata
Glamtools mailing list Glamtools@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/glamtools
All of the records have 1 description field. But only some of the records have a language field (and it is not always the same language).
On Wednesday, 27 May 2015, Jane Darnell jane023@gmail.com wrote:
- are you sure blank is truly blank? i.e. there could be some default
language you are not seeing 2. is there always a lang field attached when there is more than one description?
On Wed, May 27, 2015 at 2:59 PM, Liam Wyatt <liamwyatt@gmail.com javascript:_e(%7B%7D,'cvml','liamwyatt@gmail.com');> wrote:
Hi all, I could use some advice on a problem I'm having with prepping an upload...
My batch of images contain descriptions written in a half-dozen languages, so I need to have different language tags for them. However, only SOME of the files have that metadata included (other times it's just blank so I can't help that).
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!)
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).
I hope this makes sense...
Sincerely, -Liam
wittylama.com Peace, love & metadata
Glamtools mailing list Glamtools@lists.wikimedia.org javascript:_e(%7B%7D,'cvml','Glamtools@lists.wikimedia.org'); https://lists.wikimedia.org/mailman/listinfo/glamtools
What is the language of the descriptions of the records which don’t have a language field? – Always the same, default language or different languages?
Beat
From: glamtools-bounces@lists.wikimedia.org [mailto:glamtools-bounces@lists.wikimedia.org] On Behalf Of Liam Wyatt Sent: Mittwoch, 27. Mai 2015 15:50 To: Conversations revolving around the development of GLAM Digital Tools Subject: Re: [Glamtools] Language template for the descriptions
All of the records have 1 description field. But only some of the records have a language field (and it is not always the same language).
On Wednesday, 27 May 2015, Jane Darnell <jane023@gmail.commailto:jane023@gmail.com> wrote: 1. are you sure blank is truly blank? i.e. there could be some default language you are not seeing 2. is there always a lang field attached when there is more than one description?
On Wed, May 27, 2015 at 2:59 PM, Liam Wyatt <liamwyatt@gmail.comjavascript:_e(%7B%7D,'cvml','liamwyatt@gmail.com');> wrote: Hi all, I could use some advice on a problem I'm having with prepping an upload...
My batch of images contain descriptions written in a half-dozen languages, so I need to have different language tags for them. However, only SOME of the files have that metadata included (other times it's just blank so I can't help that).
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!)
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).
I hope this makes sense...
Sincerely, -Liam
wittylama.comhttp://wittylama.com Peace, love & metadata
_______________________________________________ Glamtools mailing list Glamtools@lists.wikimedia.orgjavascript:_e(%7B%7D,'cvml','Glamtools@lists.wikimedia.org'); https://lists.wikimedia.org/mailman/listinfo/glamtools
-- wittylama.comhttp://wittylama.com Peace, love & metadata
hmm - confusing! looks like it will have to be handwork until you get a feel for whether you should merge or not
On Wed, May 27, 2015 at 3:50 PM, Liam Wyatt liamwyatt@gmail.com wrote:
All of the records have 1 description field. But only some of the records have a language field (and it is not always the same language).
On Wednesday, 27 May 2015, Jane Darnell jane023@gmail.com wrote:
- are you sure blank is truly blank? i.e. there could be some default
language you are not seeing 2. is there always a lang field attached when there is more than one description?
On Wed, May 27, 2015 at 2:59 PM, Liam Wyatt liamwyatt@gmail.com wrote:
Hi all, I could use some advice on a problem I'm having with prepping an upload...
My batch of images contain descriptions written in a half-dozen languages, so I need to have different language tags for them. However, only SOME of the files have that metadata included (other times it's just blank so I can't help that).
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!)
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).
I hope this makes sense...
Sincerely, -Liam
wittylama.com Peace, love & metadata
Glamtools mailing list Glamtools@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/glamtools
-- wittylama.com Peace, love & metadata
Glamtools mailing list Glamtools@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/glamtools
On Wed, May 27, 2015 at 5:59 AM, Liam Wyatt liamwyatt@gmail.com 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