lib/bolognese/utils.rb in bolognese-0.9.77 vs lib/bolognese/utils.rb in bolognese-0.9.78

- old
+ new

@@ -309,9 +309,13 @@ "citeproc" elsif Maremma.from_json(string).to_h.dig("@context").to_s.start_with?("http://schema.org") "schema_org" elsif Maremma.from_json(string).to_h.dig("@context") == ("https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld") "codemeta" + elsif string.start_with?("TY - ") + "ris" + elsif BibTeX.parse(string).first + "bibtex" end end def orcid_from_url(url) Array(/\A:(http|https):\/\/orcid\.org\/(.+)/.match(url)).last