Files
bookhoard/uploads/George Orwell/1984 (1269)/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

29 lines
5.2 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">1269</dc:identifier>
<dc:identifier opf:scheme="uuid" id="uuid_id">610793b4-b853-4f77-9259-5c903d862b7c</dc:identifier>
<dc:title>1984</dc:title>
<dc:creator opf:file-as="Orwell, George" opf:role="aut">George Orwell</dc:creator>
<dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (8.16.2) [https://calibre-ebook.com]</dc:contributor>
<dc:date>1949-06-08T04:00:00+00:00</dc:date>
<dc:description>&lt;div&gt;
&lt;p&gt;1984, published in 1949, is a dystopian and satirical novel. It revolves around Winston Smith, who lives in a nation called Oceania, in a province called Airstrip One, which represents present-day England. This state is controlled by the Party, headed by a mysterious leader who is addressed as Emmanuel Goldstein, also known as the Big Brother. The Party watches every single move that Smith and other citizens make. The nation's language and history is forcefully changed for the benefit of the Party. A new language, Newspeak, is being compulsively implemented to ensure works that have anything to do with political rebellion are omitted. In Oceania, even rebellious thoughts are illegal and are said to be the worst of all crimes. The people are suppressed and any form of individuality is not tolerated, including love and sex. Smith works as a low-ranking member of the Party who alters historical records. He hates the Party and thus buys an illegal diary in which he pens down his thoughts. He meets Julia, a coworker, who seems to been romantically inclined towards him. He however doubts that she is a Party spy who will get him imprisoned for his 'thoughtcrimes'. Her love turns out to be true and they have a covert affair. Smith's hatred for the Party grows day by day and he is convinced that a powerful Party official O'Brien is actually trying to overthrow the present government with the help of a secret group named the Brotherhood. As the story goes on, readers learn the twists and turns that life in Oceania has in store for Smith. He faces terror, betrayal, freedom, and a broken spirit. 1984 is the author's haunting vision of the future. The book has been adapted into television programmes, films, radio broadcasts and plays. In 2003, the book was number 8 on BBC's survey The Big Read. It was 6th and 13th on the reader's and editor's list of Modern Library 100 Best Novels, respectively. In 2005, it was added to the 100 Best English Language Novel from 1923 to 2005 by TIME magazine. ABOUT THE AUTHOR: Eric Arthur Blair, better known by his pen name George Orwell (1903-1950), was an English author and journalist. His work is marked by keen intelligence and wit, a profound awareness of social injustice, an intense opposition to totalitarianism, a passion for clarity in language, and a belief in democratic socialism. In addition to his literary career Orwell served as a police officer with the Indian Imperial Police in Burma from 1922-1927 and fought with the Republicans in the Spanish Civil War from 1936-1937. He was severely wounded when he was shot through his throat. Orwell and his wife were accused of 'Rabid Trotskyism' and tried in absentia in Barcelona, along with other leaders of the POUM, in 1938. However by then they had escaped from Spain and returned to England. Between 1941 and 1943, Orwell worked on propaganda for the BBC. In 1943, he became literary editor of the Tribune, a weekly left-wing magazine. He was a prolific polemical journalist, article writer, literary critic, reviewer, poet and writer of fiction, and considered perhaps the twentieth century's best chronicler of English culture. Orwell is best known for the dystopian novel Nineteen Eighty-Four (published in 1949) and the satirical novella Animal Farm (1945)-they have together sold more copies than any two books by any other twentieth-century author. His 1938 book Homage to Catalonia, an account of his experiences as a volunteer on the Republican side during the Spanish Civil War, together with numerous essays on politics, literature, language, and culture, are widely acclaimed. In 2008, The Times ranked him second on a list of 'The 50 greatest British writers since 1945'.&lt;/p&gt;&lt;/div&gt;</dc:description>
<dc:publisher>Plume</dc:publisher>
<dc:identifier opf:scheme="ISBN">9788193545836</dc:identifier>
<dc:identifier opf:scheme="GOODREADS">61439040</dc:identifier>
<dc:identifier opf:scheme="GOOGLE">aPlAtgEACAAJ</dc:identifier>
<dc:language>eng</dc:language>
<dc:subject>Classics</dc:subject>
<dc:subject>Science Fiction</dc:subject>
<dc:subject>Politics</dc:subject>
<dc:subject>Fantasy</dc:subject>
<meta name="calibre:rating" content="8"/>
<meta name="calibre:timestamp" content="2026-01-26T18:33:42.015031+00:00"/>
<meta name="calibre:title_sort" content="1984"/>
</metadata>
<guide>
<reference type="cover" title="Cover" href="cover.jpg"/>
</guide>
</package>