pulibrary / figgy

Valkyrie-based digital repository backend.
Other
36 stars 4 forks source link

publish dc:format in oai_dc #3973

Closed hackartisan closed 4 years ago

hackartisan commented 4 years ago

From gallica's documentation:

Comply with MIME types E.g. <dc:format>image/jpeg</dc:format> or <dc:format>application/pdf</dc:format>

A MIME type = an element If several formats are available or if they give several pieces of information, repeat the element

Source format The <dc:format> is used to describe the original physical document (number of pages, dimensions, etc.)

hackartisan commented 4 years ago

This is already defined as a field so it just needs to be processed in the OaiWrapper decorator

https://github.com/code4lib/ruby-oai/blob/52aa1cc0d3d2a250f0d4480e0be32f13d8c97692/lib/oai/provider/metadata_format/oai_dc.rb

hackartisan commented 4 years ago

Based on the info from the documentation, they want several instances of this format field. One for each available MIME type and one for what we would call the "physical description" or "extent" (or both).