Skip to content
Snippets Groups Projects
Commit 9ff21e2b authored by Arthur Suzuki's avatar Arthur Suzuki
Browse files

hotline#153713 : fix import of subject from DublinCore

parent 812be756
Branches
Tags
1 merge request!4400hotline#153713 : fix import of subject from DublinCore
Pipeline #16834 passed with stage
in 38 minutes and 38 seconds
- correctif #153713 : Les mots matières sont désormais correctement créés depuis un import DublinCore.
\ No newline at end of file
......@@ -63,7 +63,7 @@ class Class_Cosmogramme_Integration_Record_DublinCore extends notice_unimarc {
->visitDescriptions($this->_datas['rights'])
->visitDescriptions($this->_datas['relation'])
->visitLanguageId($first_language)
->visitMatiere(implode(';', $this->_datas['matiere']))
->visitMatiere(Class_CodifMatiere::getOrCreateIdsForLabels(($this->_datas['matiere'])))
->visitEditors($this->_datas['editeur'], $this->_datas['date'])
->visitItems($this->_getItem())
->visitAuteur($authors);
......
......@@ -180,6 +180,13 @@ class PhaseNoticeDublinCoreTest extends AbstractPhaseNoticeDublinCoreTestCase {
}
/** @test */
public function firstRecord610DollarAShouldContainsEurope() {
$sujet = Class_Notice::find(1)->get_subfield('610','a');
$this->assertContains('Europe', $sujet);
}
/**
* @test
* @depends totalNumberOfRecordsFromOAIShouldBeNine
......
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