Skip to content
Snippets Groups Projects
Commit 9412233a authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #66052 : do not add empty subtitle on pseudo records indexation

parent 96e03eda
Branches
Tags
3 merge requests!2382Hotline master,!2381Stable,!2374hotline #66052 : do not add empty subtitle on pseudo records indexation
Pipeline #2750 passed with stage
in 20 minutes and 57 seconds
- ticket #66052 : Indexation ressource numérique : Correction de l'ajout systématique d'un sous-titre vide à l'indexation
\ No newline at end of file
......@@ -64,7 +64,8 @@ class Class_Indexation_PseudoNotice_UnimarcVisitor extends Class_Indexation_Pseu
public function visitSubTitle($subtitle) {
$this->unimarc->add_field('200', '1 ', 'e' . $subtitle);
if ($subtitle)
$this->unimarc->add_field('200', '1 ', 'e' . $subtitle);
return $this;
}
......
......@@ -50,6 +50,12 @@ class Class_Indexation_PseudoNoticeAlbumTest extends Class_Indexation_PseudoNoti
}
/** @test */
public function shouldNotHaveUnimarcSubtitle() {
$this->assertEmpty($this->_notice->get_subfield('200', 'e'));
}
/** @test */
public function facetsShouldContainAuthor() {
$this->assertContains('A234', $this->_notice->getFacettes());
......
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