> 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/ar/althyeh/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/75050c34b519a92a260b80e2c1e7c14df3ccb435" alt=""><figcaption></figcaption></figure></div>

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

### إعداد تكامل Zotero

1. افتح [هذا الرابط](https://www.zotero.org/oauth/apps) لإنشاء عميل OAuth لـ Zotero (كما تُظهر الصورة)
2. اختر **نوع التطبيق**: **المتصفح**
3. قم بإعداد رابط Callback باستخدام `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. قم بتكوين `config/variables.env`

<figure><img src="/files/cf5a61642740b117b353760e1dc1b6c9b11d5905" 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

# من عميل OAuth الخاص بـ Zotero (سجّل في https://www.zotero.org/oauth/apps)
# نوع التطبيق: متصفح 
# رابط Callback -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# يشفّر مفتاح API الخاص بـ Zotero في mongo (اضبطه في بيئة التطوير لتجنب كتابة ملف مفتاح
# إلى /var/lib/overleaf/data، والذي لا يستطيع حاوي الويب في بيئة التطوير إنشاءه)
# كيفية التوليد: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# اختياري: وجّه طلبات Zotero من جهة الخادم الخاصة بالوحدة (OAuth + API) عبر
# وكيل HTTP (يجب أن يكون قابلاً للوصول من حاوي الويب؛ مثل 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/ar/althyeh/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.
