crkn-rcdr / cihm-metadatabus

Documentation and Docker build environment for key portions of the metadata bus.
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Repeating columns for Dublin Core CSV files. #64

Closed RussellMcOrmond closed 1 year ago

RussellMcOrmond commented 1 year ago

We currently only support repeated Dublin Core terms using the special sequence "||" to separate them.

This makes managing the fields harder. This ticket is to enhance the Dublin Core handling to support multiple columns in the same way that Archivematica does for the import metadata feature.

That documentation page includes an example csv table with all 15 Dublin Core terms, with 3 dc.subject columns.

In our case we have an objid" column and optional "label" column, rather than a "filename" column.

It is also easy to support both the "dc." prefix Archivematica uses, as well as the "dc:" prefix we currently use. We only support dc.element and not dcterms.element as well.

RussellMcOrmond commented 1 year ago

For testing I took the example from the Import Metadata documentation and changed the "filename" field to "objid".

archivematica-dc-example.csv

This seems to work well.

I would now want to get feedback form @nataliemacdonald and @BeS4 on how this works for them. The "Preview Metadata" feature of https://access.canadiana.ca/dmd/b885edadd03daf7b06f2670d21ceaeee shows what the Dublin Core XML will look like.

RussellMcOrmond commented 1 year ago

Enhancement has been in use for a few weeks with no concerns or bug reports, so merged the code into main.