Commits

okfn committed 4f72d50

[wdmmg/wui/coins][s]: split for text search and minor view fixes.

Comments (0)

Files changed (2)

wdmmg/wdmmg/controllers/coins.py

         page=int(request.params.get('page', 1))
         if c.q:
             # textq = '/.*%s.*/i' % c.q
-            for chunk in c.q.split():
-                dbq = self.db.coins.find(
-                        {'search_field': chunk}
-                        )
+            dbq = self.db.coins.find(
+                    {'search_field':{'$all': c.q.split()}}
+                    )
         else:
             dbq = self.db.coins.find()
         c.results = [ x for x in

wdmmg/wdmmg/templates/coins/index.html

       #content { width: 100%;
         border-right: none;
       }
+      #content table {
+        overflow:auto;
+        font-size:60%;
+      }
     </style>
   </py:def>
   
 
     <p>${c.page.item_count} results.</p>
     ${c.page.pager(items_per_page=c.items_per_page)}
-    <table py:with="keylist = ['department_description', 'value', 'programme_object_group_code', 'time', 'data_type']">
+    <table py:with="keylist = ['department_description', 'value', 'programme_object_group_code', 'programme_object_group_description', 'time', 'data_type']">
       <thead>
         <tr>
           <th py:for="key in keylist">