zotero / scaffold

Zotero translator creation IDE
http://www.zotero.org/support/dev/scaffold
38 stars 9 forks source link

"Add Item Template" button #44

Closed dstillman closed 6 years ago

dstillman commented 6 years ago

Seems like we should have a button that lets you select an item type and get an object literal with the fields for that item type. This would more closely mimic what the framework (which is being removed from Scaffold) provides and, even for translators with more complicated logic, make it easy to see the available fields.

zuphilip commented 6 years ago

Okay, I working on this. @dstillman Can you give me a hint how to generate an item template? I only have seen this function in the Web API...

dstillman commented 6 years ago

Probably Zotero.ItemFields.getItemTypeFields(itemTypeID) + Zotero.ItemFields.getName(fieldID) plus some hard-coded additions (for attachments, etc.)

dstillman commented 6 years ago

Added in https://github.com/zotero/scaffold/pull/46