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

Support for indirect entity references in CSV import

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Received (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Configurable Entities
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      In order to support creating items and relating them in the same CSV, as well as more flexible relationships to items already in DSpace, this feature adds two new ways (in addition to the existing item UUID) to refer to other items when adding relationships via CSV import:

      A) By row name. If a previous row in the same CSV declares a name (via an optional rowName}}column), you may refer to it by whatever name it has been given in the CSV, by specifying {{rowName:NAME in the relationship.label column (where NAME is the actual unique row name of the row you're referring to). The row name may be any unique string. It is not persisted as metadata; the name is just a convenience used during import.

      B) By unique metadata value. If a previous row in the same CSV, or an item already in the repository, has a unique value for a given metadata field, you may refer to that item by specifying FIELD:VALUE in the relationship.label column. This allows, for example, referring to another item by DOI (dc.identifier.doi:SOME_DOI) or another application-specific identifier you know to be unique.

      The CSV import should fail with an appropriate error message if:

      • Any reference doesn't refer to an existing row or item
      • Any reference resolves to MULTIPLE items

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            cwilper Chris Wilper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: