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

Changing the collection in the submission doesn't change the item template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Received (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      During the submission, when the user changes collections, a PATCH request is sent to the specific workspace item's endpoint to make sure the item is updated accordingly. The PATCH looks something like this:

      [{"op":"replace","path":"/sections/collection","value":"b7bf809e-b8ea-41bf-b16a-38d78785f557"}]

      As far as I can tell, the backend simply applies this patch like it would for any other change. Meaning, the only thing that changes is exactly what's in the patch: the collection field of the workspace item.

      If the new collection has an item template, it doesn't look like the metadata fields specified in it are added to the workspace item.

      It also doesn't look like a trivial thing to do, because you'd either have to throw away any metadata you already have and start from the template item, or perhaps merge them with the current workspace item in some way.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Art Lowel Art Lowel (Atmire)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: