Zotero: improve integration and reference import

- use OAuth instead of tokens
  - add an integration card
  - improve error handling
  - add BibLaTeX format support
  - fix indexing of linked .bib files on creation
This commit is contained in:
yu-i-i
2026-09-22 02:41:43 +02:00
parent a262362712
commit 9afab5ade1
26 changed files with 1153 additions and 542 deletions
@@ -368,7 +368,23 @@ export default LinkedFilesController = {
error.message === 'Zotero account not linked'
) {
res.status(400)
plainTextResponse(res, 'Your account is not linked with Zotero')
plainTextResponse(
res,
res.locals.translate(
'zotero_reference_loading_error_not_linked'
)
)
} else if (
error instanceof AccessDeniedError &&
error.message === 'Zotero access denied'
) {
res.status(403)
plainTextResponse(
res,
res.locals.translate(
'zotero_reference_loading_error_forbidden'
)
)
} else if (error instanceof AccessDeniedError) {
res.status(403)
plainTextResponse(