Skip to content

Content Manifest

James Van Mil edited this page Jun 27, 2017 · 1 revision

The manifest rake tasks are:

rake manifest:all                                    # Run all manifest reports
rake manifest:collections                            # Run collections manifest reports
rake manifest:files                                  # Run files manifest reports
rake manifest:groups                                 # Run groups manifest reports
rake manifest:linked_resources                       # Run linked_resources manifest reports
rake manifest:people                                 # Run people manifest reports
rake manifest:profiles                               # Run profiles manifest reports
rake manifest:users                                  # Run users manifest reports
rake manifest:works                                  # Run work manifest reports

They all publish a csv report to the vendor folder in the app.

If you need to add information to any of the reports, you will need to redefine it in the console. All of the report classes are defined here: https://github.com/uclibs/curate/tree/develop/app/services

After redefining the class on the console, run the line from the matching rake task to generate the report. E.g., for works, you'd run WorksReport.create_report.

After the file is generated, you need to get it off the server. Our authentication setup complicates sftp, so the mail utility is the quickest way to send it. E.g.:

echo "Foo" | mail -s "Users Report" -a vendor/users_report.csv [email protected]

After the report is delivered, you may need to clean up extra carriage returns in some fields. This can be done quickly with a regex in a text editor like Vim or Atom.

Clone this wiki locally