I am looking for the shortest and yet efficient filter to get a name in two or three parts like “Silva Coper Boroni” and display it as “Boroni, S. C.”.
In another words an input like Firstname Middlename Famillyname
shall be displayed in form of Famillyname, F. M.
I am using the below solution, but I think it is not a good one
<$vars author="Silva Coper Boroni">
<$set name=authorname filter="[<author>split[ ]!is[blank]]">
<$text text={{{[enlist<authorname>last[]]}}} />,
<$list filter="[enlist<authorname>butlast[]]" variable=part>
<$text text={{{[<part>split[]]}}}/>.
</$list>
</$set>
</$vars>