3a3d2f00ba0408f55f02a8ef265dd4fc153a163b lrnassar Fri Sep 4 15:06:35 2026 -0700 New BLAT results banner: same welcome wording as the search form's banner. refs #37996 diff --git src/hg/js/hgBlat.js src/hg/js/hgBlat.js index 82db4a044e2..e636243b878 100644 --- src/hg/js/hgBlat.js +++ src/hg/js/hgBlat.js @@ -481,39 +481,40 @@ // Pin a stable, shareable URL into the address bar (no server redirect) so refresh, bookmark and // "Share a link" all use the trash-backed reopen link instead of the transient POST/search URL. if (cfg.shareUrl) { try { history.replaceState(null, '', cfg.shareUrl); } catch (e) { /* older browsers: ignore */ } } var back = cfg.backUrl ? `<a class="gbPill" title="Return to the Genome Browser at your previous location (${htmlEncode(cfg.backPos)})" ` + `href="${htmlEncode(cfg.backUrl)}">Back to Genome Browser</a>` : ''; // The page actions live in the gold main-header bar (framework #sectTtl), next to the title - // so there is no separate toolbar (.blatHead is gone). Injected into #sectTtl below. var headActions = `${back}<a class="gbPill" title="Start a new BLAT search" href="${htmlEncode(cfg.newSearchUrl)}">New BLAT search</a>`; - // Top banner: note this is the new page, link back to the classic page (fresh searches only, - // where the trash files still exist), and invite feedback. The old page also clears the - // blatNewPage preference so later searches use the classic page until the user opts back in. + // Top banner: identical wording to the search form's banner. The original-page link shows + // only for fresh searches (where the trash files still exist); it clears the blatNewPage + // preference so later searches use the classic page until the user opts back in. var origPage = cfg.canOldPage ? - ` You can go back to <a title="Show these results on the classic BLAT results page" ` + - `href="hgBlat?blatNewPage=0&blatReopen=1&hgsid=${encodeURIComponent(cfg.hgsid)}">the original page</a> anytime.` : ''; + ` You can go back to the <a title="Show these results on the classic BLAT results page" ` + + `href="hgBlat?blatNewPage=0&blatReopen=1&hgsid=${encodeURIComponent(cfg.hgsid)}">original page</a> anytime.` : ''; var bannerHtml = - `<div class="gbBanner">We are testing a new BLAT output page.${origPage} ` + - `If you have feedback on this new page, do not hesitate to let us know via ` + + `<div class="gbBanner">Welcome to our ` + + `<a href="../goldenPath/newsarch.html#newBLAT">new BLAT page</a>.${origPage} ` + + `Please send any feedback to ` + `<a href="mailto:genome@soe.ucsc.edu">genome@soe.ucsc.edu</a>.</div>`; var queryCount = new Set(hits.map(h => h.qName)).size; var th = []; th.push('<th>#</th>'); if (cfg.multiQuery) { th.push('<th>Query</th>'); } th.push('<th>Open in Genome Browser</th>'); th.push('<th>Show</th>'); th.push('<th>Query coverage</th>'); if (cfg.hasLocus) { th.push('<th>Locus</th>'); } th.push('<th>Score</th>'); th.push('<th>Identity</th>'); th.push('<th>Strand</th>'); th.push('<th>Span</th>');