Skip to content

Commit

Permalink
Merge pull request #17 from performant-software/feature/16-content-in…
Browse files Browse the repository at this point in the history
…fo-url

Add content_info_url (#16)
  • Loading branch information
blms authored Jan 14, 2025
2 parents 4a2a6b4 + 7f91a07 commit 81728ef
Show file tree
Hide file tree
Showing 4 changed files with 6 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 @@ -13,6 +13,7 @@ module Resourceable
delegate :content_url, to: :resource_description, allow_nil: true
delegate :content_download_url, to: :resource_description, allow_nil: true
delegate :content_iiif_url, to: :resource_description, allow_nil: true
delegate :content_info_url, to: :resource_description, allow_nil: true
delegate :content_inline_url, to: :resource_description, allow_nil: true
delegate :content_preview_url, to: :resource_description, allow_nil: true
delegate :content_thumbnail_url, to: :resource_description, allow_nil: true
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 @@ -7,6 +7,7 @@ class ResourceDescription < ApplicationRecord
attr_accessor :content_url
attr_accessor :content_download_url
attr_accessor :content_iiif_url
attr_accessor :content_info_url
attr_accessor :content_inline_url
attr_accessor :content_preview_url
attr_accessor :content_thumbnail_url
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_url
:content_info_url, :content_preview_url, :content_thumbnail_url, :manifest_url
show_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_inline_url,
:content_preview_url, :content_thumbnail_url, :manifest_url
:content_info_url, :content_preview_url, :content_thumbnail_url, :manifest_url
end

end
Expand Down
2 changes: 2 additions & 0 deletions app/services/triple_eye_effable/cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Cloud
content_url
content_download_url
content_iiif_url
content_info_url
content_inline_url
content_preview_url
content_thumbnail_url
Expand Down Expand Up @@ -72,6 +73,7 @@ def load_description(resource_description)
content_url: "#{base_url}/#{id}/content",
content_download_url: "#{base_url}/#{id}/download",
content_iiif_url: "#{base_url}/#{id}/iiif",
content_info_url: "#{base_url}/#{id}/info",
content_inline_url: "#{base_url}/#{id}/inline",
content_preview_url: "#{base_url}/#{id}/preview",
content_thumbnail_url: "#{base_url}/#{id}/thumbnail",
Expand Down

0 comments on commit 81728ef

Please sign in to comment.