Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ck updates2024 04 #222

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def self.modified_field
config.add_facet_field 'degree_sim', limit: 5, label: 'Degree'
config.add_facet_field 'discipline_sim', limit: 5, label: 'Discipline'
config.add_facet_field 'degree_granting_institution_sim', limit: 5, label: 'Degree Granting Institution'
config.add_facet_field 'department_sim', limit: 5, label: 'Department'
config.add_facet_field 'funder_name_sim', limit: 5, label: 'Funder Name'
config.add_facet_field 'event_title_sim', limit: 5, label: 'Event Title'
config.add_facet_field 'event_date_sim', limit: 5, label: 'Event Date'
Expand Down
10 changes: 5 additions & 5 deletions app/forms/hyrax/etd_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class EtdForm < Hyrax::Forms::WorkForm
types
]

self.terms = %i[title location alternative_title creator contributor description abstract
keyword subject rights_statement publisher advisor
committee_member department date_created year resource_type
self.terms = %i[title license location alternative_title creator contributor
description abstract keyword subject rights_statement publisher
advisor committee_member department date_created year resource_type
institution degree discipline degree_granting_institution types
license language format identifier based_near access_right
language format identifier based_near access_right
rights_notes related_url video_embed bibliographic_citation
additional_rights_info
representative_id thumbnail_id rendering_ids files
Expand All @@ -53,7 +53,7 @@ class EtdForm < Hyrax::Forms::WorkForm
]

def primary_terms
super - %i[video_embed] + %i[keyword] + %i[license]
super - %i[video_embed] + %i[keyword]
end
end
end
6 changes: 3 additions & 3 deletions app/models/etd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ def video_embed?
end

property :advisor, predicate: ::RDF::URI('https://atla.com/terms/advisor') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :committee_member, predicate: ::RDF::URI('https://atla.com/terms/committeeMember') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :department, predicate: ::RDF::URI('https://atla.com/terms/department') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :year, predicate: ::RDF::Vocab::DC.date, multiple: false do |index|
Expand Down
12 changes: 6 additions & 6 deletions app/models/paper_or_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def video_embed?
end

property :format, predicate: ::RDF::Vocab::DC11.format do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :rights_holder, predicate: ::RDF::Vocab::DC.rightsHolder do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :creator_orcid, predicate: ::RDF::Vocab::SCHEMA.creator, multiple: false do |index|
Expand All @@ -44,7 +44,7 @@ def video_embed?

property :creator_institutional_relationship,
predicate: ::RDF::URI.intern('https://atla.com/terms/creatorInstitutionalRelationship') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :contributor_orcid,
Expand All @@ -55,7 +55,7 @@ def video_embed?

property :contributor_institutional_relationship,
predicate: ::RDF::URI.intern('https://atla.com/terms/contributorInstitutionalRelationship') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :contributor_role, predicate: ::RDF::URI('https://atla.com/terms/contributorRole') do |index|
Expand All @@ -79,11 +79,11 @@ def video_embed?
end

property :event_location, predicate: ::RDF::URI('https://atla.com/terms/eventLocation') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :event_date, predicate: ::RDF::URI('https://atla.com/terms/eventDate') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :official_link, predicate: ::RDF::Vocab::SCHEMA.url do |index|
Expand Down
Loading