Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

Expand `convert` to process all organizations #23

Closed darrensiegel closed 2 years ago

darrensiegel commented 2 years ago

The convert mode must be changed to process all found organizations.

  1. There still needs to be a singular organization specified as a command line arg. This organization, similar to how it works now, is what will drive the formulation of the Torus project hierarchy.
  2. After processing the root org, the tool should find and process all other orgs. It needs to process all linked resources in these other orgs.
  3. For all pages found during steps 1 and 2, compare these to the resources directly linked in the newly created Torus hierarchy. For those that do not exist, place them in a newly created Container called "Additional Resources". Place this container at the end of the Torus created hierarchy.

Consider the following example project

Organization 1
--Unit 1
----Page 1
----Page 2 (embedded in this page is a link to Page 4)

Organization 2
--Unit 1
----Page 1
----Page 3

The resultant Torus hierarchy should look like this:

--Unit 1
----Page 1
----Page 2
--Additional Resources
----Page 4
----Page 3