Skip to content
Snippets Groups Projects
Commit 16d11217 authored by Patrick Barroca's avatar Patrick Barroca
Browse files

rel #35088 : move descriptino from notes to summary

parent f41d9790
Branches
Tags
3 merge requests!1659Master,!1622Dev#35088 oai import in cosmogramme,!1619Dev#35088 oai import in cosmogramme
......@@ -52,7 +52,7 @@ class Class_Cosmogramme_Integration_Record_DublinCore extends notice_unimarc {
$unimarc_visitor
->visitIdNotice($this->_datas['id_oai'])
->visitTitle($this->_datas['titre'])
->visitDescriptions($this->_datas['description'])
->visitResume(implode(' ', $this->_datas['description']))
->visitDescriptions($this->_datas['format'])
->visitDescriptions($this->_datas['rights'])
->visitDescriptions($this->_datas['relation'])
......
......@@ -93,6 +93,12 @@ class Class_Indexation_PseudoNotice_UnimarcVisitor extends Class_Indexation_Pseu
}
public function visitResume($resume) {
$this->unimarc->add_field('330', ' ', 'a' . $resume);
return $this;
}
public function visitDescriptions($descriptions) {
foreach($descriptions as $description)
$this->visitDescription($description);
......
......@@ -124,8 +124,8 @@ class PhaseNoticeDublinCoreTest extends AbstractPhaseNoticeDublinCoreTestCase {
* @test
* @depends totalNumberOfRecordsFromOAIShouldBeNine
*/
public function firstRecordShouldHave3Notes() {
$this->assertCount(6, Class_Notice::find(1)->getNotes());
public function firstRecordShouldHave5Notes() {
$this->assertCount(5, Class_Notice::find(1)->getNotes());
}
......@@ -180,8 +180,8 @@ class PhaseNoticeDublinCoreTest extends AbstractPhaseNoticeDublinCoreTestCase {
* @test
* @depends totalNumberOfRecordsFromOAIShouldBeNine
*/
public function firstRecordDescriptionShoudContainsEchellesDiverses() {
$this->assertContains('[Échelles diverses]', Class_Notice::find(1)->getNotes()[0]);
public function firstRecordResumeShoudContainsEchellesDiverses() {
$this->assertContains('[Échelles diverses]', Class_Notice::find(1)->getResume());
}
......
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