Groups
Groups
Sign in
Groups
Groups
DSpace Technical Support
Conversations
About
Send feedback
Help
change to request copy code.
40 views
Skip to first unread message
Jose Blanco
unread,
Mar 14, 2023, 1:27:28 PM
3/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/16/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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