diff --git a/VERSIONS_HOTLINE/136863 b/VERSIONS_HOTLINE/136863 new file mode 100644 index 0000000000000000000000000000000000000000..3eba8a44ab4881fe20f704897546aabfcb404f2d --- /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 b57fa641b4076f1d6b6e58bd2d21e3d317ef5fec..370319b3ee64ad9c7c491db6eb116a3c2f9233e0 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 b5ab428a51962a7cdaaf30fe4c09766a5c828204..b7338815a9eca75b7b05e4ee43b7d25da0e88f1d 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] ]; }