Skip to content

Commit

Permalink
CDC #89 - Adding "manifest_url" attribute to resource_description
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Jan 4, 2024
1 parent 3f914d1 commit 898a7fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/concerns/triple_eye_effable/resourceable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Resourceable
delegate :content_thumbnail_url, to: :resource_description, allow_nil: true
delegate :content_type, to: :resource_description, allow_nil: true
delegate :manifest, to: :resource_description, allow_nil: true
delegate :manifest_url, to: :resource_description, allow_nil: true

# Callbacks
after_find :load_resource
Expand Down
1 change: 1 addition & 0 deletions app/models/triple_eye_effable/resource_description.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ResourceDescription < ApplicationRecord
attr_accessor :content_thumbnail_url
attr_accessor :content_type
attr_accessor :manifest
attr_accessor :manifest_url

# Validations
validates :resource_id, presence: true
Expand Down
4 changes: 2 additions & 2 deletions app/serializers/triple_eye_effable/resourceable_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module ResourceableSerializer

included do
index_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_inline_url,
:content_preview_url, :content_thumbnail_url, :manifest
:content_preview_url, :content_thumbnail_url, :manifest, :manifest_url
show_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_inline_url,
:content_preview_url, :content_thumbnail_url, :manifest
:content_preview_url, :content_thumbnail_url, :manifest, :manifest_url
end

end
Expand Down
1 change: 1 addition & 0 deletions app/services/triple_eye_effable/cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Cloud
content_thumbnail_url
content_type
manifest
manifest_url
uuid
)

Expand Down

0 comments on commit 898a7fb

Please sign in to comment.