Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download link tries to save file as title not filename #39

Open
irrelevantdotcom opened this issue Feb 15, 2020 · 0 comments
Open

Download link tries to save file as title not filename #39

irrelevantdotcom opened this issue Feb 15, 2020 · 0 comments

Comments

@irrelevantdotcom
Copy link

  1. The download link appears to be set twice in theme.inc, lines 41-44 and lines 55-58.

  2. When clicked on, the browser tries to save a file named after the title of the object, not it's original filename as detailed in the link.

I fixed this by changing line 57 to:
$variables['islandora_disk_image'] = l($variables['islandora_datastream_label'], $disk_image_url, array('attributes' => array('download' => $variables['islandora_datastream_label']), 'html' => TRUE));

This adds a "download" tag to the link, offering the original filename. I'm not sure if another way would be better, but for now this works for me.

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

No branches or pull requests

1 participant