Skip to content

LIBTD-1316: Import script to ingest (SEAMUS) records into COMPEL

Janice J Kim requested to merge LIBTD-1316 into dev

There are 4 tasks to parse and import records into COMPEL .

Two rake tasks just demonstrate how to parse and scrape information --

  • Extract SEAMUS XML - Authors. To run: bin/rake seamus:extract_authors["input.xml","output.json"]' Note that this now creates a secondary output.json.scraped_profiles file with information scraped from SEAMUS profiles

  • Extract SEAMUS XML - Items . To run: bin/rake seamus:extract_items["input.xml","output.json"] This shouldn't have been modified for this PR, but I'm just mentioning it.

    [Edit: For the seamus:extract_* tasks, if there's a space between the input and output files, the script errors out. I'm not sure why that happens, but I'm mentioning it for awareness purposes. Please let me know if there's a better way to take arguments in from rake tasks.]

The other two rake tasks parse/scrape and import data into the application --

  • Import SEAMUS XML - Authors. To run: bin/rake seamus:import_authors["input.xml"]
  • Import SEAMUS XML - Items. Must be run AFTER import_authors. To run: bin/rake seamus:import_items["input.xml"]

Merge request reports