Automatically clear out the Journal Abbreviation field
What would be the best way to automatically clear out the Journal Abbreviation field in Zotero when a reference is imported?
As discussed here (https://forums.zotero.org/discussion/comment/345170/#Comment_345170), my problem comes from unreliable metadata for this field (e.g., sometimes the journal supplies its full title as the abbreviation in the metadata). I see that there is perhaps interest in eventually addressing this issue, but I think simply clearing out the field is a good enough stopgap workaround for my purposes.
I see that it is possible to write JavaScript to do something like this (e.g., https://forums.zotero.org/discussion/comment/345072/#Comment_345072), and I can probably figure out how using the API documentation (https://www.zotero.org/support/dev/client_coding/javascript_api#running_ad_hoc_javascript_in_zotero), but lacking experience in this area it might take a little time to make sure I'm doing things right. Is this probably the best approach to take? I assume it might also be possible to do something during the reference import process (something to do with the connectors or translators, maybe?); would that be a better approach?
In case it is useful for the discussion, here's my end goal. I would like for the BBT-generated citation key to use the Zotero-generated abbreviation (which does not happen if anything is entered in the Journal Abbreviation field). Once imported, I have it set so Zotfile renames the article PDF to the citation key string (so it would be ideal if whatever stopgap approach is used to clear out the Journal Abbr field was able to occur before Zotfile tried to rename the attachment). Currently, when the Journal Abbreviation field is wrong, my workaround is to manually clear it out and then manually tell Zotfile to rename the attachment (no big deal, but it would be nice to avoid doing this).
Thanks for any help, and thanks to the devs for all of their work on Zotero and its plugins.
As discussed here (https://forums.zotero.org/discussion/comment/345170/#Comment_345170), my problem comes from unreliable metadata for this field (e.g., sometimes the journal supplies its full title as the abbreviation in the metadata). I see that there is perhaps interest in eventually addressing this issue, but I think simply clearing out the field is a good enough stopgap workaround for my purposes.
I see that it is possible to write JavaScript to do something like this (e.g., https://forums.zotero.org/discussion/comment/345072/#Comment_345072), and I can probably figure out how using the API documentation (https://www.zotero.org/support/dev/client_coding/javascript_api#running_ad_hoc_javascript_in_zotero), but lacking experience in this area it might take a little time to make sure I'm doing things right. Is this probably the best approach to take? I assume it might also be possible to do something during the reference import process (something to do with the connectors or translators, maybe?); would that be a better approach?
In case it is useful for the discussion, here's my end goal. I would like for the BBT-generated citation key to use the Zotero-generated abbreviation (which does not happen if anything is entered in the Journal Abbreviation field). Once imported, I have it set so Zotfile renames the article PDF to the citation key string (so it would be ideal if whatever stopgap approach is used to clear out the Journal Abbr field was able to occur before Zotfile tried to rename the attachment). Currently, when the Journal Abbreviation field is wrong, my workaround is to manually clear it out and then manually tell Zotfile to rename the attachment (no big deal, but it would be nice to avoid doing this).
Thanks for any help, and thanks to the devs for all of their work on Zotero and its plugins.
Otherwise, unless you're consistently importing from the same 1-2 sources, I think the javascript API is likely your best bet, yes.