uc3-dmp-citation 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-citation/version.rb +1 -1
- data/lib/uc3-dmp-citation.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68d3163d0ad27c7912aac4c6cd55b1ac698a30eb5d6da8596ad456b3895878eb
|
4
|
+
data.tar.gz: 91b1daad359992246dffcedc8d05c061a0251df0893f49d2b3f35c061ec044d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5db74525a5425672a53c2b40091c93a98bd675fd28639ce8bb8b471c40018155fe670a5ddef0d82a658d672a8f581db33f0375e06308a8564561de92daa212a0
|
7
|
+
data.tar.gz: 34c7659bae12077d1691584a5d579c146b9632f48ecb691bd23dc389ac1eddb4ead4559c5cec807af6253b0751e9f25b58b4b0044561c49ef8137c5d73d9e09a
|
data/lib/uc3-dmp-citation.rb
CHANGED
@@ -25,6 +25,7 @@ module Uc3DmpCitation
|
|
25
25
|
uri = _doi_to_uri(doi: doi)
|
26
26
|
return nil if uri.nil? || uri.blank?
|
27
27
|
|
28
|
+
headers = { Accept: 'application/x-bibtex' }
|
28
29
|
logger.debug(message: "Fetching BibTeX from: #{uri}") if logger.respond_to?(:debug)
|
29
30
|
resp = Uc3DmpExternalApi::Client.call(url: uri, method: :get, additional_headers: headers, logger: logger)
|
30
31
|
return nil if resp.nil? || resp.to_s.strip.empty?
|