> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/zotero-integration.md).

# Zotero-integratie

{% hint style="info" %}
Deze functie is oorspronkelijk ontwikkeld door [davrot](https://github.com/davrot) en [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), aangepast door [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) met OAuth. Het is geïntroduceerd vanaf v6.2.0 en later. Het bevindt zich nog in bètastatus. We hebben je feedback nodig als je problemen hebt.
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/7d9468b5c7f67912e288fc63243a3acf62c0dd9e" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="/files/9f3dbe2fe3f0979632db46d076cccd3facfed4d8" alt=""><figcaption></figcaption></figure></div>

### Zotero-integratie instellen

1. Open [deze link](https://www.zotero.org/oauth/apps) om een Zotero OAuth-client te maken (zoals de afbeelding laat zien)
2. Kies **Toepassingstype**: **Browser**
3. Stel de callback-URL in met je `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. Configureer je `config/variables.env`

<figure><img src="/files/9decc84a8442ab6316ff0ff40ccbc82192e362bb" alt="" width="375"><figcaption></figcaption></figure>

{% code title="config/variables.env" %}

```dotenv
#################
#    Zotero     #
#################
# 'zotero' moet in ENABLED_LINKED_FILE_TYPES staan (ingesteld in develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Van een Zotero OAuth-client (registreer op https://www.zotero.org/oauth/apps)
# Toepassingstype: Browser 
# Callback-URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Versleutelt de Zotero-API-sleutel in mongo (stel in ontwikkelomgeving in om te voorkomen dat een sleutelbestand wordt geschreven
# naar /var/lib/overleaf/data, die de webcontainer in de ontwikkelomgeving niet kan aanmaken)
# Hoe te genereren: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Optioneel: routeer de server-side Zotero-verzoeken van de module (OAuth + API) via
# een HTTP-proxy (moet bereikbaar zijn vanaf de webcontainer; hetzelfde als github-sync)
# http://10.0.0.1:10808
# (Optioneel) ZOTERO_PROXY_URL=
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/zotero-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
