This is what I want to achieve:  During deposit via the UI, I want to
be able to withdraw an item immediately after deposit.  This is an
internal change to be able to Embargo the Entire item. So what happens
is that I have a new metadata field that is presented at deposit to
the user, the user then selects if he wants to embargo the item and
for how long.  When the deposit completes, I store this value in a
table, and I withdraw the item immediately.  I have a script that runs
periodically that reinstates the item when the time comes based on the
values in the table.  This is all a custom change that I have in 6.3
that now I am trying to add to 7.4.

So... what I am seeing in 7.4 is that the item gets withdrawn when the
user hits the "Deposit" button ( I see the record in my new table ),
but I get an error on the deposit page ( a little box comes up, saying
something has gone wrong) and the user does not leave the deposit page
because an error has occurred, probably because in the code I just
withdrew the item.

The code seems to raise an error here:

 
https://github.com/DSpace/DSpace/blob/main/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/WorkflowItemStepLinkRepository.java#L68

If I go to the Homepage and search for the item as admin, I can see
the item is withdrawn, so basically what I want to happen, happens.
But what I also want is for the user to get out of the deposit page.

Any suggestions?  How can I get the user back to the MyDspace page?  I
guess there is a clean way of doing it, or just somehow send the user
to that page when this error occurs.  I have been looking into this
forever and have not found a way.

Thank you!
-Jose

-- 
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 on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-sbxtzdcapWL8%2BKLauRxnEM8NUL4-76L9pJBb-oA8NnFQ%40mail.gmail.com.

Reply via email to