Skip to content

Commit

Permalink
Extend import to get copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
koritnik committed Apr 23, 2024
1 parent 8259ac4 commit d9d7d3d
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private function updateMetadata(
'alternative' => $mediaObject['description'] ?? '',
'creator_tool' => 'destination.one',
'source' => $mediaObject['url'] ?? '',
'copyright' => $mediaObject['source'] ?? ''
]);
}

Expand Down
27 changes: 27 additions & 0 deletions Documentation/Changelog/3.6.0.rst
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
'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,
Expand All @@ -94,6 +95,7 @@
'alternative' => 'Description of Tueftlerzeit',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/828118/f13bbf5602ffc406ebae2faa3527654dea84194666bce4925a1ca8bd3f50c5e9/tueftlerzeit-sfz-rudolstadt-jpg.jpg',
'copyright' => '',
],
[
'uid' => 3,
Expand All @@ -104,6 +106,7 @@
'alternative' => '',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/853436/109ac1cf87913e21b5e2b0ef0cc63d223a14374364952a855746a8e7c3fcfc36/lutherkirche-jpg.jpg',
'copyright' => '',
],
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'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,
Expand All @@ -71,6 +72,7 @@
'alternative' => 'Description of Tueftlerzeit',
'creator_tool' => 'destination.one',
'source' => 'https://dam.destination.one/828118/f13bbf5602ffc406ebae2faa3527654dea84194666bce4925a1ca8bd3f50c5e9/tueftlerzeit-sfz-rudolstadt-jpg.jpg',
'copyright' => '',
],
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
'title' => 'Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg',
'description' => '',
'alternative' => '',
'copyright' => 'John Doe',
],
[
'uid' => 2,
Expand All @@ -73,6 +74,7 @@
'title' => 'Tueftlerzeit©SFZ-Rudolstadt.jpg',
'description' => 'Description of Tueftlerzeit',
'alternative' => 'Description of Tueftlerzeit',
'copyright' => 'Max Mustermann'
],
],
'tx_events_domain_model_event' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'state' => 'stable',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '3.5.2',
'version' => '3.6.0',
'constraints' => [
'depends' => [
'typo3' => '10.4.00-11.5.99',
Expand Down

0 comments on commit d9d7d3d

Please sign in to comment.