Skip to content

Commit

Permalink
Update export format with feedback improvements (#114)
Browse files Browse the repository at this point in the history
* Update export format with feedback improvements

* Add Physical Education as OER subject
  • Loading branch information
ibrahimjaved12 authored Nov 12, 2024
1 parent b3ddbb0 commit f7daeec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
6 changes: 2 additions & 4 deletions ocw_oer_export/create_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_cr_sublevel(levels):
"Undergraduate": ["Community College/Lower Division", "College/Upper Division"],
"Graduate": ["Graduate/Professional"],
"High School": ["High School", "Community College/Lower Division"],
"Non-Credit": ["Career/Technical Education"],
"Non-Credit": ["Career/Technical"],
}
sublevels = [
sublevel for level in levels for sublevel in level_mappings.get(level["name"])
Expand Down Expand Up @@ -194,8 +194,7 @@ def transform_single_course(course, ocw_topics_mapping, fm_ocw_keywords_mapping)
course_runs["semester"], course_runs["year"]
),
"CR_AUTHOR_NAME": get_cr_authors(course_runs["instructors"]),
"CR_PROVIDER": "MIT",
"CR_PROVIDER_SET": "MIT OpenCourseWare",
"CR_PROVIDER_SET": "MIT:MIT OpenCourseWare",
"CR_COU_URL": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
"CR_COU_COPYRIGHT_HOLDER": get_cr_authors(course_runs["instructors"]),
"CR_EDUCATIONAL_USE": get_cr_educational_use(course["course_feature"]),
Expand Down Expand Up @@ -253,7 +252,6 @@ def create_csv(
"CR_KEYWORDS",
"CR_CREATE_DATE",
"CR_AUTHOR_NAME",
"CR_PROVIDER",
"CR_PROVIDER_SET",
"CR_COU_URL",
"CR_COU_COPYRIGHT_HOLDER",
Expand Down
2 changes: 1 addition & 1 deletion ocw_oer_export/mapping_files/ocw_topic_to_oer_subject.csv
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Medical Imaging,"Health, Medicine and Nursing",Medical Imaging
Mental Health,"Health, Medicine and Nursing",Mental Health
Pathology and Pathophysiology,"Health, Medicine and Nursing",Pathology| Pathophysiology
Pharmacology and Toxicology,"Health, Medicine and Nursing",Pharmacology|Toxicology
Physical Education and Recreation,"Health, Medicine and Nursing",Physical Education and Recreation
Physical Education and Recreation,Physical Education,Physical Education
Public Health,"Health, Medicine and Nursing",Public Health
Sensory-Neural Systems,"Health, Medicine and Nursing",Sensory-Neural Systems
Social Medicine,"Health, Medicine and Nursing",Social Medicine
Expand Down
Loading

0 comments on commit f7daeec

Please sign in to comment.