My current workflow is
- edit CiteULike database on-line
wget http://www.citeulike.org/bibtex/user/MYUSER/tag/MYTAG?key_type=4biber bibliopdflatex biblio
where biblio.tex is a file for a bibliography/reference list, generated with a \nocite{*}.
The problem is that the CiteULike algorithm for generating the AuthorYearTitle key (key_type=4 in the wget URL above) may generate collisions, i. e. two different entries with the same key.
While this is for sure a CiteULike bug, I would like to patch this problem by inserting another step between wget and biber that rewrites the .bib database resolving duplicate keys, inserting a trailing 'a', 'b', ... letter after the duplicated AuthorYearTitle key. (Edit: I would like to maintain an AuthorYearTitle key in case the bibliography needs further editing.)
I would like a solution where no user intervention is required, so that steps 2., 3., 4., ... can be run in a script.
I was not able to find an existing solution to this (simple?) problem, and before reinventing the wheel I would like to ask for advice on this forum.
Note
By omitting the key_type=4 parameters, one gets unique numeric keys (citeulike:123456), so a possible strategy is to use a more robust key generator and forget about the ones generated by CiteULike.