Skip to content
Snippets Groups Projects

hotline#100972 : minsoc fix codif_thesaurus error

Compare and
1 file
+ 6
4
Preferences
Compare changes
@@ -121,11 +121,13 @@ class Class_Cosmogramme_Integration_Record_BibliographicDynamicFacets_Authority
if (!$heading = $datas['heading'])
return $children;
if (!$record_id = $datas['record_id'])
return $children[] = $this->_thesaurus->getOrCreateChild(strtoupper($heading), $heading);
$children[] = $child = $this->_thesaurus->getOrCreateChild($datas['record_id'], $heading);
if (!$record_id = $datas['record_id']) {
$children[] = $this->_thesaurus->getOrCreateChild(strtoupper($heading), $heading);
return $children;
}
$child = $this->_thesaurus->getOrCreateChild($datas['record_id'], $heading);
$children[] = $child;
foreach($this->_index_systems as $system)
$system->ensureRecordForThesaurus($heading, $record_id, $this->_thesaurus, $this->_int_bib, $child);