Skip to content

Commit

Permalink
Debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Dec 11, 2024
1 parent cc02f01 commit b9fee9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/filters/conditional-archives.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
function Meta(meta)
-- Check if each DOI is present and not set to 'N/A'
print("Repository DOI:", meta.repository_doi)
print("Data DOI:", meta.data_doi)
print("Book DOI:", meta.book_doi)
print("Docker DOI:", meta.docker_doi)
print("Software Review URL:", meta.software_review_url)
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
print("Data DOI is present and not N/A")
end
if meta.book_doi and meta.book_doi ~= 'N/A' then
meta.include_book_doi = true
Expand Down

0 comments on commit b9fee9f

Please sign in to comment.