Skip to content

Commit

Permalink
Merge branch 'schema-4.5-r2' of https://github.com/datacite/lupo into…
Browse files Browse the repository at this point in the history
… schema-4.5-r3
  • Loading branch information
codycooperross committed Dec 4, 2023
2 parents 641a27b + 580e305 commit 48ab25d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 34 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ gem "aws-sdk-sqs", "~> 1.3"
gem "base32-url", "~> 0.3"
gem "batch-loader", "~> 1.4", ">= 1.4.1"
gem "bcrypt", "~> 3.1.7"
# gem "bolognese", "~> 1.11.5"
gem "bolognese", git: "https://github.com/datacite/bolognese", branch: "schema-4.5"
gem "bolognese", "~> 2.0.0"
gem "bootsnap", "~> 1.4", ">= 1.4.4", require: false
gem "cancancan", "~> 3.0"
gem "commonmarker", "~> 0.23.4"
Expand Down
56 changes: 25 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
GIT
remote: https://github.com/datacite/bolognese
revision: 98870f13479ef266a4b773e5295958886252a5a8
branch: schema-4.5
specs:
bolognese (1.11.5)
activesupport (>= 4.2.5)
benchmark_methods (~> 0.7)
bibtex-ruby (>= 5.1.0)
builder (~> 3.2, >= 3.2.2)
citeproc-ruby (~> 1.1, >= 1.1.12)
colorize (~> 0.8.1)
concurrent-ruby (~> 1.1, >= 1.1.5)
csl-styles (~> 1.0, >= 1.0.1.10)
edtf (~> 3.0, >= 3.0.4)
gender_detector (~> 0.1.2)
iso8601 (~> 0.9.1)
json-ld-preloaded (~> 3.1, >= 3.1.3)
jsonlint (~> 0.3.0)
loofah (~> 2.0, >= 2.0.3)
maremma (>= 4.9.4, < 5)
namae (~> 1.0)
nokogiri (>= 1.13.2, < 1.14)
oj (~> 3.10)
oj_mimic_json (~> 1.0, >= 1.0.1)
postrank-uri (~> 1.0, >= 1.0.18)
rdf-rdfxml (~> 3.1)
rdf-turtle (~> 3.1)
thor (>= 0.19)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -143,6 +113,30 @@ GEM
latex-decode (~> 0.0)
binding_of_caller (1.0.0)
debug_inspector (>= 0.0.1)
bolognese (2.0.0)
activesupport (>= 4.2.5)
benchmark_methods (~> 0.7)
bibtex-ruby (>= 5.1.0)
builder (~> 3.2, >= 3.2.2)
citeproc-ruby (~> 1.1, >= 1.1.12)
colorize (~> 0.8.1)
concurrent-ruby (~> 1.1, >= 1.1.5)
csl-styles (~> 1.0, >= 1.0.1.10)
edtf (~> 3.0, >= 3.0.4)
gender_detector (~> 0.1.2)
iso8601 (~> 0.9.1)
json-ld-preloaded (~> 3.1, >= 3.1.3)
jsonlint (~> 0.3.0)
loofah (~> 2.0, >= 2.0.3)
maremma (>= 4.9.4, < 5)
namae (~> 1.0)
nokogiri (>= 1.13.2, < 1.14)
oj (~> 3.10)
oj_mimic_json (~> 1.0, >= 1.0.1)
postrank-uri (~> 1.0, >= 1.0.18)
rdf-rdfxml (~> 3.1)
rdf-turtle (~> 3.1)
thor (>= 0.19)
bootsnap (1.15.0)
msgpack (~> 1.2)
builder (3.2.4)
Expand Down Expand Up @@ -662,7 +656,7 @@ DEPENDENCIES
bcrypt (~> 3.1.7)
better_errors
binding_of_caller
bolognese!
bolognese (~> 2.0.0)
bootsnap (~> 1.4, >= 1.4.4)
bullet (~> 6.1)
byebug
Expand Down
2 changes: 1 addition & 1 deletion app/graphql/types/doi_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def citeproc_hsh
"volume" => object.container.to_h["volume"],
"issue" => object.container.to_h["issue"],
"page" => page,
"publisher" => object.publisher["name"] || object.publisher,
"publisher" => (object.publisher.is_a?(Hash) ? object.publisher&.fetch("name", nil) : object.publisher),
"title" => parse_attributes(object.titles, content: "title", first: true),
"URL" => object.url,
"version" => object.version_info,
Expand Down

0 comments on commit 48ab25d

Please sign in to comment.