Skip to content
Snippets Groups Projects
Commit 90af01c0 authored by Laurent's avatar Laurent
Browse files

hotline #121727 Bacon : handles tag <date_monograph_published_print> to set...

hotline #121727 Bacon : handles tag <date_monograph_published_print> to set album year and record 214$d
parent a56f0079
Branches
Tags
1 merge request!3740hotline #121727 Bacon : handles tag <date_monograph_published_print> to set…
- ticket #121727 : Connecteur Bacon : prendre en compte l'année d'édition en 214$d
\ No newline at end of file
......@@ -140,7 +140,9 @@ class Bacon_Service_Parser {
public function endDate_Monograph_Published_Print($data) {
$this->_current_album->addNote('214$d', $data);
if ($data)
$this->_current_album->addNote('214$d', $data)
->setYear($data);
}
......
......@@ -183,7 +183,8 @@ class BaconHarvestingTest extends BaconActivatedTestCase {
public function recordProperties() {
return [['ISBN', '1476-4687'],
['titrePrincipal', 'Nature']];
['titrePrincipal', 'Nature'],
['annee', '1869'] ];
}
......@@ -194,6 +195,12 @@ class BaconHarvestingTest extends BaconActivatedTestCase {
}
/** @test */
public function record214DollarDShouldBe1869() {
$this->assertEquals('1869', $this->_record->get_subfield('214', 'd')[0]);
}
public function albumProperties() {
return [['description', '1869 1 1 2012 492 7429 fulltext Année d\'édition de la version électronique'],
];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment