Skip to content

Commit

Permalink
Merge pull request #230 from gwu-libraries/t229-default-rights-stmt
Browse files Browse the repository at this point in the history
Fixes #229
  • Loading branch information
kerchner authored Jul 18, 2019
2 parents 842ff34 + 637f318 commit 1daccb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/tasks/gwss.rake
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ namespace :gwss do
end

# edm:rights
item_attributes['rights_statement'] = ['http://rightsstatements.org/vocab/InC/1.0/']

# turn this scalar value into a single-valued list
item_attributes['rights_statement'] = [manifest_json['rights_statement']]

work_id = ingest_work(item_attributes, options[:depositor], options[:updateid], options[:setid], options[:private], options[:skip_file_updates])
# generate_ingest_report(noid_list, investigation_id)
embargo_attributes = read_embargo_info(manifest_json)
Expand Down Expand Up @@ -120,10 +121,12 @@ namespace :gwss do
item_attributes['resource_type'] = ['Thesis or Dissertation']

# dc:rights
# Always set this license for ETDs
item_attributes['license'] = ['http://www.europeana.eu/portal/rights/rr-r.html']
item_attributes.delete('rights')

# edm:rights
# Always set this rights statement for ETDs
item_attributes['rights_statement'] = ['http://rightsstatements.org/vocab/InC/1.0/']

etd_id = ingest_etd(item_attributes, options[:depositor], options[:updateid])
Expand Down

0 comments on commit 1daccb4

Please sign in to comment.