diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index f5978196..2dded69f 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -13,7 +13,7 @@
-
We searched {{ dataset.fullname }}
+
Search Results: We searched {{ dataset.fullname }}
to find all records
{% for word in search_terms %}
{% if word.key|lower == "rif" %}
@@ -249,6 +249,7 @@
'columns': [
{
'data': null,
+ 'width': "30px",
'orderDataType': "dom-checkbox",
'orderSequence': [ "desc", "asc"],
'render': function(data, type, row, meta) {
@@ -258,12 +259,14 @@
{
'title': "Index",
'type': "natural",
+ 'width': "30px",
'data': "index"
},
{
'title': "Record",
'type': "natural",
'data': null,
+ 'width': "60px",
'orderDataType': "dom-inner-text",
'render': function(data, type, row, meta) {
return '' + data.name + ''
@@ -277,7 +280,6 @@
{
'title': "Description",
'type': "natural",
- 'width': "300px",
'data': null,
'render': function(data, type, row, meta) {
try {
@@ -290,12 +292,13 @@
{
'title': "Location",
'type': "natural",
- 'width': "140px",
+ 'width': "120px",
'data': "location"
},
{
'title': "Mean",
'type': "natural",
+ 'width': "40px",
'data': "mean",
'orderSequence': [ "desc", "asc"]
},
@@ -308,7 +311,7 @@
{
'title': "Max LRS Location",
'type': "natural",
- 'width': "140px",
+ 'width': "120px",
'data': "lrs_location"
},
{
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index fe858d52..7b585b03 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -560,6 +560,7 @@ def loading_page():
logger.info(request.url)
initial_start_vars = request.form
start_vars_container = {}
+ num_vals = 0 #ZS: So it can be displayed on loading page
if 'wanted_inputs' in initial_start_vars:
wanted = initial_start_vars['wanted_inputs'].split(",")
start_vars = {}
@@ -567,6 +568,15 @@ def loading_page():
if key in wanted or key.startswith(('value:')):
start_vars[key] = value
+ if 'primary_samples' in start_vars:
+ samples = start_vars['primary_samples'].split(",")
+ for sample in samples:
+ value = start_vars.get('value:' + sample)
+ if value != "x":
+ num_vals += 1
+
+ start_vars['num_vals'] = num_vals
+
start_vars_container['start_vars'] = start_vars
else:
start_vars_container['start_vars'] = initial_start_vars
--
cgit v1.2.3