diegodlh / zotero-cita

Cita: a Wikidata addon for Zotero with citations metadata support
GNU General Public License v3.0
233 stars 12 forks source link

Skip untyped query if fetching QID with options.partial === false #153

Closed diegodlh closed 2 years ago

diegodlh commented 2 years ago

wikidata.js's reconcile method runs both a typed and an untyped query to fetch QIDs for one or more items. As described in #150:

given that:

  • a batch reconciliation will use reconcile with options.partial = false (see Be explicit that approximate matches will be ignored in batch QID fetching #90),
  • untyped-query results will be forced to non-exact matches, and
  • non-exact matches will be ignored if options.partial === false.

Consider not doing the untyped queries at all if options.partial === false.