> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Intégration Zotero

<Info>
  Cette fonctionnalité a été initialement développée par [davrot](https://github.com/davrot) et [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), puis modifiée par [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) pour utiliser OAuth. Elle est disponible à partir de la v6.2.0. Elle est encore en version bêta. Si vous rencontrez un problème, nous avons besoin de vos retours.
</Info>

<Frame>
  <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/on-premises/img-b751b9f6.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=80eb902caf484c8cfc1c776017ac2c66" alt="" width="1802" height="372" data-path="images/on-premises/img-b751b9f6.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/on-premises/image-40.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=6dc6bfdbc9f196d6b0e52e331dcebeb1" alt="" width="1524" height="1116" data-path="images/on-premises/image-40.png" />
</Frame>

### Configurer l'intégration Zotero

1. Ouvrez [ce lien](https://www.zotero.org/oauth/apps) pour créer un client OAuth Zotero (comme le montre l'image)
2. Choisissez **Application Type** : **Browser**
3. Définissez l'URL de rappel (Callback URL) sur `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. Configurez votre `config/variables.env`

<Frame>
  <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/on-premises/image-41.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=7b17a5456fed177a76d4adfe2daf8107" alt="" width="375" data-path="images/on-premises/image-41.png" />
</Frame>

```dotenv title="config/variables.env" theme={null}
#################
#    Zotero     #
#################
# 'zotero' must be in ENABLED_LINKED_FILE_TYPES (set in develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# From a Zotero OAuth client (register at https://www.zotero.org/oauth/apps)
# Application Type: Browser 
# Callback URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Encrypts the Zotero API key in mongo (set in dev to avoid writing a key file
# to /var/lib/overleaf/data, which the dev web container can't create)
# How to generate: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Optional: route the module's server-side Zotero requests (OAuth + API) through
# an HTTP proxy (must be reachable from the web container; same as github-sync)
# http://10.0.0.1:10808
# (Optional) ZOTERO_PROXY_URL=
```

### Remarques

<Warning>
  Lors de la mise à niveau vers la version 6.3.0 republiée d'une installation existante comportant des fichiers de bibliographie liés à Zotero, suivez les [instructions de migration Zotero / Mendeley](/fr/on-premises/release-notes/release-notes-6.x.x#ayakaleaf-pro-6.3.0 "mention"). Les nouvelles installations n'ont pas besoin de cette migration.
</Warning>

<Danger>
  Ayakaleaf étant une plateforme collaborative, afin de renforcer la sécurité, à partir de la version 6.3.0, seul le créateur d'origine d'un fichier de références `bib` est autorisé à mettre à jour le fichier importé.
</Danger>

Par exemple, supposons que le propriétaire du projet, l'utilisateur A, active le partage par lien et crée dans le projet un fichier `test.bib` lié à son propre compte Zotero. Si un autre utilisateur, l'utilisateur B, accède au projet via le lien partagé, il pourra toujours lire et télécharger `test.bib`, mais ne sera pas autorisé à mettre à jour ni à réimporter le fichier depuis Zotero. Seul l'utilisateur A, en tant que créateur d'origine du fichier de références, peut effectuer des mises à jour. Autrement dit, seul le créateur d'origine du fichier `.bib` a l'autorisation de le mettre à jour.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.