Adding date metadata fields that have the same behavior as accessDate
I am working on a plugin that extends Zotero to add some custom metadata fields needed for our purposes. I'm doing this by adding values to the tables customItemTypes, customFields, customItemTypeFields, etc.
I need to add a few date fields and would like them to have the same behavior as accessDate (namely, when you enter a date, it is formatted, and when you do not enter a date, it is removed). Is there any way to do this besides modifying the method createValueElement in itembox.xml (adding my new fields to the case statement at line 1245)?
I need to add a few date fields and would like them to have the same behavior as accessDate (namely, when you enter a date, it is formatted, and when you do not enter a date, it is removed). Is there any way to do this besides modifying the method createValueElement in itembox.xml (adding my new fields to the case statement at line 1245)?
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
One more question: at this point, is it better to put in new metadata fields in the "custom..." tables or in the system tables (fields, itemTypes, itemTypeFields, ...)? Assuming one option is better than the other.
I realize this will cause sync errors. That is not an issue for me as users won't be able to sync to the server.