Skip to content

Commit

Permalink
SUM: Fixed CSV importer
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 14, 2025
1 parent c11db1b commit f6d081a
Showing 1 changed file with 1 addition and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,52 +119,6 @@ process:
sum_course_length: course_length
sum_course_notes/value: course_notes
sum_course_notes/format: constants/markdown
syllabus_basename:
-
plugin: skip_on_empty
method: process
source: course_syllabus_file
-
plugin: explode
delimiter: /
-
plugin: array_pop
syllabus_media_name:
-
plugin: skip_on_empty
method: process
source: syllabus_basename
-
plugin: str_replace
regex: true
search: '/^(.*)\..*/'
replace: $1
syllabus_file:
-
plugin: skip_on_empty
method: process
source: course_syllabus_file
-
plugin: file_import
destination: constants/pdf_destination
id_only: true
reuse: true
sum_course_syllabus_file/target_id:
-
plugin: skip_on_empty
method: process
source: '@syllabus_file'
-
plugin: entity_generate
source: '@syllabus_file'
value_key: field_media_file
bundle_key: bundle
bundle: file
entity_type: media
ignore_case: true
values:
name: '@syllabus_media_name'
field_media_file/target_id: '@syllabus_file'
sum_course_cross_listing:
-
plugin: skip_on_empty
Expand Down Expand Up @@ -228,7 +182,7 @@ process:
bundle_key: vid
bundle: sum_course_population
entity_type: taxonomy_term
sum_course_prerequisites/value: prerequisites
sum_course_prerequisites/value: pre_requisites
sum_course_prerequisites/format: constants/markdown
sum_course_schedule: schedule
sum_students_also_studied: students_also_studied
Expand Down

0 comments on commit f6d081a

Please sign in to comment.