44027478d0f745cc34c843717bee4a6a397b6022
max
  Mon Aug 10 09:05:32 2026 -0700
hgc: route transMap, retrogene and literature alignments to the modern view too, refs #37893

These three click pages live in their own files (transMapClick.c, retroClick.c,
pubs.c) and called htmlFramesetStart directly, so they were missed when the other
alignment handlers moved to the modern single-page view. They all render through
showSomeAlignment, so exporting alnModernStart (was static) and swapping their
htmlFramesetStart call for it is enough: with modernAlignPage set they now show
the modern page (neutral, non-BLAT chrome), and the classic frameset otherwise.

diff --git src/hg/hgc/hgc.h src/hg/hgc/hgc.h
index 3c5d6274f3b..abda4b2f4a1 100644
--- src/hg/hgc/hgc.h
+++ src/hg/hgc/hgc.h
@@ -93,30 +93,34 @@
  * right window positions different from the current window*/
 
 void hgcAnchor(char *group, char *item, char *other);
 /* Generate an anchor that calls click processing program with item
  * and other parameters. */
 
 struct trackDb *tdbForTableArg();
 /* get trackDb for track passed in table arg */
 
 void writeFramesetType();
 /* Write document type that shows a frame set, rather than regular HTML. */
 
 void htmlFramesetStart(char *title);
 /* Write DOCTYPE HTML and HEAD sections for framesets. */
 
+void alnModernStart(char *classicTitle);
+/* Begin an alignment page: modern single-page chrome when the modernAlignPage hg.conf flag is set
+ * (showSomeAlignment then renders the modern body), else the classic <frameset>. */
+
 struct psl *getAlignments(struct sqlConnection *conn, char *table, char *acc);
 /* get the list of alignments for the specified acc */
 
 void printAlignmentsSimple(struct psl *pslList, int startFirst, char *hgcCommand,
                            char *typeName, char *itemIn);
 /* Print list of mRNA alignments, don't add extra textual link when
  * doesn't honor hgcCommand. */
 
 void printAlignments(struct psl *pslList,
 		     int startFirst, char *hgcCommand, char *typeName, char *itemIn);
 /* Print list of mRNA alignments. */
 
 void printAlignmentsExtra(struct psl *pslList,
 		     int startFirst, char *hgcCommand, char *hgcCommandInWindow, char *typeName, char *itemIn);
 /* Print list of mRNA alignments with special "in window" alignment function. */