d5abc37b7df95525c088c01e435ea79fb203a79e
kent
  Wed Jan 30 13:08:15 2019 -0800
Adding count of unshown things in facets

diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c
index 9b3caf6..2e5a950 100644
--- src/hg/lib/tablesTables.c
+++ src/hg/lib/tablesTables.c
@@ -482,34 +482,33 @@
                         );
 		    htmlPrintf("%s (%d)</a>", val->val, val->selectCount);
 		    printf("</dd>\n");
 		    }
 		}
 
 	    // show "See More" link when facet has lots of values
 	    if (!(field->showAllValues || valuesShown < FacetFieldLimit))
 		{
 		char *op = "showAllValues";
 		htmlPrintf("<dd><a href='../cgi-bin/cdwWebBrowse?%s=%s|url|&cdwCommand=browseFiles"
 			"&browseFiles_facet_op=%s|url|"
 			"&browseFiles_facet_fieldName=%s|url|"
 			"&browseFiles_facet_fieldVal=%s|url|"
 			"&cdwBrowseFiles_page=1' "
-			">%s</a></dd>\n",
+			">See %d More</a></dd>\n",
 		    cartSessionVarName(), cartSessionId(cart),
-		    op, field->fieldName, "",
-		    "See More"
+		    op, field->fieldName, "", slCount(field->valList) - FacetFieldLimit 
 		    );
 		}
 
 	    // show "See Fewer" link when facet has lots of values
 	    if (field->showAllValues && valuesShown >= FacetFieldLimit)
 		{
 		char *op = "showSomeValues";
 		htmlPrintf("<dd><a href='../cgi-bin/cdwWebBrowse?%s=%s|url|&cdwCommand=browseFiles"
 			"&browseFiles_facet_op=%s|url|"
 			"&browseFiles_facet_fieldName=%s|url|"
 			"&browseFiles_facet_fieldVal=%s|url|"
 			"&cdwBrowseFiles_page=1' "
 			">%s</a></dd>\n",
 		    cartSessionVarName(), cartSessionId(cart),
 		    op, field->fieldName, "",