-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from scientist-softserv/get_it_loading
Get it loading
- Loading branch information
Showing
17 changed files
with
205 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
module ContentBlockDecorator | ||
NAME_REGISTRY = { | ||
marketing: :marketing_text, | ||
researcher: :featured_researcher, | ||
announcement: :announcement_text, | ||
about: :about_page, | ||
help: :help_page, | ||
terms: :terms_page, | ||
agreement: :agreement_page, | ||
home_text: :home_text, | ||
resources: :resources_page, | ||
homepage_about_section_heading: :homepage_about_section_heading, | ||
homepage_about_section_content: :homepage_about_section_content | ||
}.freeze | ||
end | ||
|
||
ContentBlock::NAME_REGISTRY[:resources] = :resources_page | ||
ContentBlock::NAME_REGISTRY[:homepage_about_section_heading] = :homepage_about_section_heading | ||
ContentBlock::NAME_REGISTRY[:homepage_about_section_content] = :homepage_about_section_content | ||
ContentBlock.prepend(ContentBlockDecorator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module FileSetDecorator | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
property :override_default_thumbnail, | ||
predicate: ::RDF::URI.intern('https://b2.adventistdigitallibrary.org/terms/overrideDefaultThumbnail'), | ||
multiple: false do |index| | ||
index.as :stored_searchable | ||
end | ||
attr_accessor :default_thumbnail | ||
end | ||
end | ||
|
||
FileSet.include FileSetDecorator |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.