I think you have misunderstood the instructions: Either the installation via zip OR with composer /npm.
So just extract the zip to the module folder on the server and install the module in the backend of Omeka. No further commands on the command line are necessary.
Hi @evansad, it looks like @Daniel_KM made a breaking change in a patch version 3.1.2 update where pdf.js is no longer included in the distributed zip (or the repo). I think there are a couple of options to get it working:
Manually add it back in locally to your installed module in the appropriate directory
Follow the instructions to install it via npm
Fork the repo, add pdf.js back in, and make a pull request for @Daniel_KM to merge into the original repo
Reach out to @Daniel_KM directly and wait for the module to be updated (either the code or the readme since we don’t know if this change was intentional or not)
@dan hello. It doess not work. I tried he zip files from several versions, new and old and I get the same message : The library “Mozilla pdf.js” should be installed. See module’s installation documentation.
PdfViewer-3.3.4.1 definitely does not work on the latest version of Omeka S. The instructions are incorrect as it refers to a folder “node_modules/pdf.js” which does not exist.
However the latest pre-release version of the module does work.
Is there an estimated date when the pre-release version will be finished?