Dear Team,
We have installed DSpace 9.1. My concern is that I want to restrict users from downloading PDFs and allow them only to view the PDFs in DSpace. Could you please guide me on how to stop the download and enable view-only access
--
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 Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-community/cda0050c-8f5d-4a89-81eb-1e8b8455cdb9n%40googlegroups.com.
Advanced knowledge of the Angular 18 framework is required.
The ngx-extended-pdf-viewer integration will be done in the frontend and will only work in production mode.
First, you'll need a code editor, such as Visual Studio Code. Then, open your dspace-angular-dspace-9.1
project.
Step 1:
Run your dspace-angular-dspace-9.1
project using the command: npm run start:dev
Install the ngx-extended-pdf-viewer library with the following npm command: npm i ngx-extended-pdf-viewer --legacy-peer-deps
Edit the source code of the file-download-link
component, located in dspace-angular-dspace-9.1/src/app/shared/file-download-link
. You will need to modify the files file-download-link.component.ts and file-download-link.component.html.
Step 2:
Create a new component named pdf-viewer-modal
in the dspace-angular-dspace-9.1/src/app/shared
directory.
Write the source code for the new component, including the files pdf-viewer-modal.component.ts, pdf-viewer-modal.component.html, and pdf-viewer-modal.component.scss.
Step 3:
Recompile your project using the command: npm run build:prod
To view this discussion visit https://groups.google.com/d/msgid/dspace-community/CANm0gCsy20BqGfEAoQF7%2BW5xrX31piTvbmMXV-G1Ddocec1P-w%40mail.gmail.com.