app/controllers/concerns/create_dip.rb
# Return a hash of aip_uuids where dip creation has been approved
#  but the dip has yet to be uploaded
Return a hash of aip_uuids where dip creation has been approved
but the dip has yet to be uploaded
Return a hash of aip_uuids where dip creation has been approved but the dip has yet to be uploaded
def waiting_for_dips
    q = 'dip_status_tesim:APPROVED'
    puts q
    dips = {}
    num_results = get_number_of_results(q)
    unless num_results == 0
      solr_query_short(q, 'id,aip_uuid_tesim', num_results)['docs'].each do | aip |
        dips[aip['id']] = aip['aip_uuid_tesim'].first
      end
     end
    dips
  rescue => e
    handle_exception(e, "Unexpected error while trying to get DIP information. Please try again later", "UUID input: " + uuid, true)
    return {}
  end
def waiting_for_dips q = 'dip_status_tesim:APPROVED' puts q dips = { } num_results = get_number_of_results ( q ) unless num_results == 0 solr_query_short ( q , 'id,aip_uuid_tesim' , num_results ) [ 'docs' ] . each do | aip | dips [ aip [ 'id' ] ] = aip [ 'aip_uuid_tesim' ] . first end end dips rescue => e handle_exception ( e , "Unexpected error while trying to get DIP information. Please try again later" , "UUID input: " + uuid , true ) return { } end
Return a hash of aip_uuids where dip creation has been approved
but the dip has yet to be uploaded
Return a hash of aip_uuids where dip creation has been approved but the dip has yet to be uploaded