Commit d74d02cc authored by Laurent's avatar Laurent

Merge branch...

Merge branch 'hotline#29825_facette_dynamique_public_repetition_des_occurrences_pbm_identique_a_st_dizier_resolu_par_ghislain' into 'stable'

Hotline#29825 facette dynamique public repetition des occurrences pbm identique a st dizier resolu par ghislain

c'est à cause de patrick

See merge request !1102
parents 2ca6d5b9 c103ed5b
- ticket #29825 : suppression des facettes thesaurus erronnées dans le phase "clean" de l'intégration des notices
\ No newline at end of file
......@@ -64,6 +64,9 @@ class Class_Cosmogramme_Integration_PhaseNotice extends Class_Cosmogramme_Integr
$nb1 = Class_NoticeSuccincte::countBy(['id_bib' => $id_int_bib]);
Class_NoticeSuccincte::deleteBy(['id_bib' => $id_int_bib]);
Class_CodifThesaurus::deleteBy(['code' => null,
'rules' => null]);
$del_msg .= '<span class="vert">' . $nb . ' exemplaires supprimés</span><br>';
$del_msg .= '<span class="vert">' . $nb1 . ' notices succinctes supprimées</span><br><br>';
$this->_log->ecrire($del_msg);
......
......@@ -25,10 +25,24 @@ require_once __DIR__ . '/PhaseNoticeTestCase.php';
class PhaseNoticeImportTest extends PhaseNoticeTestCase {
protected function _prepareFixtures() {
parent::_prepareFixtures();
$this->fixture('Class_CosmoVar',
['id' => 'mode_doublon',
'valeur' => Class_CosmoVar::DOUBLE_SEARCH_ALPHA_KEY]);
$this->fixture('Class_IntBib',
['id' => 1,
'comm_sigb' => Class_IntBib::COM_NANOOK,
'comm_params' => ['url_serveur' => 'http://bib.valensol.net']]);
$this->fixture('Class_CodifThesaurus',
['id' => 1,
'libelle' => 'AGE',
'code' => null,
'rules' => null]);
Class_CodifThesaurus::addFacetForSigb('Public' , '993$a',Class_IntBib::COM_NANOOK);
$this->fixture('Class_Exemplaire',
['id' => 889039, 'id_int_bib' => 2]);
......@@ -76,6 +90,12 @@ class PhaseNoticeImportTest extends PhaseNoticeTestCase {
}
/** @test */
public function onlyPublicFacetShouldBeInDb() {
$this->assertSame([Class_CodifThesaurus::findFirstBy(['libelle_facette' => 'Public'])], Class_CodifThesaurus::findAll());
}
/**
* @test
* @see http://forge.afi-sa.fr/issues/26261
......
Markdown is supported
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