scientist-softserv / atla-hyku

Other
0 stars 0 forks source link

Remap dc type so it points to types in the oai_dc feed #96

Closed summer-cook closed 1 year ago

summer-cook commented 1 year ago

Story

dc:type maps to work type as the default in hyku for oai_dc. I do not think this needs to be the case.

In the oai gem, it says that the field_semantics hash is used to assign the values for the oai_dc feed

I checked in both Hyrax & Blacklight, and this field_semantics hash doesn't seem to be used anywhere else that is not related to the blacklight oai gem. I also saw that the field_semantics hash was added to the solr_document.rb just 4 years ago, in a commit by rob to add the oai gem to hyku. So i think it is hopefully safe to change, but let me know if this is ill advised.

Related

Expected Behavior Before Changes

dc:type in the oai feed was mapping to work type

Expected Behavior After Changes

dc:type maps to atla's "types" field

Screenshots / Video

"Dataset" is one of the "Types" - the only work types are Etd, Collection, Generic Work, and Paper or Report image