From 2ae21b1091691b1ca018bf883f8e4ffdf3f64294 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 8 Dec 2021 08:02:54 +0100 Subject: [PATCH] support cff for collections (that may include software). #4 --- Gemfile.lock | 2 +- lib/briard/version.rb | 2 +- lib/briard/writers/cff_writer.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index a65f2bc3..327a3b75 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/lib/briard/version.rb b/lib/briard/version.rb index 3d251c88..daf5ac1e 100644 --- a/lib/briard/version.rb +++ b/lib/briard/version.rb @@ -1,3 +1,3 @@ module Briard - VERSION = "2.2.1" + VERSION = "2.2.2" end diff --git a/lib/briard/writers/cff_writer.rb b/lib/briard/writers/cff_writer.rb index ed151355..09605dba 100644 --- a/lib/briard/writers/cff_writer.rb +++ b/lib/briard/writers/cff_writer.rb @@ -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)