> 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/ar/aliadadat/overleaf-toolkit/tkaml-zotero.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. قم بإعداد عنوان URL للاستدعاء مع `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. قم بتهيئة `config/variables.env`&#x20;

<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)
# نوع التطبيق: المتصفح 
# عنوان URL للاستدعاء -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# يقوم بتشفير مفتاح واجهة برمجة تطبيقات 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://overleaf-pro.ayaka.space/on-premises/ar/aliadadat/overleaf-toolkit/tkaml-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.
