Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 653 Bytes

pseudocode.md

File metadata and controls

16 lines (15 loc) · 653 Bytes

#Pseudocode for XML Generator

  1. prompt user to enter names of templates and CSV data files
  2. get length of data file (= number of files to be created)
  3. request requisite # of PIDs from server
  4. parse returned result, extracting list of PIDs
  5. iterate through data list, appending one pid to each line
  6. iterate through data list creating files as follows:
    • create truncated UMDM
    • create METS
    • create UMAM
    • append info to METS
    • write UMAM (repeat UMAM steps as long as next line is UMAM line)
  7. append METS to UMDM and write file
  8. repeat 6-8 to the end of data list
  9. Issue results-report to terminal, save log file