Skip to content

Commit

Permalink
support cff for collections (that may include software). #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Dec 8, 2021
1 parent ba105a2 commit 2ae21b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
briard (2.2.1)
briard (2.2.2)
activesupport (>= 4.2.5)
benchmark_methods (~> 0.7)
bibtex-ruby (>= 5.1.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/briard/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Briard
VERSION = "2.2.1"
VERSION = "2.2.2"
end
2 changes: 1 addition & 1 deletion lib/briard/writers/cff_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def cff
return nil unless valid? || show_errors

# only use CFF for software
return nil unless types["resourceTypeGeneral"] == "Software"
return nil unless %w(Software Collection).include?(types["resourceTypeGeneral"])

title = parse_attributes(titles, content: "title", first: true)

Expand Down

0 comments on commit 2ae21b1

Please sign in to comment.