Browse Source

Fix ldp:contains reference target and add default rdf map for fedora:hasParent,ldp:contains (#16)

pull/756/head
Jared Whiklo 8 years ago committed by dannylamb
parent
commit
4bd401a600
  1. 10
      islandora/config/install/rdf.mapping.fedora_resource_type.rdf_source.yml
  2. 2
      islandora/src/Entity/FedoraResource.php

10
islandora/config/install/rdf.mapping.fedora_resource_type.rdf_source.yml

@ -6,7 +6,7 @@ dependencies:
module: module:
- islandora - islandora
id: fedora_resource_type.rdf_source id: fedora_resource_type.rdf_source
targetEntityType: fedora_resource_type targetEntityType: fedora_resource
bundle: rdf_source bundle: rdf_source
types: types:
- 'schema:Thing' - 'schema:Thing'
@ -34,3 +34,11 @@ fieldMappings:
properties: properties:
- 'schema:author' - 'schema:author'
mapping_type: rel mapping_type: rel
fedora_has_parent:
properties:
- 'fedora:hasParent'
mapping_type: rel
ldp_contains:
properties:
- 'ldp:contains'
mapping_type: rel

2
islandora/src/Entity/FedoraResource.php

@ -340,7 +340,7 @@ class FedoraResource extends ContentEntityBase implements FedoraResourceInterfac
->setLabel(t('LDP Contains')) ->setLabel(t('LDP Contains'))
->setDescription(t('Contains Fedora Resource.')) ->setDescription(t('Contains Fedora Resource.'))
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSetting('target_type', 'fedora_resource_type') ->setSetting('target_type', 'fedora_resource')
->setSetting('handler', 'default') ->setSetting('handler', 'default')
->setTranslatable(TRUE) ->setTranslatable(TRUE)
->setDisplayOptions('view', array( ->setDisplayOptions('view', array(

Loading…
Cancel
Save