Hi Lizzy,

"In the creator set you ask us to change the creator name from “Bruna,
> Dick” to “Dick Bruna”
>
> Before spending hours on writing XSLT: has anyone else written XSLT code
> to transform a creators’name and could we “borrow” your XSLT code?
>
> That would save us sooooo much time""
>

This is one of the tricks built-in in the GlamWiki Toolset (I have never
tested it though):

> Step 2: Metadata mappingCreator template
>
>  Wrap creator in the creator template
> The MediaWiki template may have an author, artist, publisher or similar
> parameter. When it does, the metadata value mapped to it can automatically
> be wrapped in {{Creator:<value>}}.
>
>  Reverse last name, first name
> Sometimes the creator value is listed as "last name, first name" in the
> metadata. Checking this box will reverse that order and remove the comma,
> e.g., "da Vinci, Leonardo" would become "Leonardo da Vinci". Note that this
> relies on a single comma in the value; if there is no comma in the value,
> no change will be made, and if there is more than one comma, the change
> will only be made using the first comma.
>
Hope that helps,

-- 
Jean-Fred
_______________________________________________
Glamtools mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/glamtools

Reply via email to