mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +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:
@@ -1646,6 +1646,7 @@
|
||||
"project_actions": "",
|
||||
"project_approaching_file_limit": "",
|
||||
"project_categories_tags": "",
|
||||
"problem_checking_connection_with_provider": "",
|
||||
"project_figure_modal": "",
|
||||
"project_files_history": "",
|
||||
"project_flagged_too_many_compiles": "",
|
||||
|
||||
@@ -487,7 +487,13 @@ export const FileTreeActionableProvider: FC<React.PropsWithChildren> = ({
|
||||
|
||||
const finishCreatingLinkedFile = useCallback(
|
||||
(entity: Omit<NewLinkedFileEntity, 'endpoint'>) => {
|
||||
return finishCreatingDocOrFile({ ...entity, endpoint: 'linked_file' })
|
||||
const shouldReindexReferences = /\.bib$/.test(entity.name)
|
||||
return finishCreatingDocOrFile({ ...entity, endpoint: 'linked_file' }).
|
||||
then(() => {
|
||||
if (shouldReindexReferences) {
|
||||
indexAllReferences(true)
|
||||
}
|
||||
})
|
||||
},
|
||||
[finishCreatingDocOrFile]
|
||||
)
|
||||
|
||||
@@ -19,8 +19,9 @@ export type LinkedFileData = {
|
||||
provider: 'zotero'
|
||||
zoteroGroupId?: string
|
||||
importedAt: Date | string
|
||||
importedByUserId?: string
|
||||
importedByName?: string
|
||||
importedByUserId: string
|
||||
importedByName: string
|
||||
bibFormat: 'bibtex' | 'biblatex'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user