change to request copy code.

40 views
Skip to first unread message

Jose Blanco

unread,
Mar 14, 2023, 1:27:28 PM3/14/23
to DSpace Technical Support
I'd like to change the request copy code in 7.4 to only present the
Request Copy page for a file if the item contains these two metadata
items:

email.requestcopy
name.requestcopy

So not just for all bitstreams with restricted permissions, but for
the items with these metadata.

Has anyone done this? Any suggestions on where in the code to put this logic?

Thank you!
-Jose

Jose Blanco

unread,
Mar 14, 2023, 2:11:03 PM3/14/23
to DSpace Technical Support
I'm seeing this in the angular debugger:

dspace-rest-response-parsing.service.ts:200 cannot deserialize type itemrequest

Jose Blanco

unread,
Mar 14, 2023, 5:20:49 PM3/14/23
to DSpace Technical Support
I found a solution in the angular file
file-download-link.components.ts. I can test for the metadata value
of the item there.

-Jose

On Tue, Mar 14, 2023 at 1:27 PM Jose Blanco <bla...@umich.edu> wrote:
>

Agustina Martinez

unread,
Mar 16, 2023, 5:00:45 AM3/16/23
to DSpace Technical Support
Hi José,

I believe that for this approach to work the metadata fields have to be public, which may not be desired.

Best, 
Agustina

Reply all
Reply to author
Forward
0 new messages