We rely on the credit label being set (i.e., set to "Powered by Zotero", for example) to append "& Web2Cit" at the end, if applicable.
However, in some cases, the credit label may not be set. This would be the case when a Citoid citation would not be returned.
As a result, not only would "& Web2Cit" not be appended, but worse: it would be appended the next time the credit label is set, regardless of whether it should be appended or not this time.
Do:
- Set a "Powered by Web2Cit" label (if applicable) by default, for cases where no Citoid citation is returned. Try and see if ve.msg( 'citoid-citoiddialog-credit', 'Web2Cit' ) works (for internationalization).
- Make our buildTemplateResults patch always unset the credit's labelChange listener, before deciding whether it should be set for the specific case at hand.
