--- a/server/src/app/Libraries/Mergers/CocoonSoundRdfMerger.php Wed Jan 20 20:46:59 2016 +0100
+++ b/server/src/app/Libraries/Mergers/CocoonSoundRdfMerger.php Wed Feb 03 00:40:35 2016 +0100
@@ -127,9 +127,23 @@
"http://purl.org/dc/terms/available",
"http://purl.org/dc/terms/created",
"http://purl.org/dc/terms/issued",
- "http://purl.org/dc/terms/modified"
], $targetArray, $baseRes, $srcRes);
+ // Must handle modified
+ $isBaseText = false;
+ foreach ($baseRes->all("dc11:type","resource") as $resType) {
+ $type = $resType->getUri();
+ if($type === 'http://purl.org/dc/dcmitype/Text') {
+ $isBaseText = true;
+ break;
+ }
+ }
+ if($isBaseText) {
+ // The base is Text. In this case for http://purl.org/dc/terms/mofified,
+ // the sound takes over. So we switch baseRes with srcRes in the arguments
+ $this->mergeProperties([], ["http://purl.org/dc/terms/mofified"], $targetArray, $srcRes, $baseRes);
+ }
+
}
protected function mergeEdmWebResources($baseRes, $srcRes, $uri=null) {