Files
bookhoard/uploads/George Eliot/Middlemarch (1268)/metadata.opf
T
john-okeefe 935b867219 feat: add highlights and notes annotation system
This major update implements a complete user annotation system:

## 🎯 New Features
- User notes with position tracking for media items
- Text highlighting with customizable colors
- Highlight-note associations for detailed annotations
- Full CRUD API for both notes and highlights
- Backward compatibility with existing ebook endpoints

## 📊 Database Changes
- Add media_notes table (id, media_item_id, user_id, content, position, timestamps)
- Add media_highlights table (id, media_item_id, user_id, selection_text, start/end_position, color, optional note_id)
- Add foreign key relationships with CASCADE deletes
- Add proper indexes for performance
- Add database schema views for ebook backward compatibility

## 🔧 API Implementation
- Complete REST API endpoints for notes and highlights
- JWT authentication with proper middleware bypass
- Request validation with meaningful error responses
- UUID validation and type safety
- Support for hex color codes in highlights

## 🧪 Testing & Documentation
- Comprehensive test suite covering authentication scenarios
- Bruno API collection for manual testing
- Detailed testing guide with troubleshooting
- Updated documentation in README and TESTING.md

## 📁 Backward Compatibility
- Existing ebook endpoints continue working
- Database views maintain API contracts
- No breaking changes for existing integrations

The annotation system is now fully functional and ready for production use.
2026-01-28 17:12:40 -05:00

33 lines
3.3 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:identifier opf:scheme="calibre" id="calibre_id">1268</dc:identifier>
<dc:identifier opf:scheme="uuid" id="uuid_id">dc0ee270-5594-4cb4-b056-f4828eed4b89</dc:identifier>
<dc:title>Middlemarch</dc:title>
<dc:creator opf:file-as="Eliot, George" opf:role="aut">George Eliot</dc:creator>
<dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (8.16.2) [https://calibre-ebook.com]</dc:contributor>
<dc:date>2008-07-10T04:00:00+00:00</dc:date>
<dc:description>&lt;div&gt;
&lt;p&gt;Writing at the very moment when the foundations of Western thought were being challenged and undermined, George Eliot fashions in Middlemarch (1871-2) the quintessential Victorian novel, a concept of life and society free from the dogma of the past yet able to confront the scepticism that was taking over the age. In a panoramic sweep of English life during thr years leading up to the First Reform Bill of 1832, Eliot explores nearly every subject of concern to modern life: art, religion, science, politics, self, society, human relationships. Among her characters are some of the most remarkable portraits in English literature: Dorothea Brooke, the heroine, idealistic but näive; Rosamond Vincy, beautiful and egoistic: Edward Casaubon, the dry-as-dust scholar: Tertius Lydgate, the brilliant but morally-flawed physician: the passionate artist Will Ladislaw: and Fred Vincey and Mary Garth, childhood sweethearts whose charming courtship is one of the many humorous elements in the novel's rich comic vein. Felicia Bonaparte has provided a new Introduction for this updated edition, the text of which is taken from David Carroll's Clarendon Middlemarch (1986), the first critical edition. ABOUT THE SERIES: For over 100 years Oxford World's Classics has made available the widest range of literature from around the globe. Each affordable volume reflects Oxford's commitment to scholarship, providing the most accurate text plus a wealth of other valuable features, including expert introductions by leading authorities, helpful notes to clarify the text, up-to-date bibliographies for further study, and much more.&lt;/p&gt;&lt;/div&gt;</dc:description>
<dc:publisher>OUP Oxford</dc:publisher>
<dc:identifier opf:scheme="ISBN">9780191585616</dc:identifier>
<dc:identifier opf:scheme="GOOGLE">1N9qjg_Xq0IC</dc:identifier>
<dc:language>eng</dc:language>
<dc:subject>Fiction</dc:subject>
<dc:subject>Classics</dc:subject>
<dc:subject>Didactic fiction</dc:subject>
<dc:subject>City and town life -- Fiction</dc:subject>
<dc:subject>England -- Fiction</dc:subject>
<dc:subject>Young women -- Fiction</dc:subject>
<dc:subject>Love stories</dc:subject>
<dc:subject>Domestic fiction</dc:subject>
<dc:subject>Married people -- Fiction</dc:subject>
<dc:subject>Bildungsromans</dc:subject>
<meta name="calibre:timestamp" content="2026-01-26T18:33:41+00:00"/>
<meta name="calibre:title_sort" content="Middlemarch"/>
</metadata>
<guide>
<reference type="cover" title="Cover" href="cover.jpg"/>
</guide>
</package>