Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

As a user, I want to view thumbnails for each page of a book with indicators for which pages are annotated so that I can view the annotations. #79

Open
rlskoeser opened this issue Jun 18, 2018 · 1 comment

Comments

@rlskoeser
Copy link
Contributor

rlskoeser commented Jun 18, 2018

Notes for testing

  • Books that are digitized should have a "view book" link on the detail page. Click "view book" to see a page with all the thumbnails for pages that were digitized.
  • Pages with annotations recorded in the database will have an indicator at the top right of the page for textual and graphical annotations.

Notes for development

Thumbnail view for a single book with indicators for annotation (from site flow)

@rlskoeser
Copy link
Contributor Author

Proposed url: /books/book-slug/pages/

Should return a 404 for books with no associated digital edition (as well as for book slug not found)

Pages of a book can be accessed via digital edition canvases:
book.digital_edition.canvases.all()
Each canvas has a iiif_image_id that can be used to display the image for the page.

To check if a canvas has associated annotations, you can use:
canvas.annotation_set.count()

Textual/graphical annotation is based on the presence of content in the text field. To make this easy to access in the template, we'll probably want to extend the AnnotationQuerySet in django-annotator-store and add custom filters:

  • textual annotation: .exclude(text='')
  • graphical annotation: .filter(text='')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants