• Robert Knight's avatar
    Support testing whether user is outside page range for assignment · c81a7191
    Robert Knight authored
    Extend the matching between focus filters and document segments to support
    matching page range focus filters against VitalSource chapter page ranges.
    
    In the case of VitalSource PDF books, each page is a separate segment, so this
    matching is simple. For EPUB-based books a segment can span a range of pages,
    and the `<mosaic-book>` element doesn't provide an API rather returns the page
    range directly as far as I can see. Instead we can use
    `MosaicBookElement.getPageBreaks` to get a list of the CFIs and corresponding
    labels of pages, which can then be matched against the current segment's CFI.
    
     - Add `SegmentInfo.pages` field which contains a page range for a
       segment
    
     - Support matching `SegmentInfo.pages` against focus filters in
       `segmentMatchesFocusFilters`.
    
     - Display data from `SegmentInfo.pages` in "Version" tab in sidebar
    
     - Add `getPageBreaks` API to VitalSource interfaces and use the data
       from this API to populate the `SegmentInfo.pages` field in the VS
       integration.
    
     - Extend the fake VitalSource books in the dev server to return fake page break
       information.
    c81a7191
Name
Last commit
Last update
..
account-id-test.js Loading commit data...
annotation-metadata-test.js Loading commit data...
annotation-segment-test.js Loading commit data...
annotation-sharing-test.js Loading commit data...
annotation-user-test.js Loading commit data...
annotations-by-user-test.js Loading commit data...
build-thread-test.js Loading commit data...
export-annotations-test.js Loading commit data...
filter-annotations-test.js Loading commit data...
group-list-item-common-test.js Loading commit data...
group-organizations-test.js Loading commit data...
groups-test.js Loading commit data...
import-test.js Loading commit data...
is-third-party-service-test.js Loading commit data...
permissions-test.js Loading commit data...
query-parser-test.js Loading commit data...
session-test.js Loading commit data...
tabs-test.js Loading commit data...
theme-test.js Loading commit data...
thread-annotations-test.js Loading commit data...
thread-sorters-test.js Loading commit data...
thread-test.js Loading commit data...
version-data-test.js Loading commit data...
visible-threads-test.js Loading commit data...