Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The state file (formerly in /tmp) has been moved to /var/sufia. It is currently being backed up nightly. It must be included in any server migrations to avoid generating errors when uploading (a new state file may try to use an already used fedora ID). 


Rights statements

It's useful to periodically check that all publicly available works have rights statements. As of summer 2018 this was in fact true, but if you want to quickly check for the ID's of any public works that still need rights statements, log onto jobs_stage, open a console (see "Inspect Stuff" above) and paste the following directly into the console:

GenericWork.search_in_batches('read_access_group_ssim'=>'public') do |group|
group.each do |gw|
if gw["rights_tesim"] == nil || gw["rights_tesim"].count == 0
puts gw["id"]
end #if
end #group.each
end #search_in_batches