getting the submission form to load when submission begins.

41 views
Skip to first unread message

Jose Blanco

unread,
Aug 4, 2023, 1:20:19 PM8/4/23
to DSpace Technical Support
In previous versions of dspace, I've made some changes to get the
submission form to reload when the user issues a request to submit an
item. The reason I did this was because I needed to change the
submission form based on who the user was. I know for sure I had this
working on 6.3, and I think I had it working on 7.4, but now I can't
get it going on 7.6. I wonder if anyone has tried this out. I know
that there is an PR in DRAFT state presently that addresses this
issue, but I'm wondering if anyone has found a "quick" solution for
this. Here is the PR I'm referring to:

https://github.com/DSpace/DSpace/pull/8864

This is the code I have been trying to change:
https://github.com/DSpace/DSpace/blob/main/dspace-api/src/main/java/org/dspace/app/util/DCInputsReader.java#L539

Ideally, I would like this function:
private void processValuePairs(Node e) in DCInputsReader.java

to run and for the changes in there to stick when the user starts the
submission. From looking at log outputs, I see the function runs when
the user starts the submission, but the changes don't stick. I have
some code in there that says if there is a user, do this..., Of
course, at start up there is no user, so that code does not run. But
once the user is logged in, there is a user, and the code runs, but
the submission form does not reflect the change.


Thank you!
-Jose

Jose Blanco

unread,
Nov 26, 2023, 3:03:09 PM11/26/23
to DSpace Technical Support
I have now incorporated this PR:
https://github.com/DSpace/DSpace/pull/8864

And my change to DCInputsReader.java is still not working. I can tell
from the log file that the code executes, but the submission form
looks exactly the same as it is setup at startup. Not sure what to do
next.

-Jose
Reply all
Reply to author
Forward
0 new messages