Batch copying data between fields within a reference
I've a lot (thousands) of references and each has a unique, sequential number (format '#04321' etc.) that I've stored in the 'Loc. in Archive' field. It really suits my working practices to have a human-friendly number as a short, sortable, unique pointer to any given reference, and the 'Loc. in Archive' field does fairly well as a stand-in field, as it doesn't appear in my bibliographies and helpfully suggests the last number entered when you type '#', allowing easy sequential additions.
But ... it doesn't appear in all reference types. I've discovered 'Rights' is better in this respect, whilst retaining the other advantages (for me) of 'Loc. in Archive'.
Which explains why I'd like to be able to copy (or move) the contents of 'Loc. in Archive' to 'Rights' for each reference. Manually doing it ref by ref is out of the question, and it feels to me that a simple script ought to be able to achieve this. Maybe I'm wrong. I certainly wouldn't know where to start, and searching has not yielded anything promising - at least nothing that I can understand. Has anyone done this, or anything similar?
Thanks,
Andy
But ... it doesn't appear in all reference types. I've discovered 'Rights' is better in this respect, whilst retaining the other advantages (for me) of 'Loc. in Archive'.
Which explains why I'd like to be able to copy (or move) the contents of 'Loc. in Archive' to 'Rights' for each reference. Manually doing it ref by ref is out of the question, and it feels to me that a simple script ought to be able to achieve this. Maybe I'm wrong. I certainly wouldn't know where to start, and searching has not yielded anything promising - at least nothing that I can understand. Has anyone done this, or anything similar?
Thanks,
Andy
-
adamsmithIs your whole library synced to Zotero? That'd make this easier.
-
AndywalesYes ... I use Zotero on more than one machine so it's regularly synced.
-
adamsmithIf you're somewhat comfortable in python, it wouldn't be hard writing something using the web API (https://www.zotero.org/support/dev/web_api/v3/start) via the pyzotero library: https://github.com/urschrei/pyzotero
-
AndywalesThanks ... might need to work on my skills, or find a grown-up to help, but I can see the way forward now.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.