Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3899

“Approve item” button moves item into archive although required metadata is missing

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.6, 6.2
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      The “Approve item” button moves an item into archive although metadata that is required for the item is missing.

      When an item is taken from the task pool, the reviewers have different options, e.g. with Workflow Step 3:

      Edit metadata
      Return task to pool
      Approve item
      Reject item

      The item can be approved without going through the submission input forms. Required metadata that should have been added during the workflow step is not present in the published item.

      ****

      To reproduce the bug add this to input-forms:

          <field>
               <dc-schema>dc</dc-schema>
               <dc-element>identifier</dc-element>
               <dc-qualifier>isbn</dc-qualifier>
               <repeatable>true</repeatable>
               <label>ISBN</label>
               <input-type>onebox</input-type>
               <hint></hint>
               <required>This field is required.</required>
               <visibility>workflow</visibility>
          </field>

      Leave dc.identifier.isbn empty during submission, then approve the item without clicking “edit metadata” first. DSpace archives the item although the dc.identifier.isbn field is not present.

      ****

      Suggestion for solutions:

      A: The “Approve item” button is disabled unless the required metadata fields are present.

      B: There is a warning when you try to approve an item where required metadata fields are missing.

      The check for required metadata should consider type-bind to avoid the bug found in the curation task “requiredmetadata” (https://jira.duraspace.org/browse/DS-3896).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              FA F. Rapp
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: