Skip to content

Commit

Permalink
Actually let's set accession_date to today
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Oct 21, 2024
1 parent 8396e71 commit 3a41b48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/model/reftracker_mapper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'Date'

class RefTrackerMapper

include JSONModel
Expand Down Expand Up @@ -117,7 +119,7 @@ def self.map_accession(qp, agent_uri, subject_uris)

acc['id_0'] = qp['bib_udf_tb03']

acc['accession_date'] = qp.fetch('question_closed_datetime', '').split[0]
acc['accession_date'] = Date.today.iso8601

acc['acquisition_type'] = qp['question_udf_cl03'].downcase
acc['content_description'] = qp['question_udf_ta08'] || qp['question_text']
Expand Down

0 comments on commit 3a41b48

Please sign in to comment.