We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f140f8e commit 2cd1b2dCopy full SHA for 2cd1b2d
2 files changed
lib/oai/client/header.rb
@@ -7,7 +7,7 @@ def initialize(element)
7
@status = get_attribute(element, 'status')
8
@identifier = xpath(element, './/identifier')
9
@datestamp = xpath(element, './/datestamp')
10
- @set_spec = xpath(element, './/setSpec')
+ @set_spec = xpath_all(element, './/setSpec')
11
end
12
13
def deleted?
lib/oai/client/response.rb
@@ -17,7 +17,12 @@ def initialize(doc)
17
code = error.attributes['code']
18
when 'LibXML::XML::Node'
19
message = error.content
20
- code = error.attributes('code')
+ code = ""
21
+ if defined?(error.property) == nil
22
+ code = error.attributes['code']
23
+ else
24
+ code.property('code')
25
+ end
26
27
raise OAI::Exception.new(message, code)
28
0 commit comments