mdr2.abacus.import
Functionality for the initial import of the production data from ABACUS to Madras2.
This is meant to be used only once when importing the productions from ABACUS. Use from within a repl.
create-archived-productions!
(create-archived-productions! productions)
Create all productions with state “archived”
create-ready-productions!
(create-ready-productions! productions)
Create all productions with state “ready”
create-recording-productions-with-obi!
(create-recording-productions-with-obi! productions)
Create all productions with state “recording” that contain an obi project. Add to the db and create the directories. Copy the obi project to the new place. Place an obi config file inside the obi project
create-recording-productions-with-struct!
(create-recording-productions-with-struct! productions)
Create all productions with state “recording” that do not contain any wav but a struct file. Add to the db, create the directories and create the config file. Finally merge the the “struct.html” with the dtbook file.
create-recording-productions-without-obi!
(create-recording-productions-without-obi! productions)
Create all productions with state “recording” with wav files that do not contain an obi project. Add to the db and create the directories
fix-production
(fix-production {:keys [id periodical_number], :as production})
Fix a production
, i.e. fix some of the fields as they are coming from ABACUS the values as they are expected by Madras2
print-stats
(print-stats)
Print a summary of all the productions that are about to be migrated