mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user