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

Bitstreams must always open in new tab #3657

Open
erpnedir opened this issue Nov 15, 2024 · 3 comments
Open

Bitstreams must always open in new tab #3657

erpnedir opened this issue Nov 15, 2024 · 3 comments
Labels
needs triage New issue needs triage and/or scheduling new feature

Comments

@erpnedir
Copy link

Currently, bitstreams open in the main window if the file size is below the threshold value. It would be better to open it in a new tab.
Users go back and forth. As the bitstream and metadatas may differ, it would be better to see both at the same time in different tabs.

Some discussion may be seen on mail thread: https://groups.google.com/g/dspace-community/c/6DzqJsv2mcI/m/lmKlvI-xBgAJ

@erpnedir erpnedir added needs triage New issue needs triage and/or scheduling new feature labels Nov 15, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Nov 15, 2024
@alanorth
Copy link
Contributor

Hi @erpnedir. I noticed this change in behavior when we migrated to DSpace 7. I filed an issue on the backend last year: DSpace/DSpace#8900

@erpnedir
Copy link
Author

Hi @alanorth I understand that your issue proposes to open the bitstream inline instead of download. We can achive this by configuring a high value to the threshold parameter webui.content_disposition_threshold.
I offer to open it in browser always in a new tab. The users we talk go back and forth among the pdf and item page. That creates a bad user experience.
If that behaviour (opening the bitstream on the same page) has any benefit to user, this can be done by a parameter. But if there is no benefit of the user, I think that bitstreams must always open in new tab of browser if the file size is below the threshold value.

@alanorth
Copy link
Contributor

@erpnedir Ah yes you are right, I filed that issue over a year ago and forgot that it's slightly different. The bug is with the content-disposition header behaving differently in DSpace 7.

Regarding your suggestion to always open bitstreams in a new window, we should get more feedback from other repository administrators to see if their users feel the same. Currently the only links that DSpace opens in a new window are those that are external to the site (for example DOIs or other external links on the item view page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New issue needs triage and/or scheduling new feature
Projects
Status: 🆕 Triage
Development

No branches or pull requests

2 participants