Hi,
My intention is to access the text, notes, and keys associated with annotations on creation. To that end, I've used the Notification system detailed
here. Using the `
Zotero.Notifier.registerObserver` method one may get the `id` of items created, and then the `Zotero.Items.get` (or `Zotero.Items.getAsync`) method may be used to retrieve an item.
However, it appears that all the fields of the Annotation items (and perhaps others) have an underscore prefix, giving me the impression they're not intended to be accessed directly. In the "
Get information about an item" section of the "Zotero Javascript API" here, it appears we're supposed to use the `getField` method. When I call it with "id" as input, it gives me the proper Item id, but when used to get "annotationText" it comes back null -- this leads me to believe the method works on fields of the base class, but not superclasses. How should I go about accessing the "annotationText" field?
Relatedly, that section indicates a TODO to list all possible fields. Where in the source would I look to figure out the possible fields? And when I figure it out, how can I contribute to the documentation?
Kind regards,
Lucas