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





On Fri, Apr 4, 2025 at 4:14 AM Kondwani Hara <[email protected]> wrote:

> 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.
>
> On Fri, 4 Apr 2025 at 00:11, Andrew K <[email protected]> wrote:
>
>> 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 <[email protected]> пише:
>>
>>> 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 <[email protected]> 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 <[email protected]> пише:
>>>>
>>>>> 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 [email protected].
>>>>> To view this discussion visit
>>>>> https://groups.google.com/d/msgid/dspace-tech/ecaf9a8c-c060-4c2c-8168-d0cc99d3ba97n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/dspace-tech/ecaf9a8c-c060-4c2c-8168-d0cc99d3ba97n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> 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 [email protected].
>>>> To view this discussion visit
>>>> https://groups.google.com/d/msgid/dspace-tech/CANez4yDe%3DPfwrm5%2BH3sX49qSB9iM9KG22NCSPAB6pzJnp4f0cA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/dspace-tech/CANez4yDe%3DPfwrm5%2BH3sX49qSB9iM9KG22NCSPAB6pzJnp4f0cA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>
>> --
>> 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 [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/dspace-tech/CADsVQCHTnaMZ3EdO2v%3DN5Wpc3BxRCg06t3xEo-8_nOdoRs9NNw%40mail.gmail.com
> <https://groups.google.com/d/msgid/dspace-tech/CADsVQCHTnaMZ3EdO2v%3DN5Wpc3BxRCg06t3xEo-8_nOdoRs9NNw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/CAC5xKF0JmLoWkRSZ87KCDr7W6gPQjsMG8d%2BaKp0JxBSwUHovWQ%40mail.gmail.com.

Reply via email to