share-extras / media-viewers

Enhanced document previews for a range of different document and media types, plus a dashlet allowing any content item to be displayed on a site dashboard.
Apache License 2.0
29 stars 23 forks source link

Filmstrip view pagination interfere with PdfJs pagination #27

Closed loftux closed 10 years ago

loftux commented 10 years ago

To reproduce

  1. Enable PdfJs in module configuration
  2. Add more than 50 documents to a folder, some must be pdf:s
  3. Switch to filmstrip view
  4. View a pdf
  5. Switch to view a non pdf documents
  6. Try to use document list paginator Expected: Navigate to next page Actual: PdfJs picks up the navigation request and errors out since there is no pdf loaded, and the page requested doesn't exist.
loftux commented 10 years ago

Problem narrowed down to be the use of url hash #page that is also used for document library page navigation.
This leads to

We can solve this by

I've tested the last option, this works, but if you are on page > 1 in the page listings, the display of the pdf starts on a page other than first page.

loftux commented 10 years ago

Further review of the issue and my conclusion is that we should disable the link button for all pages other than document details (or by configuration as in issue #12). For document library it is not possible to link to an individual file so that it is the one displayed in filmstrip view.

wabson commented 10 years ago

I agree with removing the link button for pages other than document-details. This can be done as part of the implemention of #12.