Batch import SAF zip but remap metadata fields

106 views
Skip to first unread message

Ross

unread,
Nov 23, 2023, 4:02:45 AM11/23/23
to DSpace Technical Support
Hi, 

I want to do a batch import of SAF data that was exported from a previous collection. In my new collection I have moved some metadata fields to other schemas and changed some of the metadata field names.

I am wondering how I can import the SAF data but map the existing metadata to my updated metadata fields ?

Example:
OLD -> NEW
dc.field -> mySchema.field
dc.field2 -> mySchema.field3

Thanks

Maruan Sahyoun

unread,
Nov 23, 2023, 8:33:41 AM11/23/23
to DSpace Technical Support
AFAIK there are serveral ways of doing this:
- go through the exported data and rename the fields. But that needs some programming
- if you have the old schema and new schema avail what you could do is to 
a) import first 
b) export the metadata only 
c) rename the columns accordingly
d) reimport the metadata
- do it on DB level using some SQL

I'd think if you don't like to go for programming/scripting or SQL the second option is the easiest as it's using built in capabilities.

BR
Maruan
Reply all
Reply to author
Forward
0 new messages