aboutsummaryrefslogtreecommitdiff
path: root/classes/BiblioIsisDb.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-06-14 15:15:32 -0300
committerSilvio <silvio@devlet.com.br>2010-06-14 15:15:32 -0300
commit6e905e2cb1034cca7f72575d4e7730076986b8b1 (patch)
tree77a91435def1197e70dd59962af06a7ef9fc2071 /classes/BiblioIsisDb.php
parent308f614c793f2db3da531074c60546c0bc42f8fe (diff)
downloadcinisis-6e905e2cb1034cca7f72575d4e7730076986b8b1.tar.gz
cinisis-6e905e2cb1034cca7f72575d4e7730076986b8b1.tar.bz2
Uniformizing BiblioIsis output
Diffstat (limited to 'classes/BiblioIsisDb.php')
-rw-r--r--classes/BiblioIsisDb.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php
index 36648aa..75d9b92 100644
--- a/classes/BiblioIsisDb.php
+++ b/classes/BiblioIsisDb.php
@@ -256,8 +256,13 @@ class BiblioIsisDb implements IsisDb {
$method = 'subfields_from_'. $method;
return $this->{$method}($name, $key);
}
+ else {
+ foreach ($name as $value) {
+ $data[] = array('field' => $value);
+ }
+ }
- return $name;
+ return $data;
}
/**
@@ -332,7 +337,7 @@ class BiblioIsisDb implements IsisDb {
* Deals with repetition.
*
* As Biblio::Isis always return field values as arrays, we
- * have to check the database schema to see if we have to
+ * have to check the database schema to see if we want to
* convert then to a single value.
*
* @param $field
@@ -357,8 +362,9 @@ class BiblioIsisDb implements IsisDb {
* Deals with repetition.
*
* As Biblio::Isis always return field values as arrays, we
- * have to check the database schema to see if we have to
- * convert then to a single value.
+ * have to check the database schema to see if we want to
+ * convert then to a single value. The current implementation
+ * is just a placeholder as no conversion is done.
*
* @param $field
* Database field.
@@ -370,12 +376,7 @@ class BiblioIsisDb implements IsisDb {
* The value according to the repetition config.
*/
function repetition($key, $value) {
- if ($this->is_repetitive($key, $value)) {
- return $value;
- }
- else {
- return $value[0];
- }
+ return $value;
}
/**