> 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/ja/she-ding/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/7a4bfec583d87aac37e1cc076e2a53a340c0399a" alt=""><figcaption></figcaption></figure></div>

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

### Zotero 連携の設定

1. 開く [このリンクを](https://www.zotero.org/oauth/apps) Zotero OAuth クライアントを作成するために（画像のとおり）
2. 選択してください **アプリケーションタイプ**: **ブラウザ**
3. あなたの `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. あなたの `config/variables.env`

<figure><img src="/files/132f451aa491cdec77e42da3ecaf6deae35239f1" 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 で登録）
# アプリケーションタイプ: ブラウザ 
# コールバックURL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Zotero API キーを mongo に暗号化して保存します（dev ではキー ファイルを
# /var/lib/overleaf/data に書き込まないように設定します。これは dev の web コンテナでは作成できません）
# 生成方法: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# オプション: モジュールのサーバー側 Zotero リクエスト（OAuth + API）を
# HTTP プロキシ経由でルーティングします（web コンテナから到達可能である必要があります。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/ja/she-ding/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.
