wikipedia citation export translator : editors of book section

18 views
Skip to first unread message

staticd

unread,
Apr 20, 2012, 9:28:36 AM4/20/12
to zoter...@googlegroups.com
When zotero exports wikipedia citation templates for book section items containing an editor or translator field, the editors and  translators are not cleanly removed. (some become authors) The editors names are replaced by the text "undefined". See http://forums.zotero.org/discussion/22795/wikipedia-citation-templates-fails-to-export-editors-of-book-sections/

Also, wikipedia page ranges are separated by an endash. 

I made a patch to fix the two issues. (Learnt javascript just for this. I'm normally a C/Python programmer.)

Do review and add these fixes.

Thanks

Here is an example citation.

@incollection{l1_hoola_????,
title = {hoola},
booktitle = {Foo},
author = {l1, f1 and l3, f3},
editor = {el1, ef1 and el2, ef2 and el3, ef3 and el4, ef4},
translator = {tl2, tf2},
pages = {63-74}
}
diff

staticd

unread,
May 15, 2012, 1:58:11 PM5/15/12
to zoter...@googlegroups.com
I have made some more changes: It now automatically fills the pmc, pmid and jstor fields for the wiki template from the url/extra field.
Please do review and merge this patch to the wikipedia citation translator. I've posted a copy of the code on wikipedia to get feedback. (http://en.wikipedia.org/wiki/Help_talk:Citation_Style_1#PMC_links_to_.27journal_matter.27)

Thanks.
Wikipedia Citation Templates.js
wikipedia-citation.diff
Reply all
Reply to author
Forward
0 new messages