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:
- islandora
id: fedora_resource_type.rdf_source
targetEntityType: fedora_resource_type
targetEntityType: fedora_resource
bundle: rdf_source
types:
- 'schema:Thing'
@ -34,3 +34,11 @@ fieldMappings:
properties:
- 'schema:author'
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'))
->setDescription(t('Contains Fedora Resource.'))
->setRevisionable(TRUE)
->setSetting('target_type', 'fedora_resource_type')
->setSetting('target_type', 'fedora_resource')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setDisplayOptions('view', array(

Loading…
Cancel
Save