Wikipedia citation templates: fails to export editors of book sections
When wikipedia citation templates are copied off (ctrl-alt-c) book sections, the editors appear as "undefined"
e.g. http://www.springerlink.com/content/j5j72p2834355w27/
appears as:
{{Cite book| publisher = Springer Berlin Heidelberg| isbn = 978-3-642-14635-0, 978-3-642-14636-7| volume = 24| pages = 69-86
| editors = undefinedundefined (ed.)
| last = Cosín| first = Darío J. Díaz| coauthors = Marta Novo, Rosa Fernández| title = Biology of Earthworms| chapter = Reproduction of Earthworms: Sexual Selection and Parthenogenesis| location = Berlin, Heidelberg| accessdate = 2011-12-21| date = 2011| chapterurl = http://www.springerlink.com/content/j5j72p2834355w27/}}
I think the problem is in function formatAuthors at line 65 of "Wikipedia Citation Templates.js" called by line 205 to generate the editorText variable in the same file.
alternative example: http://epub.uni-regensburg.de/124/.
Zotero version: standalone 3.03
Thanks. A fix to the translator will be greatly appreciated
e.g. http://www.springerlink.com/content/j5j72p2834355w27/
appears as:
{{Cite book| publisher = Springer Berlin Heidelberg| isbn = 978-3-642-14635-0, 978-3-642-14636-7| volume = 24| pages = 69-86
| editors = undefinedundefined (ed.)
| last = Cosín| first = Darío J. Díaz| coauthors = Marta Novo, Rosa Fernández| title = Biology of Earthworms| chapter = Reproduction of Earthworms: Sexual Selection and Parthenogenesis| location = Berlin, Heidelberg| accessdate = 2011-12-21| date = 2011| chapterurl = http://www.springerlink.com/content/j5j72p2834355w27/}}
I think the problem is in function formatAuthors at line 65 of "Wikipedia Citation Templates.js" called by line 205 to generate the editorText variable in the same file.
alternative example: http://epub.uni-regensburg.de/124/.
Zotero version: standalone 3.03
Thanks. A fix to the translator will be greatly appreciated
diff for Wikipedia Citation Templates.js
64a65
>
192c193,195
< translators = translators.concat(item.creators.splice(i, 1));
---
> item.creators.splice(i, 1)
> i--;
> translators = translators.concat();
194c197,199
< editors = editors.concat(item.creators.splice(i, 1));
---
> item.creators.splice(i, 1);
> i--;
> editors = editors.concat(creator);
200a206
>