rgeoserver 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rgeoserver/coverage.rb +13 -14
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
data/lib/rgeoserver/coverage.rb
CHANGED
@@ -65,22 +65,21 @@ module RGeoServer
|
|
65
65
|
def message
|
66
66
|
builder = Nokogiri::XML::Builder.new do |xml|
|
67
67
|
xml.coverage {
|
68
|
+
xml.nativeName @name if new? # on new only
|
68
69
|
xml.name @name
|
69
|
-
xml.title @title
|
70
|
+
xml.title @title if title_changed? || new?
|
71
|
+
xml.abstract @abstract if abstract_changed? || new?
|
70
72
|
xml.enabled @enabled if enabled_changed? or new?
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
xml.
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
end
|
82
|
-
} if @metadata_links
|
83
|
-
end
|
73
|
+
xml.metadataLinks {
|
74
|
+
@metadata_links.each do |m|
|
75
|
+
raise ArgumentError, "Malformed metadata_links" unless m.is_a? Hash
|
76
|
+
xml.metadataLink {
|
77
|
+
xml.type_ to_mimetype(m['metadataType'])
|
78
|
+
xml.metadataType m['metadataType']
|
79
|
+
xml.content m['content']
|
80
|
+
}
|
81
|
+
end
|
82
|
+
} unless @metadata_links.empty?
|
84
83
|
xml.keywords {
|
85
84
|
@keywords.each do |k|
|
86
85
|
xml.keyword RGeoServer::Metadata::to_keyword(k)
|