4c4e222e61f00468072b481e7f7139bf5d3fc0f9
max
  Fri Jan 21 01:38:16 2022 -0800
removing the year from a few assemblies on the hgTracks label, refs #28788

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 0742321..bcdd21d 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -8572,32 +8572,44 @@
     return;  // bail out b/c we are done
     }
 
 if (!hideControls)
     {
     /* set white-space to nowrap to prevent buttons from wrapping when screen is
      * narrow */
     hPrintf("<DIV STYLE=\"white-space:nowrap;\">\n");
     printMenuBar();
     //menuBarAppendExtTools();
 
     /* Show title */
     freezeName = hFreezeFromDb(database);
     if(freezeName == NULL)
         freezeName = "Unknown";
-    hPrintf("<span style='font-size:x-large;'><B>");
-    if (startsWith("zoo",database) )
+    hPrintf("<span style='font-size:large;'><B>");
+
+    // for these assemblies, we do not display the year, to save space and reduce clutter
+    // Their names must include a "(" character
+    char* noYearDbs[] = { "hg19", "hg38", "mm39", "mm10" };
+
+    if ( stringArrayIx(database, noYearDbs, ArraySize(noYearDbs)) != -1 )
+        {
+        // freezeName is e.g. "Feb. 2009 (GRCh37/hg19)"
+        char *afterParen = skipBeyondDelimit(freezeName, '(');
+        afterParen--; // move back one char
+        hPrintf("%s %s on %s %s", organization, browserName, organism, afterParen);
+        }
+    else if (startsWith("zoo",database) )
         {
 	hPrintf("%s %s on %s June 2002 Assembly %s target1",
 	    organization, browserName, organism, freezeName);
 	}
     else
 	{
 	if (sameString(organism, "Archaea"))
 	    {
 	    hPrintf("%s %s on Archaeon %s Assembly",
 		organization, browserName, freezeName);
 	    }
 	else
 	    {
 	    if (stringIn(database, freezeName))
 		hPrintf("%s %s on %s %s",