diff --git a/VERSIONS_WIP/30973 b/VERSIONS_WIP/30973 new file mode 100644 index 0000000000000000000000000000000000000000..f3767c32f527b8c5885259b12a8ed2da76a17af1 --- /dev/null +++ b/VERSIONS_WIP/30973 @@ -0,0 +1 @@ + - ticket #30973 : [PNB] backoffice \ No newline at end of file diff --git a/library/Class/WebService/BibNumerique/Dilicom/Book.php b/library/Class/WebService/BibNumerique/Dilicom/Book.php index 05317bdca1a23f103374bb46f034af46baf9676a..432b16c5a1f103c0d7188f30e0ea136c5437feee 100644 --- a/library/Class/WebService/BibNumerique/Dilicom/Book.php +++ b/library/Class/WebService/BibNumerique/Dilicom/Book.php @@ -35,6 +35,7 @@ class Class_WebService_BibNumerique_Dilicom_Book extends Class_WebService_BibNum ->setISBN($this->_isbn) ->setSousTitre($this->_subtitle) ->addEditor($this->getEditeur()) + ->setDroits(2) ->setUsageConstraints($this->_usage_constraints) ->addItem(new Class_Album_Item()); diff --git a/tests/library/Class/WebService/Dilicom/ONIXParserTest.php b/tests/library/Class/WebService/Dilicom/ONIXParserTest.php index 22a50ce786cee18243d359706901b5185b9dd063..55de39d7b87f6d25b8f5df3507b5e721e864e408 100644 --- a/tests/library/Class/WebService/Dilicom/ONIXParserTest.php +++ b/tests/library/Class/WebService/Dilicom/ONIXParserTest.php @@ -92,6 +92,13 @@ class DilicomONIXParserTest extends Storm_Test_ModelTestCase { } + /** @test */ + public function albumRightShouldBe2() { + $album = $this->_book->import(); + $this->assertEquals(2, $album->getDroits()); + } + + /** * @depends importAlbumTypeDocShouldBeDILICOM * @test