> 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/fi/maaritys/overleaf-toolkit/zotero-integraatio.md).

# Zotero-integraatio

{% hint style="info" %}
Tämän ominaisuuden on alun perin kehittänyt [davrot](https://github.com/davrot) ja [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), jota on muokannut [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) OAuthin avulla. Se on otettu käyttöön versiosta v6.2.0 alkaen. Se on yhä beta-vaiheessa. Tarvitsemme palautettasi, jos sinulla on jotain ongelmaa.
{% endhint %}

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

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

### Asenna Zotero-integraatio

1. Avaa [tämä linkki](https://www.zotero.org/oauth/apps) luodaksesi Zotero OAuth -asiakkaan (kuten kuvassa näkyy)
2. Valitse **Sovellustyyppi**: **Selain**
3. Määritä palautus-URL omalla `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Määritä oma `config/variables.env`&#x20;

<figure><img src="/files/0c053e825c1f53c90498366129771b1de4e2c247" alt="" width="375"><figcaption></figcaption></figure>

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' täytyy olla ENABLED_LINKED_FILE_TYPES-listassa (asetettu tiedostossa develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Zotero OAuth -asiakkaalta (rekisteröidy osoitteessa https://www.zotero.org/oauth/apps)
# Sovellustyyppi: selain 
# Palautus-URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Salakirjoittaa Zotero API -avaimen mongossa (aseta kehityksessä välttääksesi avaintiedoston kirjoittamisen
# kansioon /var/lib/overleaf/data, jota kehityksen web-säiliö ei voi luoda)
# Kuinka luodaan: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Valinnainen: reititä moduulin palvelinpuolen Zotero-pyynnöt (OAuth + API) kautta
# HTTP-välityspalvelimen kautta (sen on oltava saavutettavissa web-säiliöstä; sama kuin github-sync)
# http://10.0.0.1:10808
# (Valinnainen) 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/fi/maaritys/overleaf-toolkit/zotero-integraatio.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.
