--- a/documents/index.php +++ b/documents/index.php @@ -10,8 +10,8 @@ $agenciesdb = $server->get_db('disclosr-agencies'); $idtoname = Array(); -foreach ($agenciesdb->get_view("app", "byName")->rows as $row) { - $idtoname[$row->value] = trim($row->key); +foreach ($agenciesdb->get_view("app", "byCanonicalName")->rows as $row) { + $idtoname[$row->id] = trim($row->value->name); } $foidocsdb = $server->get_db('disclosr-foidocuments'); try { @@ -20,13 +20,7 @@ if ($rows) { foreach ($rows as $row) { - //print_r($row); displayLogEntry($row,$idtoname); - /* 1/1/11 title (Dept dfggdfgdf) - description: - source link: - documents: - #1 title link */ } } } catch (SetteeRestClientException $e) { @@ -34,3 +28,4 @@ } include_footer_documents(); ?> +