text mode
text mode

--- a/displayConsultancies.php
+++ b/displayConsultancies.php
@@ -11,7 +11,7 @@
 
 include_header("Consultancies");
 $query = '
-SELECT SUM(value) as value, count(*), min("supplierName"), unnest(string_to_array("consultancyReason",\';\')) reason
+SELECT SUM(value) as value, count(*), text_mode("supplierName"), unnest(string_to_array("consultancyReason",\';\')) reason
 FROM contractnotice where ' .$yearQ . ' "consultancy" = \'Yes\' and "childCN" is null
 GROUP BY "supplierABN",reason order by value desc
  ';

--- a/displayContract.php
+++ b/displayContract.php
@@ -39,8 +39,6 @@
                 break;
             case "CNID":
                 echo '<span property="pc:referenceNumber" lang="">'.$value.'</span>';
-                break;
-            case "categoryUNSPSC":
                 break;
             case "category":
                 echo '<span rel="pc:mainObject" resource="[unspsc:'.$contractResult["categoryUNSPSC"].']">'.$value.'</span>';

--- a/displaySON.gexf.php
+++ b/displaySON.gexf.php
@@ -51,7 +51,7 @@
         <nodes>' . PHP_EOL;
 
 $query = '
-SELECT "supplierABN", min("supplierName") AS "supplierName", contractnotice."SONID", count(*), sum(value) AS value 
+SELECT "supplierABN", text_mode("supplierName") AS "supplierName", contractnotice."SONID", count(*), sum(value) AS value 
 FROM contractnotice 
 WHERE "childCN" IS NULL 
 AND extract(year from "publishDate") = \'2016\'