Skip to content

Commit

Permalink
Allow redundant external resources to be replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Oct 10, 2024
1 parent f2e44f0 commit c89fcad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tess/rdf/course_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def extract_params
end
# course_params[:difficulty_level] ||=
# extract_names_or_values(RDF::Vocab::SCHEMA.educationalLevel, subject: course).first
course_params[:external_resources_attributes] = extract_mentions
course_params[:external_resources] = extract_mentions
# ...and override with more specific metadata from CourseInstance
course_instance_params = super
course_params.merge(course_instance_params)
Expand Down
2 changes: 1 addition & 1 deletion lib/tess/rdf/material_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def extract_params
params[:contributors] = extract_names(RDF::Vocab::SCHEMA.contributor)
params[:target_audience] = extract_audience
params[:resource_type] = extract_values(RDF::Vocab::SCHEMA.learningResourceType)
params[:external_resources_attributes] = extract_mentions
params[:external_resources] = extract_mentions

remove_blanks(params)
end
Expand Down

0 comments on commit c89fcad

Please sign in to comment.