forked from openjournals/inara
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ca5523
commit e1be058
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function Meta(meta) | ||
-- Check if each DOI is present and not set to 'N/A' | ||
if meta.repository_doi and meta.repository_doi ~= 'N/A' then | ||
meta.include_repository_doi = true | ||
end | ||
if meta.data_doi and meta.data_doi ~= 'N/A' then | ||
meta.include_data_doi = true | ||
end | ||
if meta.book_doi and meta.book_doi ~= 'N/A' then | ||
meta.include_book_doi = true | ||
end | ||
if meta.docker_doi and meta.docker_doi ~= 'N/A' then | ||
meta.include_docker_doi = true | ||
end | ||
if meta.software_review_url and meta.software_review_url ~= 'N/A' then | ||
meta.include_software_review = true | ||
end | ||
if meta.book_exec_url and meta.book_exec_url ~= 'N/A' then | ||
meta.include_book_exec = true | ||
end | ||
return meta | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters