Custom Items and Custom Fields: Good Idea for a Plugin or Code Contribution?
Lately I have been wanting the ability to create both custom item types and custom item fields, but I've found no way to do this in Zotero. I am a software engineer with some time on my hands, so I wanted to see if these features would be useful to the community. If so, I am up for how I might contribute code or a plugin that adds this functionality.
If these features are already available somewhere and I've just missed them, any help with getting them going would be appreciated.
If these features are already available somewhere and I've just missed them, any help with getting them going would be appreciated.
Custom fields need to be written into extra and stored as one key-value pair per line. You can then extract the value of the custom field by getting the value of extra and doing text processing, or you can use the community-maintained toolkit to extract the data (https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.extrafieldtool.md).
The value of the custom field can be displayed in the literature list (item tree): https://www.zotero.org/support/dev/zotero_7_for_developers#custom_item_tree_columns
Largely though the purpose of my post was to try and see if others thought that custom items and and custom fields (without having to use key-value pairs in extra) would be a welcome and desired feature. If so, I'd be interested in trying to contribute either to Zotero source code or with a plugin since Zotero is open source.
You can try to work this into a plugin and I'm sure there'd be interest (people ask about custom item types and fields a fair amount, so there is demand), but even for basic things like syncing and citations anything that doesn't run through standard Zotero data (such as the Extra field) is going to open a whole can of worms.