File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
lib/oai/provider/metadata_format Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
module OAI ::Provider ::Metadata
2
- # = OAI::Metadata::DublinCore
3
- #
2
+
4
3
# Simple implementation of the Dublin Core metadata format.
5
4
class DublinCore < Format
6
-
5
+
7
6
def initialize
8
7
@prefix = 'oai_dc'
9
8
@schema = 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd'
@@ -19,9 +18,9 @@ def header_specification
19
18
'xmlns:oai_dc' => "http://www.openarchives.org/OAI/2.0/oai_dc/" ,
20
19
'xmlns:dc' => "http://purl.org/dc/elements/1.1/" ,
21
20
'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance" ,
22
- 'xsi:schemaLocation' =>
23
- %{http://www.openarchives.org/OAI/2.0/oai_dc/
24
- http://www.openarchives.org/OAI/2.0/oai_dc.xsd}
21
+ 'xsi:schemaLocation' =>
22
+ %{http://www.openarchives.org/OAI/2.0/oai_dc/
23
+ http://www.openarchives.org/OAI/2.0/oai_dc.xsd} . gsub ( / \s +/ , ' ' )
25
24
}
26
25
end
27
26
You can’t perform that action at this time.
0 commit comments