Commit 88636e00fc1dab224ce244969ef1ab0544e3cb34
1 parent
76aa0ada
Exists in
staging
and in
4 other branches
virtuoso: fix dspace harvest
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/virtuoso/lib/virtuoso_plugin/dspace_harvest.rb
... | ... | @@ -27,7 +27,7 @@ class VirtuosoPlugin::DspaceHarvest |
27 | 27 | values = [metadata.send(c)].flatten.compact |
28 | 28 | values.each do |value| |
29 | 29 | query = RDF::Virtuoso::Query.insert_data([RDF::URI.new(metadata.identifier), RDF::URI.new("http://purl.org/dc/elements/1.1/#{c}"), value]).graph(RDF::URI.new(settings.dspace_uri)) |
30 | - virtuoso_client.insert(query) | |
30 | + plugin.virtuoso_client.insert(query) | |
31 | 31 | end |
32 | 32 | end |
33 | 33 | end | ... | ... |
plugins/virtuoso/lib/virtuoso_plugin/dublin_core_metadata.rb
... | ... | @@ -9,7 +9,7 @@ class VirtuosoPlugin::DublinCoreMetadata |
9 | 9 | @creator = xpath(element, './/dc:creator') |
10 | 10 | @subject = xpath_all(element, './/dc:subject').map(&:text) |
11 | 11 | @description = xpath(element, './/dc:description') |
12 | - @date = xpath_all(element, './/dc:date').map(&:text) | |
12 | + @date = xpath(element, './/dc:date') | |
13 | 13 | @type = xpath(element, './/dc:type') |
14 | 14 | @identifier = xpath(element, './/dc:identifier') |
15 | 15 | @language = xpath(element, './/dc:language') | ... | ... |