Document Viewer for DSpace 8.0

141 views
Skip to first unread message

Kondwani Hara

unread,
Apr 3, 2025, 2:55:17 AM4/3/25
to DSpace Technical Support
Good morning,

I would like to find out what options do I have to integrate a document viewer in DSpace 8.0 so that users are able to view the documents within the browser instead of downloading them.

Your kind assistance is appreciated.

Regards,

Kondwani Hara.

Kalyan kumar

unread,
Apr 3, 2025, 12:24:04 PM4/3/25
to Kondwani Hara, DSpace Technical Support
I would prefer to integrate with https://viewerjs.org for pdf.

Kalyan
Greenbooks Imaging Services LLP


--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/ecaf9a8c-c060-4c2c-8168-d0cc99d3ba97n%40googlegroups.com.

Kondwani Hara

unread,
Apr 3, 2025, 3:26:57 PM4/3/25
to Kalyan kumar, DSpace Technical Support
Is there any documentation to help me integrate viewerjs in DSpace 8.0?

Andrew K

unread,
Apr 3, 2025, 3:59:21 PM4/3/25
to Kondwani Hara, DSpace Technical Support
This parameter in dspace.cfg might help

#### Content Inline Disposition Threshold ####
# Set the max size of a bitstream that can be served inline
# Use -1 to force all bitstream to be served inline
webui.content_disposition_threshold = -1

чт, 3 квіт. 2025 р. о 09:55 Kondwani Hara <kon...@gmail.com> пише:
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/ecaf9a8c-c060-4c2c-8168-d0cc99d3ba97n%40googlegroups.com.


--
Best regards,
Andrew

Ahmad Nasser

unread,
Apr 3, 2025, 6:02:31 PM4/3/25
to Andrew K, Kondwani Hara, DSpace Technical Support
What this parameter doing and can i need to install pdfviewer in Dspace or not can give example


On Thursday, April 3, 2025, Andrew K <pkm...@gmail.com> wrote:
This parameter in dspace.cfg might help

#### Content Inline Disposition Threshold ####
# Set the max size of a bitstream that can be served inline
# Use -1 to force all bitstream to be served inline
webui.content_disposition_threshold = -1

чт, 3 квіт. 2025 р. о 09:55 Kondwani Hara <kon...@gmail.com> пише:
Good morning,

I would like to find out what options do I have to integrate a document viewer in DSpace 8.0 so that users are able to view the documents within the browser instead of downloading them.

Your kind assistance is appreciated.

Regards,

Kondwani Hara.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.


--
Best regards,
Andrew

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/CANez4yDe%3DPfwrm5%2BH3sX49qSB9iM9KG22NCSPAB6pzJnp4f0cA%40mail.gmail.com.

Andrew K

unread,
Apr 3, 2025, 6:11:15 PM4/3/25
to Ahmad Nasser, Kondwani Hara, DSpace Technical Support
Why would you need a PDF viewer when any modern browser displays pdf. This parameter shows files smaller than N bytes (or all files when -1) in a browser (inline) instead of downloading them. 

пт, 4 квіт. 2025 р. о 01:02 Ahmad Nasser <ahmad.n...@gmail.com> пише:
What this parameter doing and can i need to install pdfviewer in Dspace or not can give example

On Thursday, April 3, 2025, Andrew K <pkm...@gmail.com> wrote:
This parameter in dspace.cfg might help

#### Content Inline Disposition Threshold ####
# Set the max size of a bitstream that can be served inline
# Use -1 to force all bitstream to be served inline
webui.content_disposition_threshold = -1

чт, 3 квіт. 2025 р. о 09:55 Kondwani Hara <kon...@gmail.com> пише:
Good morning,

I would like to find out what options do I have to integrate a document viewer in DSpace 8.0 so that users are able to view the documents within the browser instead of downloading them.

Your kind assistance is appreciated.

Regards,

Kondwani Hara.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.


--
Best regards,
Andrew

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.


--
Best regards,
Andrew

Kondwani Hara

unread,
Apr 3, 2025, 6:44:07 PM4/3/25
to Andrew K, Ahmad Nasser, DSpace Technical Support
I tried your configuration: It displays the book in the browser but there is still a download button which allows the reader to download. I do not want that.

Kalyan kumar

unread,
Apr 3, 2025, 7:09:38 PM4/3/25
to Kondwani Hara, Andrew K, Ahmad Nasser, DSpace Technical Support
I got your point. If this is your requirement, then you have to opt for external document viewer like viewer js into dspace. There is a set of codes to be added into existing code where the file hyperlink is displayed and hence the viewer can be controlled. 
1. First, you shall modify the viewerjs code in such a way that the display of "download button"is not available in the file viewer. It has to override the functionality of the browser. 
2. The concern here is, the viewer will be applicable for all the users, as there is no specific Access Control Level /ACL (Role Based Access Control /RBAC) policy available to control the viewer. So, if the viewer is modified and integrated within dspace code, then this functionality will be common across all the users. and no one will have the file downloading provision. Or need to add more code to accommodate individual or group policies to give download permission to specific users.

We have been using this integrated functionality in software with  RABC based file viewer supporting many document formats for view and download. Will get more details. We are planning to contribute this functionality, but with a timeline in the next major release. In between, We will analyse and give logical view / guidance on this integration, which you shall take forward for immediate use.

Kalyan
Greenbooks Imaging Services LLP

 

 
Reply all
Reply to author
Forward
0 new messages