From 7d9f8a8b0ff5a01d4460dd9a174c02764987dd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ANDRE=20s=C3=A9bastien?= <sandre@afi-sa.fr> Date: Wed, 23 Jun 2021 17:57:54 +0200 Subject: [PATCH] hotline#136863 : zotero : add collation for streaming and videos --- VERSIONS_HOTLINE/136863 | 1 + library/Class/Notice/MetaData.php | 6 ++++++ tests/scenarios/Zotero/ZoteroTest.php | 1 + 3 files changed, 8 insertions(+) create mode 100644 VERSIONS_HOTLINE/136863 diff --git a/VERSIONS_HOTLINE/136863 b/VERSIONS_HOTLINE/136863 new file mode 100644 index 00000000000..3eba8a44ab4 --- /dev/null +++ b/VERSIONS_HOTLINE/136863 @@ -0,0 +1 @@ + - ticket #136863 : Zotero : Ajout du support de la durée pour les vidéos \ No newline at end of file diff --git a/library/Class/Notice/MetaData.php b/library/Class/Notice/MetaData.php index b57fa641b40..370319b3ee6 100644 --- a/library/Class/Notice/MetaData.php +++ b/library/Class/Notice/MetaData.php @@ -198,6 +198,12 @@ class Class_Notice_MetaData_VideoMovie extends Class_Notice_MetaData { $script_loader->addMeta('dc.identifier', $this->_record->getEan()); return $this; } + + + protected function _addPages($script_loader) { + $script_loader->addMeta('Z.runningTime', $this->_record->getCollation()); + return $this; + } } diff --git a/tests/scenarios/Zotero/ZoteroTest.php b/tests/scenarios/Zotero/ZoteroTest.php index b5ab428a519..b7338815a9e 100644 --- a/tests/scenarios/Zotero/ZoteroTest.php +++ b/tests/scenarios/Zotero/ZoteroTest.php @@ -222,6 +222,7 @@ class ZoteroVideoTest extends ZoteroTestCase { ['dc.creator', 'Cleese, John'], ['dc.creator', 'Coltrane, Robbie'], ['dc.creator', 'Davis, Warwick'], + ['Z.runningTime', '2 DVD vidéo monoface zone 2 (2 h 27 min) ; coul.'], ['Z.volume', 1] ]; } -- GitLab