Search code examples
submitworkflowvisibilitydspace

DSpace input-field visibility


With the DSpace visibility tag on some fields in input-forms.xml I try to hide these input fields during the submit, while these fields have to be visible during the workflow process (workflow) These input fields are indeed invisible when I submit a document. But unfortunately they stay invisible when I open the same document (edit) again as user with workflow rights to perform the next step: adding extra information and approving the document for the repository.

I tried above with two different repositories, one with DSpace 5.2 and one with DSpace 5.4. Both with the same results.

In DSpace 5.2 I also tried the opposite: I tagged an item with submit: the field is now visible in the submit step, but also in the workflow step.

In the DSpace manual I cannot find what I could possibly do wrong. Do I misunderstand the workflow process? Or is there an extra configuration step that has to be taken?


Solution

  • From the DSpace 5.x Submission interface docs, it looks like you should be able to do this to have the field appear only during submission:

       <field>
         <dc-schema>dc</dc-schema>
         <dc-element>title</dc-element>
         <dc-qualifier>alternative</dc-qualifier>
         <repeatable>true</repeatable>
         <label>Other Titles</label>
         <input-type>onebox</input-type>
         <hint>If the item has any alternative titles, please enter them here.</hint>
         <required></required>
         <visibility>submit</visibility>
       </field>
    

    or only during the review workflow:

       <field>
         <dc-schema>dc</dc-schema>
         <dc-element>title</dc-element>
         <dc-qualifier>alternative</dc-qualifier>
         <repeatable>true</repeatable>
         <label>Other Titles</label>
         <input-type>onebox</input-type>
         <hint>If the item has any alternative titles, please enter them here.</hint>
         <required></required>
         <visibility>workflow</visibility>
       </field>
    

    If you omit the "visibility" element, it will appear in both the submission form and the review workflow.

    Which of these did you try? And what behaviour did you get, if it wasn't the expected behaviour?