From 07224194261e0561b0b5c511902acda8bc36fa55 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 25 Jun 2010 14:55:13 -0300 Subject: Fixin BiblioIsis::is_repetitive() duplicate conformance checking --- classes/BiblioIsisDb.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'classes/BiblioIsisDb.php') diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php index f2d97be..166767d 100644 --- a/classes/BiblioIsisDb.php +++ b/classes/BiblioIsisDb.php @@ -215,9 +215,6 @@ class BiblioIsisDb implements IsisDb { * * @param $value * Dataset. - * - * @todo - * Check is_array condition. */ function subfields_switch($key, &$value) { if (!is_array($value)) { @@ -347,14 +344,11 @@ class BiblioIsisDb implements IsisDb { * * @return * True if repetitive, false otherwise. - * - * @todo - * Check log message as BiblioIsis always output arrays. */ function is_repetitive($field, $value) { if (isset($this->format['fields'][$field]['repeat']) && $this->format['fields'][$field]['repeat'] == FALSE) { - if (!is_array($value)) { + if (is_array($value) && count($value) > 1) { $this->logger("$field is configured as non repetitive but data shows a repetition for value $value"); } return FALSE; -- cgit v1.2.3