Extend import to get copyrights (#53)

This commit is contained in:
Dirk Koritnik 2024-04-23 11:14:43 +02:00 committed by Daniel Siepmann
parent f7e8e0a1a4
commit 61b91b2ea6
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
7 changed files with 39 additions and 2 deletions

View file

@ -135,6 +135,7 @@ final class FilesAssignment
'alternative' => $mediaObject['description'] ?? '',
'creator_tool' => 'destination.one',
'source' => $mediaObject['url'] ?? '',
'copyright' => $mediaObject['source'] ?? ''
]);
}

View file

@ -0,0 +1,27 @@
3.6.0
=====
Breaking
--------
Nothing
Features
--------
* Import copyright from destination.one media object field source in file metadata field copyright.
Fixes
-----
Nothing
Tasks
-----
Nothing
Deprecation
-----------
Nothing

View file

@ -85,6 +85,7 @@ return [
'alternative' => '',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/849917/279ac45b3fc701a7197131f627164fffd9f8cc77bc75165e2fc2b864ed606920/theater-rudolstadt_johannes-gei-er_photo-by-lisa-stern_web_-jpg.jpg',
'copyright' => 'Max Mustermann',
],
[
'uid' => 2,
@ -95,6 +96,7 @@ return [
'alternative' => 'Description of Tueftlerzeit',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/828118/f13bbf5602ffc406ebae2faa3527654dea84194666bce4925a1ca8bd3f50c5e9/tueftlerzeit-sfz-rudolstadt-jpg.jpg',
'copyright' => '',
],
[
'uid' => 3,
@ -105,6 +107,7 @@ return [
'alternative' => '',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/853436/109ac1cf87913e21b5e2b0ef0cc63d223a14374364952a855746a8e7c3fcfc36/lutherkirche-jpg.jpg',
'copyright' => '',
],
],
];

View file

@ -63,6 +63,7 @@ return [
'alternative' => '',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/849917/279ac45b3fc701a7197131f627164fffd9f8cc77bc75165e2fc2b864ed606920/theater-rudolstadt_johannes-gei-er_photo-by-lisa-stern_web_-jpg.jpg',
'copyright' => 'Max Mustermann',
],
[
'uid' => 2,
@ -73,6 +74,7 @@ return [
'alternative' => 'Description of Tueftlerzeit',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/828118/f13bbf5602ffc406ebae2faa3527654dea84194666bce4925a1ca8bd3f50c5e9/tueftlerzeit-sfz-rudolstadt-jpg.jpg',
'copyright' => '',
],
],
];

View file

@ -67,6 +67,7 @@ return [
'title' => 'Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg',
'description' => '',
'alternative' => '',
'copyright' => 'John Doe',
],
[
'uid' => 2,
@ -75,6 +76,7 @@ return [
'title' => 'Tueftlerzeit©SFZ-Rudolstadt.jpg',
'description' => 'Description of Tueftlerzeit',
'alternative' => 'Description of Tueftlerzeit',
'copyright' => 'Max Mustermann'
],
],
'tx_events_domain_model_event' => [

View file

@ -81,7 +81,8 @@
"longitude": null,
"width": 1920,
"height": 1080,
"value": "Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg"
"value": "Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg",
"source": "Max Mustermann"
},
{
"rel": "default",

View file

@ -81,7 +81,8 @@
"longitude": null,
"width": 1920,
"height": 1080,
"value": "Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg"
"value": "Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg",
"source": "Max Mustermann"
}
],
"keywords": [],