lib/bolognese/readers/schema_org_reader.rb in bolognese-0.9.32 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-0.9.33
- old
+ new
@@ -64,10 +64,12 @@
id = normalize_id(id)
response = Maremma.get(id)
doc = Nokogiri::XML(response.body.fetch("data", nil), nil, 'UTF-8')
string = doc.at_xpath('//script[@type="application/ld+json"]')
- string.text if string.present?
+ string = string.text if string.present?
+
+ { "string" => string }
end
def schema_org_related_identifier(meta, relation_type: nil)
normalize_ids(ids: meta.fetch(relation_type, nil))
end