Skip to content

Sidebar Actions Box download component - #81

Merged
rshiggin merged 4 commits into
mainfrom
arc-152-download-component
Aug 26, 2026
Merged

Sidebar Actions Box download component#81
rshiggin merged 4 commits into
mainfrom
arc-152-download-component

Conversation

@rshiggin

@rshiggin rshiggin commented Aug 24, 2026

Copy link
Copy Markdown
Member

Download dropdown for XML and PDF.

Testing file locations:

  • XML: data/ead2002/bhl/umich-bhl-0420.xml

  • PDF: data/pdf/bhl/umich-bhl-0420.pdf

download_utility.rb config

  def finding_aid_data
    ENV.fetch("FINDING_AID_DATA", "data")
  end

  def ead_file_path
    File.join(finding_aid_data, "ead2002", repo_slug, "#{ead_slug}.xml")
  end

  def pdf_file_path
    File.join(finding_aid_data, "pdf", repo_slug, "#{ead_slug}.pdf")
  end
actions-box-download

@rshiggin rshiggin changed the title Arc 152 download component Sidebar Actions Box download component Aug 24, 2026
@rshiggin
rshiggin marked this pull request as ready for review August 25, 2026 14:33
@rshiggin
rshiggin requested a review from ssciolla August 25, 2026 14:33
@rshiggin

Copy link
Copy Markdown
Member Author

Align paths for downloads with previous work by @ssciolla #43

PDF

Save Page

HTML
This one is harder to test right now because we don't have the generator set up and the controller action does some replacement to include JS/CSS tags. You can verify that the file downloading works though by doing the following:

Comment thread lib/download_utility.rb Outdated
@rshiggin
rshiggin merged commit c4b27e3 into main Aug 26, 2026
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.

2 participants