diff -r 34ffc04cef62 -r e60c55988ed4 server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php --- a/server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php Wed Feb 03 18:34:44 2016 +0100 +++ b/server/src/app/Libraries/Mappers/CocoonContentRdfMapper.php Fri Feb 05 15:08:46 2016 +0100 @@ -108,19 +108,24 @@ } + protected function addResourceRightProperties($resource, $res) { + $this->applyPropertiesToRes($res, $resource, [ + ['http://purl.org/dc/elements/1.1/rights', null], + ['http://purl.org/dc/terms/license', null], + ['http://purl.org/dc/terms/accessRights', 'propertyTrimMap'], + ]); + } + protected function addCHOResourceProperties($providedCHOResource, $res, $outputGraph) { $this->applyPropertiesToRes($res, $providedCHOResource, [ ['http://purl.org/dc/terms/tableOfContents', null], ['http://purl.org/dc/elements/1.1/description', null], ['http://purl.org/dc/elements/1.1/language', null], ['http://purl.org/dc/elements/1.1/publisher', null], - ['http://purl.org/dc/elements/1.1/rights', null], ['http://purl.org/dc/elements/1.1/type', 'propertyTypeMap'], - ['http://purl.org/dc/terms/license', null], ['http://purl.org/dc/elements/1.1/subject', null], ['http://purl.org/dc/elements/1.1/title', null], ['http://purl.org/dc/elements/1.1/language', null], - ['http://purl.org/dc/terms/accessRights', 'propertyTrimMap'], ['http://purl.org/dc/terms/extent', null], ['http://purl.org/dc/terms/isPartOf', 'propertyCollectionMap'], ['http://purl.org/dc/terms/abstract', null], @@ -160,9 +165,11 @@ ['http://www.language-archives.org/OLAC/1.1/translator', 'propertyOlacRoleMap'], ]); + $this->addResourceRightProperties($providedCHOResource, $res); + } - protected function addDateToWebResource($sourceRes, $targetRes) { + protected function addDateToWebResource($targetRes, $sourceRes) { $this->applyPropertiesToRes($sourceRes, $targetRes, [ ['http://purl.org/dc/terms/created', null],