4a030195664cbdd1d3c1a4b81b1ed41dbf6d9bc5 angie Fri Feb 15 14:02:58 2019 -0800 Prevent hgFind lib (specifically genomePos -> hgPositionsHtml) from opening a web page; instead, pass up results and warning messages to the calling CGI so it can open the page its own way. refs #22945 hgTracks, hgTables and hgVai used to call findGenomePos{,Web} to resolve positions; hgTables and hgVai had to detect after the fact whether an HTML page had been started (with warnings and/or multiple results). In fact, hgPositionsHtml called webEnd which could cause conflicts with what the CGI was doing afterwards. Now, instead of findGenomePos{,Web} there is hgFindSearch which returns hgp and also warning messages, if any, via a dyString parameter. The calling CGI decides how to open the page if necessary (for hgTracks, it's already open) and displays warnings/multiple results -- or just proceeds as usual with the single position result. diff --git src/hg/hgVai/libifyMe.h src/hg/hgVai/libifyMe.h index 32a1e65..08971df 100644 --- src/hg/hgVai/libifyMe.h +++ src/hg/hgVai/libifyMe.h @@ -1,23 +1,12 @@ /* Stuff lifted from hgTables that should be libified. */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #ifndef LIBIFYME_H #define LIBIFYME_H -#include "annoFormatVep.h" -#include "annoStreamVcf.h" -#include "annoGrator.h" - -boolean lookupPosition(struct cart *cart, char *cartVar); -/* Look up position if it is not already seq:start-end. - * Return FALSE if it has written out HTML showing multiple search results. - * If webGotWarnings() is true after this returns FALSE, no match was found - * and a warning box was displayed, in which case it's good to reset position - * to cart's lastPosition before proceeding. */ - void nbSpaces(int count); /* Print some non-breaking spaces. */ #endif//ndef LIBIFYME_H