MicheleTobias / LiteratureMapper

A QGIS plugin to add geoJSON geometries to records in a Zotero library
GNU General Public License v2.0
28 stars 7 forks source link

saveZotero inefficient #26

Open wildintellect opened 5 years ago

wildintellect commented 5 years ago

Currently when saving we request the online version of record, update the Extra and the push back. We already have a copy of the record when we loaded the plugin, we can take that json, modify the Extra and push back. Should save 1 request per item, which reduces api calls by 50%.

  1. pass data_json to saveZotero
  2. get json by key
  3. sub Extra
  4. Serialize json
  5. push new value