Skip to content
Snippets Groups Projects

Stable

Merged Ghost User requested to merge stable into hotline-master
Compare and
+ 575
140
Preferences
Compare changes
Files
@@ -435,14 +435,13 @@ class notice_integration {
private function chercheNotice() {
$attributes = [];
if(!$this->mode_doublon)
$attributes = [//'isbn10' => $this->notice['isbn10'],
//'isbn13' => $this->notice['isbn13'],
'isbn' => [$this->notice['isbn13'], $this->notice['isbn10']],
'ean' => $this->notice['ean'],
'id_commerciale' => $this->notice['id_commerciale']];
$attributes = [['isbn', $this->notice['isbn13']],
['isbn', $this->notice['isbn10']],
['ean', $this->notice['ean']],
['id_commerciale', $this->notice['id_commerciale']]];
if ($this->mode_doublon == static::SEARCH_MODE_ALPHAKEY)
$attributes = ['clef_alpha' => $this->notice['clef_alpha']];
$attributes = [['clef_alpha', $this->notice['clef_alpha']]];
$this->identification = ['statut' => static::STATUS_NOTFOUND];
@@ -453,7 +452,9 @@ class notice_integration {
return $id_notice;
}
foreach ($attributes as $key => $value) {
foreach ($attributes as $attr) {
list($key, $value) = $attr;
if ($id_notice = $this->searchRecordBy($key, $value)) {
$this->identification['statut'] = $key;
$this->identification[$key] = $id_notice;