OD2 icon indicating copy to clipboard operation
OD2 copied to clipboard

Visibility settings for ingest

Open sseymore opened this issue 4 years ago • 2 comments

Descriptive summary

There needs to be a way to configure visibility settings for bulk ingest in the structured metadata.

Expected behavior

At ingest, the metadata will have a field for visibility settings and values that correspond with OD2 visibility settings: open, UO, OSU, lease, embargo, and restricted.

Related work

This will be configured for a visibility facet for admins: https://github.com/OregonDigital/OD2/issues/1351

Accessibility Concerns

N/A

sseymore avatar Oct 29 '20 21:10 sseymore

QA after bulkrax is added.

wickr avatar Mar 17 '22 20:03 wickr

QA that this is an option to set Visibility for the whole importer, or if you specify it per-work in a CSV upload that the values are understood.

wickr avatar Aug 04 '23 16:08 wickr

Looks like this just needs a QA. The answer to @wickr question is that it sets it for each work. Currently it detects whether or not a visibility row exists and then sets the data on the work based on that. If no visibility is in the row it sets it to default as open. If we want to set the visibility for the entire importer there would need to be some over arching updates made to bulkrax in the way it handles creating the importer. Otherwise the data can be copied down the column in the csv and itll just handle it on a per work basis.

https://github.com/OregonDigital/OD2/blob/master/config/initializers/bulkrax.rb#L161-L175 Here is the relevant code that handles visibility

straleyb avatar May 30 '24 14:05 straleyb

Sorry, I think I misinterpreted the intent of this ticket, and it should have been closed when I fixed #2947. QA instructions and comments can be seen in #2947.

lsat12357 avatar May 30 '24 17:05 lsat12357