Skip to content

Commit

Permalink
Fix missing metadata in IIIF manifest
Browse files Browse the repository at this point in the history
The default list of manifest metadata fields is sourced from the WorkForm and does not contain the solr field suffix. The delegation in IiifManifestPresenter makes those fields available by method call.
  • Loading branch information
dlpierce committed May 1, 2023
1 parent 29ad74c commit d37850c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/hyrax/iiif_manifest_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def manifest_metadata
metadata_fields.map do |field_name|
{
'label' => I18n.t("simple_form.labels.defaults.#{field_name}"),
'value' => Array(self[field_name]).map { |value| scrub(value.to_s) }
'value' => Array(send(field_name)).map { |value| scrub(value.to_s) }
}
end
end
Expand Down

0 comments on commit d37850c

Please sign in to comment.