I've enabled the schema.org module. Now, my node title has only the schema:name RDF property and the dc:title property is not shown anymore.
I think schema:name should not replace dc:title. Instead, schema:name should be added.
The schema:name is set in schemaorg_field_ui_field_edit_form_submit().
if ($schemaorg_mappings) {
// Specifies the title/name mapping as expected by schema.org. This mapping
// is always set to schema:name and is not exposed in the UI.
// The label of an entity is usually either 'title' (e.g. node) or
// 'name' (e.g. user).
if (!empty($mapping['title'])) {
$mapping['title']['predicates'] = array('schema:name');
}
if (!empty($mapping['name'])) {
$mapping['name']['predicates'] = array('schema:name');
}
...
Even after disabling the schema.org module, schema:name instead of dc:title is shown.
I think this problem is due to the handling of default mappings in the RDF module.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1534254_4_dc_title.patch | 2.86 KB | scito |
| #3 | 1534254_3_dc_title.patch | 2.74 KB | scor |
| #2 | 1534254_2_dc_title.patch | 1.86 KB | scor |
Comments
Comment #1
scitoChange title and add tags
Comment #2
scor commentedThanks @scito for the report. Here is a patch which should fix the bug.
Comment #3
scor commentednow with update function.
Comment #4
scitoI've fixed a problem in the update function. It should also restore foaf:name. Otherwise the patch looks good to me.