> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/integrace-zotero.md).

# Integrace Zotero

{% hint style="info" %}
Tato funkce byla původně vyvinuta společností [davrot](https://github.com/davrot) a [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), upraveno společností [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) s OAuth. Byla zavedena od verze v6.2.0 a novější. Stále je ve stavu beta. Pokud narazíte na jakýkoli problém, potřebujeme vaši zpětnou vazbu.
{% endhint %}

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

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

### Nastavit integraci se Zotero

1. Otevřete [tento odkaz](https://www.zotero.org/oauth/apps) pro vytvoření klienta Zotero OAuth (jak ukazuje obrázek)
2. Vyberte **Typ aplikace**: **Prohlížeč**
3. Nastavte URL zpětného volání ve vašem `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Nastavte svůj `config/variables.env`&#x20;

<figure><img src="/files/7c3762c905426c4e3872f8dc105ad421b68e231e" alt="" width="375"><figcaption></figcaption></figure>

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' musí být v ENABLED_LINKED_FILE_TYPES (nastaveno v develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Z klienta Zotero OAuth (zaregistrujte se na https://www.zotero.org/oauth/apps)
# Typ aplikace: Prohlížeč 
# URL zpětného volání -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Šifruje klíč Zotero API v mongo (v dev nastaveno, aby se zabránilo zápisu souboru s klíčem
# do /var/lib/overleaf/data, který vývojový webový kontejner nemůže vytvořit)
# Jak vygenerovat: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Volitelné: směrujte serverové požadavky modulu na Zotero (OAuth + API) přes
# HTTP proxy (musí být dosažitelný z webového kontejneru; stejně jako github-sync)
# http://10.0.0.1:10808
# (Volitelné) 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://overleaf-pro.ayaka.space/on-premises/on-premises-cs/konfigurace/overleaf-toolkit/integrace-zotero.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.
