diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-29 10:35:33 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-29 10:35:33 -0300 |
commit | ba1195567b55993eb4f46c683bf0125f21bb80ce (patch) | |
tree | 98d9d9b5007c874d9e0b4b4bd29aaeaa5bb165d4 /classes | |
parent | b1da75d9bcc22f9cfd2678f3362aaed287e29a60 (diff) | |
download | cinisis-ba1195567b55993eb4f46c683bf0125f21bb80ce.tar.gz cinisis-ba1195567b55993eb4f46c683bf0125f21bb80ce.tar.bz2 |
Check for repetitions at subfields_from_fetch() on BiblioIsisDb
Diffstat (limited to 'classes')
-rw-r--r-- | classes/BiblioIsisDb.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php index b4fa52f..3baa529 100644 --- a/classes/BiblioIsisDb.php +++ b/classes/BiblioIsisDb.php @@ -309,6 +309,10 @@ class BiblioIsisDb implements IsisDb { * Data with processed subfields. */ function subfields_from_fetch($name, $key) { + // Check if entry has repetitions. + $this->is_repetitive($key, $name); + + // Iterate over all values. foreach ($name as $entry => $value) { if (substr($value, 0, 1) != '^') { $field = preg_replace('/\^.*/', '', $value); @@ -364,7 +368,7 @@ class BiblioIsisDb implements IsisDb { if (isset($this->format['fields'][$field]['repeat']) && $this->format['fields'][$field]['repeat'] == FALSE) { if (is_array($value) && count($value) > 1) { - $this->logger("$field is configured as non repetitive but data shows a repetition for value". var_dump($value)); + $this->logger("Field $field is configured as non repetitive but data shows a repetition for value."); } return FALSE; } |