lib/bolognese/datacite_utils.rb in bolognese-1.0.28 vs lib/bolognese/datacite_utils.rb in bolognese-1.0.29

- old
+ new

@@ -83,11 +83,11 @@ else t = {} t["title"] = title end - attributes = { 'titleType' => t["titleType"], 'lang' => t["lang"] }.compact + attributes = { 'titleType' => t["titleType"], 'xml:lang' => t["lang"] }.compact xml.title(t["title"], attributes) end end end @@ -152,11 +152,11 @@ else s = {} s["subject"] = subject end - attributes = { "subjectScheme" => s["subjectScheme"], "schemeURI" => s["schemeUri"], "valueURI" => s["valueUri"], "lang" => s["lang"] }.compact + attributes = { "subjectScheme" => s["subjectScheme"], "schemeURI" => s["schemeUri"], "valueURI" => s["valueUri"], "xml:lang" => s["lang"] }.compact xml.subject(s["subject"], attributes) end end end @@ -197,11 +197,11 @@ r = {} r["rights"] = rights r["rightsUri"] = normalize_id(rights) end - attributes = { 'rightsURI' => r["rightsUri"], 'lang' => r["lang"] }.compact + attributes = { 'rightsURI' => r["rightsUri"], 'xml:lang' => r["lang"] }.compact xml.rights(r["rights"], attributes) end end end @@ -221,10 +221,10 @@ d = {} d["description"] = description d["descriptionType"] = "Abstract" end - attributes = { 'lang' => d["lang"], 'descriptionType' => d["descriptionType"] || "Abstract" }.compact + attributes = { 'xml:lang' => d["lang"], 'descriptionType' => d["descriptionType"] || "Abstract" }.compact xml.description(d["description"], attributes) end end end