add positions like ministers
Former-commit-id: 530348e74a431e061f4c15a5ee6d6b37db3efed5
--- a/alaveteli/exportAgencies.csv.php
+++ b/alaveteli/exportAgencies.csv.php
@@ -95,6 +95,13 @@
fputcsv($fp, array_values($row));
}
}
+ if (isset($agency->value->positions)) {
+ foreach ($agency->value->positions as $position) {
+ $row['name'] = iconv("UTF-8", "ASCII//TRANSLIT",$position);
+ $row["short_name"] = shortName($position);
+ fputcsv($fp, array_values($row));
+ }
+ }
}
}
} catch (SetteeRestClientException $e) {