Closed dhimmel closed 5 years ago
Should we always take the first one on our end, before passing to /export?
If you don't need child notes, yes. The first one is the parent item.
I've also fixed child notes to include the parent item key, which was missing, and fixed translation-server's CSL-JSON note export, but there's really no reason to export notes as CSL-JSON.
If you don't need child notes, yes. The first one is the parent item.
Got it. Are there other things besides notes that can be added as additional objects in the top-level array? Let's assume we're specifying ?single=1
such that only singular translators will be used.
Got it. Are there other things besides notes that can be added as additional objects in the top-level array?
No, currently only notes.
The following
search
query is for an ISBN:The output is:
Notice that the output array contains two objects. The second one is bizarre:
If we pass the full JSON output to
/format
with the following command:We get notified that "An error occurred during translation." The translation-server stdout log contains:
What's the best solution? Should the ISBN search omit the second note object? Should the CSL exporter ignore this note?
Are there other cases where the
/search
endpoint returns multiple results? Should we always take the first one on our end, before passing to/export
?