Skip to content

Conversation

@ajkiessl
Copy link
Contributor

@ajkiessl ajkiessl commented Jan 27, 2026

closes psu-libraries/etda_workflow#976

Adds this popup when download links are clicked to start remediation (on show and index pages):
Screenshot 2026-01-28 at 11 24 41 AM

I updated the rdoc gem to get rid of a bunch of deprecation warnings. Also, I refactored the fake_solr_document to move the variables out of the initialize method, and into their own memoized private methods. This just made it easier to work with.

We do not have a webdriver integrated with Explore, so I cannot run full JS included integration tests to confirm the javascript works. However, the unit tests I added cover pretty much everything happening in the render_download_links method in the custom BlacklightDisplayHelper module. This and bootstrap do 99% of the work. I figured it wasn't worth adding webdrivers for this change.

We might want to consider adding a light webdriver like Cuprite at some point.

…iles. Refactor some things, particularly fake_solr_document. Moves variabels in initialize to private methods
…fic. This is necessary for links to be correct when multiple files. Reversed modal inclusion logic, this was wrong
@ajkiessl ajkiessl changed the title WIP: Auto remediation notification on download link Auto remediation notification on download link Jan 28, 2026
@ajkiessl ajkiessl marked this pull request as ready for review January 28, 2026 16:22
@ajkiessl
Copy link
Contributor Author

ajkiessl commented Jan 28, 2026

Also, this depends on #240 for the remediated file method on SolrDocument. I just copied the code currently there. There will likely be a decent merge conflict between this and #240, especially in the download links logic.

Copy link
Contributor

@jlandiseigsti jlandiseigsti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code all looks good...just some text changes


def db_legacy_id
@db_legacy_id ||= Faker::Number.unique.within(range: 1..1000)
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate you cleaning this up.

<p>We're generating an accessible version of this file to meet ADA Title II requirements. This process may take up to one hour. Please return later to access the accessible copy once it's ready.</p>

<h6><strong>What's happening:</strong></h6>
<p>An accessible PDF is generated using Adobe with AI used to generate alternative text (alt text) for images in the PDF.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "an accessible PDF is being generated"?


<h6><strong>Quality check:</strong></h6>
<p>The Libraries' Adaptive Technology and Services team will review and correct the accessible version manually, but that review may occur after the file becomes available.</p>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I actually don't think this is true for files on ETDA Explore. My understanding is that neither the Libraries nor the grad school have the capacity to review and correct ETDA files manually, and so this heading and paragraph should be removed until such time as there actually is a manual review.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the quality check part, and also the email. I also added a line to let the user know they can still download the current version by clicking "OK". Hopefully that prevents any confusion about whether they can still download the file.

Copy link
Contributor

@jlandiseigsti jlandiseigsti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ajkiessl ajkiessl merged commit 7e02844 into main Jan 28, 2026
1 check passed
@ajkiessl ajkiessl deleted the 976-remed-modal branch January 28, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore - Show message about remediation upon download

3 participants