On Thu, Sep 15, 2022 at 04:27:59PM -0700, Pierre Roozmon wrote:
> Hi Tim,
>
> I'm trying to programmatically add new fields for the create Community and
> create Collection pages in DSpace v7.x. I've determined how to use various
> dynamic controls (e.g. DynamicSelect, DynamicTextArea, etc) to create
> different types of input fields.
>
> Meanwhile, I can use the xml files to modify and add fields in the create
> Item page (i.e Edit Submission). This is well-documented, though I've had
> difficulty with some style issues. For excmpale, I could move the Upload
> step to the top of the page, but I couldn't make it sticky.
>
> The Confluence DSpace documentation suggests that "input-forms.xml" was
> integrated into "submision-forms.xml" in v7.x, but this doesn't seem to be
> the case. This led to the conclusion that we need to make changes to create
> Community and create Collection programmatically.
I believe that input-forms.xml was split up. Some of the information
went into item-submission.xml and the rest into submission-forms.xml.
But I don't believe that any of this is connected with the
create-Community and create-Collection pages. I think that what
follows is not helpful for what I understand that you are trying to do.
> Hence I'm trying to determine how the xml files "item-submission.xml" and
> "submission-forms.xml" are parsed by the code and converted into HTML. I
> believe that this will explain how the submission fields are defined for
> Items via xml and thus how they can be modified programmatically for
> Collections and Communities,
The submission configuration is converted into logical structures by
dspace-api. These are provided to the UI, which uses them to generate
HTML (in the case of dspace-angular -- another front-end could use the
same information quite differently, which is why it is done this way.)
> Can you please point me to where this parsing occurs? It seems to me that
> this would provide the key to understanding how all of these fields are
> converted into HTML, either dynamically via .ts files or statically via xml
> files.
item-submission.xml is read in dspace-api/app/util/SubmissionConfigReader.
submission-forms.xml is read in dspace-api/app/util/DCInputsReader.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu