UCDavisLibrary / fin-ucd-lib-server

MIT License
0 stars 0 forks source link

Allow for Proper PDF downloads #90

Open qjhart opened 2 years ago

qjhart commented 2 years ago

When an object has a single associatedMedia Item, for example E184.7.F79 which points to this LDP record

where a complete PDF of the document exists, then this PDF file should be downloadable directly from the website.

The current UI page is a bit messed up, the single page download shows a native (pdf) download, which isn't right, while the complete download shows an archive of one-file, that zips this PDF file.

Instead, the single page download should still just be that image, while the complete download should offer two choices, both the image set, and the single PDF download.

@EricNebeker crafted this example.

UcDust commented 2 years ago

After chatting with @qjhart and @wrenaria, we're going to make a few other changes, also more specifics on the changes listed above.

  1. Changing the verbiage on the radio buttons for downloads, changing Single and Full Set to Selected Page and All Pages.
  2. The count of pages in the All Pages radio needs to pull the actual number of pages that will be zipped, not (1 pages), for instance.
  3. If there is only a PDF available for a collection, the Selected Page radio should be disabled and the All Pages dropdowns/buttons should be displayed.
  4. PDF should still be removed from the download on Selected Page.
  5. On All Pages, a dropdown should be added to select zip (tiffs) vs pdf, and the Download button should look like it does on the Selected Page.
Screen Shot 2022-09-12 at 1 39 10 PM
UcDust commented 2 years ago

PR in https://github.com/UCDavisLibrary/fin-ucd-lib-server/pull/92