Skip to content

Commit 4a813b2

Browse files
committed
Add ror & fundref IdentifierSchemes to db/seeds.rb
Used the same values from `task add_new_identifier_schemes` and `task contextualize_identifier_schemes` (see `lib/tasks/upgrade.rake`) for adding seeds. - However, `fundref.identifier_prefix = 'https://doi.org/10.13039/'` doesn't seem to be correct in `lib/tasks/upgrade.rake`. - "https://api.crossref.org/funders/" is used in DMP Assistant's DB, so that was used instead.
1 parent 76e309a commit 4a813b2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

db/seeds.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@
3333
description: 'Your institutional credentials',
3434
active: true,
3535
context: 11
36+
},
37+
{
38+
name: 'fundref',
39+
description: 'Crossref Funder Registry (FundRef)',
40+
active: true,
41+
identifier_prefix: 'https://api.crossref.org/funders/',
42+
# Only add the :for_orgs context
43+
context: 2
44+
},
45+
{
46+
name: 'ror',
47+
description: 'Research Organization Registry (ROR)',
48+
active: true,
49+
identifier_prefix: 'https://ror.org/',
50+
# Only add the :for_orgs context
51+
context: 2
3652
}
3753
]
3854
identifier_schemes.each { |is| IdentifierScheme.find_or_create_by(is) }

0 commit comments

Comments
 (0)