> 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/on-premises-no/konfigurasjon/overleaf-toolkit/zotero-integrasjon.md).

# Zotero-integrasjon

{% hint style="info" %}
Denne funksjonen ble opprinnelig utviklet av [davrot](https://github.com/davrot) og [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), modifisert av [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) med OAuth. Den er introdusert fra v6.2.0 og nyere. Den er fortsatt i betastatus. Vi trenger tilbakemeldingene dine hvis du opplever noen problemer.
{% endhint %}

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

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

### Sett opp Zotero-integrasjon

1. Åpne [denne lenken](https://www.zotero.org/oauth/apps) for å opprette en Zotero OAuth-klient (som bildet viser)
2. Velg **Applikasjonstype**: **Nettleser**
3. Sett opp callback-URL med din `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Konfigurer din `config/variables.env`&#x20;

<figure><img src="/files/1890128cdc4dd27f0822a315d6f33b6a220bd9da" alt="" width="375"><figcaption></figcaption></figure>

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' må være i ENABLED_LINKED_FILE_TYPES (angitt i develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Fra en Zotero OAuth-klient (registrer på https://www.zotero.org/oauth/apps)
# Applikasjonstype: Nettleser 
# Callback-URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Krypterer Zotero API-nøkkelen i Mongo (sett i dev for å unngå å skrive en nøkkelfil
# til /var/lib/overleaf/data, som dev-webbeholderen ikke kan opprette)
# Slik genereres den: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Valgfritt: send modulens server-side Zotero-forespørsler (OAuth + API) gjennom
# en HTTP-proxy (må være tilgjengelig fra webbeholderen; samme som github-sync)
# http://10.0.0.1:10808
# (Valgfritt) 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/on-premises-no/konfigurasjon/overleaf-toolkit/zotero-integrasjon.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.
