Skip to content
Snippets Groups Projects
Commit d10b5692 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev#17871 OAI connector - Class_Cosmogramme_Integration_PhaseNotice is

now able to delete items and short records when processinf a full
import.
parent 163fb438
Branches
Tags
2 merge requests!917Dev#17871 oaista la vista,!904Dev#17871 oaista la vista
......@@ -46,7 +46,19 @@ class Class_Cosmogramme_Integration_PhaseNotice extends Class_Cosmogramme_Integr
}
/** in case of full import, implements what is needed to be done */
protected function _clean($integration) {}
protected function _clean($integration) {
$id_bib = $integration->getIdBib();
$del_msg = '<br><span class="violet">Supression des exemplaires</span><br>';
$nb = Class_Exemplaire::countBy(['id_bib' => $id_bib]);
Class_Exemplaire::deleteBy(['id_bib' => $id_bib]);
$nb1 = Class_NoticeSuccincte::countBy(['id_bib' => $id_bib]);
Class_NoticeSuccincte::deleteBy(['id_bib' => $id_bib]);
$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);
}
/** should return true if $line must not be processed */
protected function _shouldIgnoreLine($line, $integration) {}
......
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