From ee5ee9b0bce3744e56202556970dde10086792a8 Mon Sep 17 00:00:00 2001 From: Cornelius Link Date: Mon, 25 Nov 2019 11:32:47 +0100 Subject: [PATCH] Add dynamicMetadata field and implement copyright notices --- Classes/AssetSource/PixxioAssetProxy.php | 1 + Classes/Service/PixxioClient.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/AssetSource/PixxioAssetProxy.php b/Classes/AssetSource/PixxioAssetProxy.php index b51f0ff..e914ae4 100644 --- a/Classes/AssetSource/PixxioAssetProxy.php +++ b/Classes/AssetSource/PixxioAssetProxy.php @@ -124,6 +124,7 @@ static public function fromJsonObject(\stdClass $jsonObject, PixxioAssetSource $ $assetProxy->iptcProperties['Title'] = $jsonObject->subject ?? ''; $assetProxy->iptcProperties['CaptionAbstract'] = $jsonObject->description ?? ''; + $assetProxy->iptcProperties['CopyrightNotice'] = $jsonObject->dynamicMetadata->CopyrightNotice ?? ''; $assetProxy->widthInPixels = $jsonObject->imageWidth ?? null; $assetProxy->heightInPixels = $jsonObject->imageHeight ?? null; diff --git a/Classes/Service/PixxioClient.php b/Classes/Service/PixxioClient.php index f2dca82..f1ccd44 100644 --- a/Classes/Service/PixxioClient.php +++ b/Classes/Service/PixxioClient.php @@ -57,7 +57,7 @@ final class PixxioClient */ private $fields = [ 'id', 'originalFilename', 'fileType', 'keywords', 'createDate', 'imageHeight', 'imageWidth', 'originalPath', 'subject', 'description', - 'modifyDate', 'fileSize', 'modifiedImagePaths', 'imagePath' + 'modifyDate', 'fileSize', 'modifiedImagePaths', 'imagePath', 'dynamicMetadata' ];