Ingest

File Upload

Render form - app/views/curation_concern/generic_files/_form.html.erb
User clicks upload button
Verify acceptance of user agreement - app/controllers/curation_concern/generic_works_controller.rb:10
Mint a new pid - app/controllers/curation_concern/generic_works_controller.rb:11
Add base metadata - app/services/curation_concern/generic_work_actor.rb:5
  Add depositor metadata - app/services/curation_concern/base_actor.rb:44
  Add owner metadata - app/services/curation_concern/base_actor.rb:74
  Add deposit date - app/services/curation_concern/base_actor.rb:47
  Add save data - app/services/curation_concern/base_actor.rb:58
  Save the object - app/services/curation_concern/base_actor.rb:23
Attach files - app/services/curation_concern/generic_work_actor.rb:5
  Create new GenericFile - app/services/curation_concern/generic_work_actor.rb:73
  Set file - app/services/curation_concern/generic_work_actor.rb:74
  Set batch - app/repository_models/generic_file.rb:75
  Add metadata - app/services/curation_concern/generic_work_actor.rb:76
    Add depositor metadata - sufia-models/lib/sufia/models/model_methods.rb:14
      Add depositor ID - sufia-models/lib/sufia/models/model_methods.rb:17
      Set edit access for depositor - sufia-models/lib/sufia/models/model_methods.rb:19
    Add date uploaded - sufia-models/lib/sufia/models/generic_file/actions.rb:6
    Add date modified - sufia-models/lib/sufia/models/generic_file/actions.rb:7
    Add creator - sufia-models/lib/sufia/models/generic_file/actions.rb:8
    Add batch ID - sufia-models/lib/sufia/models/generic_file/actions.rb:11
    Save - sufia-models/lib/sufia/models/generic_file/actions.rb:16
  Add embargo release date - app/services/curation_concern/generic_work_actor.rb:79
  Add visibility - app/services/curation_concern/generic_work_actor.rb:80
  Attach file - app/services/curation_concern/generic_work_actor.rb:81
    Attach file - app/services/curation_concern.rb:14
      Add file - sufia-models/lib/sufia/models/generic_file/actions.rb:20
      Save - sufia-models/lib/sufia/models/generic_file/actions.rb:24
      Add committer - sufia-models/lib/sufia/models/generic_file/actions.rb:34
        Add version metadata - sufia-models/lib/sufia/models/generic_file/versions.rb:8
    Submit file to queue for characterization - app/services/curation_concern.rb:21
      Characterize - sufia-models/lib/sufia/models/jobs/characterize_job.rb:8
        Get current characterization info - sufia-models/lib/sufia/models/generic_file/characterization.rb:51
        Add characterization info - sufia-models/lib/sufia/models/generic_file/characterization.rb:52
          Get characterization terms - sufia-models/lib/sufia/models/generic_file/characterization.rb:59
          "Populate descMetadata with fields from FITS (e.g. Author from pdfs)" - sufia-models/lib/sufia/models/generic_file/characterization.rb:60
          Set filename - sufia-models/lib/sufia/models/generic_file/characterization.rb:53
          Save - sufia-models/lib/sufia/models/generic_file/characterization.rb:54
      After Characterize - sufia-models/lib/sufia/models/jobs/characterize_job.rb:9
        Generate thumbnail - sufia-models/lib/sufia/models/jobs/characterize_job.rb:14
          Create video thumbnail - sufia-models/lib/sufia/models/generic_file/thumbnail.rb:11
            Set video thumbnail - sufia-models/lib/sufia/models/generic_file/thumbnail.rb:31
            Set thumbnail mimetype - sufia-models/lib/sufia/models/generic_file/thumbnail.rb:32
          Create thumbnail - lib/hydra/derivatives.rb?
          Save - sufia-models/lib/sufia/models/generic_file/thumbnail.rb:15
        Transcode video - sufia-models/lib/sufia/models/jobs/characterize_job.rb:17
        Transcode audio - sufia-models/lib/sufia/models/jobs/characterize_job.rb:19
Add linked resources - app/services/curation_concern/generic_work_actor.rb:5
    Add depositor metadata - sufia-models/lib/sufia/models/model_methods.rb:14
      Add depositor ID - sufia-models/lib/sufia/models/model_methods.rb:17
      Set edit access for depositor - sufia-models/lib/sufia/models/model_methods.rb:19
    Add date uploaded - sufia-models/lib/sufia/models/generic_file/actions.rb:6
    Add date modified - sufia-models/lib/sufia/models/generic_file/actions.rb:7
    Add creator - sufia-models/lib/sufia/models/generic_file/actions.rb:8
    Add batch ID - sufia-models/lib/sufia/models/generic_file/actions.rb:11
    Save - sufia-models/lib/sufia/models/generic_file/actions.rb:16
Add representative - app/services/curation_concern/generic_work_actor.rb:5
  Set representative - app/services/curation_concern/generic_work_actor.rb:67
  Save - app/services/curation_concern/generic_work_actor.rb:68