> 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/ru/konfiguraciya/overleaf-toolkit/zotero-integration.md).

# Интеграция Zotero

{% hint style="info" %}
Эта функция изначально разработана [davrot](https://github.com/davrot) и [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), изменена [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) с OAuth. Она была представлена начиная с v6.2.0 и позже. Она всё ещё находится в бета-версии. Нам нужна ваша обратная связь, если у вас возникнут какие-либо проблемы.
{% endhint %}

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

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

### Настройка интеграции Zotero

1. Открыть [эту ссылку](https://www.zotero.org/oauth/apps) для создания клиента OAuth Zotero (как показано на изображении)
2. Выберите **Тип приложения**: **Браузер**
3. Настройте Callback URL с вашим `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. Настройте ваш `config/variables.env`

<figure><img src="/files/5924f1c7afa367ef43a7938623f388ac0d4ace71" alt="" width="375"><figcaption></figcaption></figure>

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' должен быть в ENABLED_LINKED_FILE_TYPES (устанавливается в develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Из клиента Zotero OAuth (зарегистрируйтесь на https://www.zotero.org/oauth/apps)
# Тип приложения: Браузер 
# Callback URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Шифрует API-ключ Zotero в mongo (задаётся в dev, чтобы избежать записи файла ключа
# в /var/lib/overleaf/data, который dev web container не может создать)
# Как сгенерировать: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Необязательно: направлять серверные запросы модуля к Zotero (OAuth + API) через
# HTTP-прокси (должен быть доступен из web container; как в github-sync)
# http://10.0.0.1:10808
# (Необязательно) 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/ru/konfiguraciya/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.
