0f4d90c4bce7f1f5eadd53379eb29a9802458d0e galt Wed Apr 17 13:48:45 2019 -0700 oops these changes go with it. diff --git src/hg/cirm/cdw/lib/cdwLib.c src/hg/cirm/cdw/lib/cdwLib.c index cedcb59..d770d07 100644 --- src/hg/cirm/cdw/lib/cdwLib.c +++ src/hg/cirm/cdw/lib/cdwLib.c @@ -2669,30 +2669,49 @@ { dyStringPrintf(loginBits, "../cgi-bin/hgLogin?hgLogin.do.displayLogout=1&returnto=%s&%s", encodedReturn, sidString); dyStringPrintf(loginBits, "\" id=\"logoutLink\">Logout %s", userName); if (loginUseBasicAuth()) wikiFixLogoutLinkWithJs(); } /* Clean up and go home */ freez(&encodedReturn); return loginBits; } #endif +char *cdwHeadTagDependencies(struct cart *cart, boolean makeAbsolute) +/* Return page head dependencies string. This is content that actually appears at the top + * of the page, in the head tag. Optionally make links point to absolute URLs instead of relative. */ +{ +// page header dependencies html is in a stringified .h file +struct dyString *dy = dyStringNew(4*1024); +dyStringPrintf(dy, +#include "cdwHeadTagDependencies.h" + ); + +char *headStr = cloneString(dy->string); +if (!makeAbsolute) + return headStr; + +char *headStr2 = replaceChars(headStr, "../", "/"); +freez(&headStr); +return headStr2; +} + char *cdwPageHeader(struct cart *cart, boolean makeAbsolute) /* Return page header string. This is content that actually appears at the top * of the page, like menu stuff. Optionally make links point to absolute URLs instead of relative. */ { // page header html is in a stringified .h file struct dyString *dy = dyStringNew(4*1024); dyStringPrintf(dy, #include "cdwPageHeader.h" ); char *menubarStr = menuBarAddUiVars(dy->string, "/cgi-bin/cdw", cartSidUrlString(cart)); if (!makeAbsolute) return menubarStr; char *menubarStr2 = replaceChars(menubarStr, "../", "/");