rism-digital / muscat

🗂️ A Rails application for the inventory of handwritten and printed music scores
http://muscat-project.org
34 stars 16 forks source link

Additional option for exporting all (including unpublished) records #1630

Closed lpugin closed 1 month ago

lpugin commented 1 month ago

Example:

# Sources
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./sources.xml -m Source
# Sources with deprecated ids
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./sources-legacy.xml -m Source -l

# Institutions
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./institutions.xml -m Institution -a
# Institutions with deprecated ids
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./institutions-legacy.xml -m Institution -a -l

# People
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./people.xml -m Person -a
# People with deprecated ids
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./people-legacy.xml -m Person -a -l

# Publications
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./publications.xml -m Publication -a
# Publications with deprecated ids
bundle exec rails r ./housekeeping/export/xml-export.rb -f ./publications-legacy.xml -m Publication -a -l
lpugin commented 1 month ago

Also to be mentioned:

ahankinson commented 1 month ago

All (unpublished) records

? Should this be published records?

ahankinson commented 1 month ago

Oh, I see -- All records, including unpublished. I thought you meant you were only exporting unpublished records...