# Maktabah (Library): Author's text and editor's footnotes, kept apart

Source: https://qurangallery.com/docs/maktabah/author-text-and-footnotes

> See how Maktabah keeps the author's text apart from the editor's footnotes in the reader, in search results and in the Quran Gallery MCP.

Maktabah keeps a page's main text, which is the author's, apart from the editor's footnotes, and it says which layer a search matched.

## In the reader

1. Read the main text as the author's words.
2. Look below it for **Editor's footnotes**. The line above them reads: "Footnotes are the editor's words, not the author's."
3. Choose a reference in the main text, such as **(1)**. The editor's note opens beside the page.
4. Use **Back to the text** in the note to return to the reference.

A page that has footnotes shows them under that heading. The notes can quote another scholar, and the quotation is still the editor's, not the author's.

## In search results

- By default, search looks at the main text. Tick **Also search the footnotes** to include the editor's notes.
- **Exact spelling** always checks both the main text and the footnotes, so the box is hidden in that mode.
- When the matched words come from a note, the result labels them **In the footnotes** and shows the note apart from the main text snippet.

## In the Quran Gallery MCP

For developers, every passage from `shamela_search_library` carries a `matchedIn` field: `body` for the author's text, `footnote` for the editor's note, `both` when the words occur in each, and `unknown` when the layer cannot be told. The raw `shamela_search` tool also accepts `search_in` with `body` or `foot`.

Read [Separate the author's text from the editor's footnotes](https://qurangallery.com/docs/mcp/search-main-text-or-footnotes) for the field list and live examples.

## Next steps

- [Maktabah overview](https://qurangallery.com/docs/maktabah/overview)
- [Check that a quote is really in a book](https://qurangallery.com/docs/maktabah/check-a-quote-in-a-book)
