Skip to content

Pagedjs fixes

Dan Visel requested to merge pagedjs-fixes into main

A bunch of fixes to the PagedJS code. This does not fix the blocking issue here, but when that is fixed, this should work; in the interim, this is a great improvement over the previous code.

  • Per Vignesh's recommendation, we're now just passing the manuscript ID from the front end to the back end, which is probably slightly faster.
  • PDFs now only download a single time; they are no longer opening in a new tab. (That code is in there commented out and could be turned back on if that's what's desired.)
  • I've separated out the code that transforms the HTML from Wax and metadata into the final HTML using Julien's template. The idea with this is that we could use this code to send Flax HTML transformed using the same template.

Merge request reports