galterlibrary / digital-repository

DigitalHub - Institutional Repository for Galter Health Sciences
https://digitalhub.northwestern.edu/
5 stars 1 forks source link

[#1166] Fix page_count #1172

Closed sharpattack closed 1 year ago

sharpattack commented 1 year ago

Using provided list of records, use pdfinfo to retreive correct page count for associated files. closes #1166

sharpattack commented 1 year ago

Thank you for the approvals! I am still waiting from IT to install pdfinfo. I will post updates after it is installed and a quick manual test.

sharpattack commented 1 year ago

Good to merge now. IT installed pdfinfo on staging and production. I did a quick test on staging:

deploy@vtfsmghslrepo01 staging ~ $ pdfinfo /var/www/apps/galter_hydra_jetty/shared/fcrepo4-data/fcrepo.binary.directory/e3/78/b6/e378b63d7dca2d49af6cb6dc72e431404de70b79 | grep "Pages" | cut -d":" -f 2 | sed 's/ //g'
10
sharpattack commented 1 year ago

It looks like 95 records have had their page_count updated. Running a metadata export for Gretchen to double-check. Should be reflected in Prism at the next migration export/import.