purl_fetcher-client 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b158de0a0c55f35eda9d832c34969edda80ce26bc5802e56217beae5309c9a4
|
4
|
+
data.tar.gz: c26835ca9f955e74e5dd07d6807b66754e3ce69d7f1f4174e483955fedbb9233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86b9b87edbcf9505316a6d3674c04710376ef974c4d6a09fb869befb8147935ff4849cd71a09d8e7f15d0619f5338f0393cb587316948777a2c942e7fe170467
|
7
|
+
data.tar.gz: 65d148438df919cc085ee88e966182ec5d42581266dda51e415c1e47737d4dac8f23541bf4f7984eea464f0f18c2f1f3565578187dc6370900ac41156f04a6ac
|
@@ -75,7 +75,14 @@ module PurlFetcher::Client
|
|
75
75
|
@mods ||= if public_xml_doc.xpath('/publicObject/mods:mods', mods: 'http://www.loc.gov/mods/v3').any?
|
76
76
|
public_xml_doc.xpath('/publicObject/mods:mods', mods: 'http://www.loc.gov/mods/v3').first
|
77
77
|
else
|
78
|
-
|
78
|
+
if defined?(Honeybadger)
|
79
|
+
Honeybadger.notify(
|
80
|
+
'Unable to find MODS in the public xml; falling back to stand-along mods document',
|
81
|
+
context: { druid: druid }
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
Nokogiri::XML(self.class.fetch(purl_base_url + "/#{druid}.mods"))
|
79
86
|
end
|
80
87
|
end
|
81
88
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purl_fetcher-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|