ff3dcac9269104df22c3b06fe44556f71bcae0c3 gperez2 Thu Jun 20 17:30:01 2024 -0700 Switching the Advanced track search page, View chromosomes page, hgConvert, hgCustom, hgGateway, hgLiftOver, hgPcr, hgSession, hgTracks, and hgCustom labels/buttons to sentence case, refs #25787 diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index 84510a3..5b46b39 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -311,38 +311,38 @@ "$(document).ready(function () {\n" " $('#sessionTable').DataTable({\"columnDefs\": [{\"orderable\":false, \"targets\":[0,4,5,6,7,8]}],\n" " \"order\":[2,'desc'],\n" " \"stateSave\":true,\n" " \"stateSaveCallback\": %s,\n" " \"stateLoadCallback\": %s\n" " });\n" "} );\n" "}\n" , jsDataTableStateSave(hgSessionPrefix), jsDataTableStateLoad(hgSessionPrefix, cart)); printf("

My Sessions

\n"); printf("
"); printf("\n"); printf(""); -printf("" - "" - "" - "" - "" - "" - "" - "", +printf("" + "" + "" + "" + "" + "" + "" + "", cartSidUrlString(cart)); printf(""); printf("\n"); if (gotSettings) sqlSafef(query, sizeof(query), "SELECT sessionName, shared, firstUse, useCount, contents, settings from %s " "WHERE userName = '%s' ORDER BY sessionName;", namedSessionTable, encUserName); else sqlSafef(query, sizeof(query), "SELECT sessionName, shared, firstUse, useCount, contents from %s " "WHERE userName = '%s' ORDER BY sessionName;", namedSessionTable, encUserName); sr = sqlGetResult(conn, query); int rowIdx = 0; @@ -456,35 +456,35 @@ printf("
session name (click to load)created onview countassemblyview/edit 
details 
delete this 
session 
share with 
others? 
post in 
public listing?
send to
mail
Session name (click to load)Created onView countAssemblyView/edit 
details 
Delete this 
session 
Share with 
others? 
Post in 
public listing?
Send to
mail
\n"); printf("
\n"); printf("

\n"); sqlFreeResult(&sr); hDisconnectCentral(&conn); return existingSessionNames; } void showOtherUserOptions() /* Print out inputs for loading another user's saved session. */ { printf("\n"); printf("\n" - "\n"); printf("\n"); printf("
" "Use settings from another user's saved session:
   user: \n"); + "
   User: \n"); cgiMakeOnKeypressTextVar(hgsOtherUserName, cartUsualString(cart, hgsOtherUserName, ""), 20, "return noSubmitOnEnter(event);"); -printf("   session name: \n"); +printf("   Session name: \n"); cgiMakeOnKeypressTextVar(hgsOtherUserSessionName, cartUsualString(cart, hgsOtherUserSessionName, ""), 20, jsPressOnEnter(hgsDoOtherUser)); printf("  "); cgiMakeButton(hgsDoOtherUser, "Submit"); printf("
\n"); } void showLoadingOptions(char *userName, boolean savedSessionsSupported) /* Show options for loading settings from another user's session, a file * or URL. */ { printf("

Restore Settings

\n"); @@ -543,77 +543,77 @@ if (isNotEmpty(exceptName)) dyStringAppend(js, " }"); return js; } void showSavingOptions(char *userName, struct slName *existingSessionNames) /* Show options for saving a new named session in our db or to a file. */ { printf("

Save Settings

\n"); printf("\n"); if (isNotEmpty(userName)) { printf("\n" - "\n"); printf("\n"); } printf("\n"); -printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf(""); +printf("Back up custom tracks to archive .tar.gz"); printf("\n"); printf("\n"); printf("
Save current settings as named session:" "
   name:\n"); + "
   Name:\n"); cgiMakeOnKeypressTextVar(hgsNewSessionName, hubConnectSkipHubPrefix(cartUsualString(cart, "db", "mySession")), 20, jsPressOnEnter(hgsDoNewSession)); printf("   "); cgiMakeCheckBox(hgsNewSessionShare, cartUsualBoolean(cart, hgsNewSessionShare, TRUE)); - printf("allow this session to be loaded by others\n"); + printf("Allow this session to be loaded by others\n"); printf(""); printf(" "); if (existingSessionNames) { struct dyString *js = dyPrintCheckExistingSessionJs(existingSessionNames, NULL); cgiMakeOnClickSubmitButton(js->string, hgsDoNewSession, "Submit"); dyStringFree(&js); } else cgiMakeButton(hgsDoNewSession, "submit"); printf("
Save current settings to a local file:
   file:\n"); +printf("
   File:\n"); cgiMakeOnKeypressTextVar(hgsSaveLocalFileName, cartUsualString(cart, hgsSaveLocalFileName, ""), 20, jsPressOnEnter(hgsDoSaveLocal)); printf("   "); -printf("file type returned: "); +printf("File type returned: "); char *compressType = cartUsualString(cart, hgsSaveLocalFileCompress, textOutCompressNone); cgiMakeRadioButton(hgsSaveLocalFileCompress, textOutCompressNone, differentWord(textOutCompressGzip, compressType)); printf(" plain text  "); cgiMakeRadioButton(hgsSaveLocalFileCompress, textOutCompressGzip, sameWord(textOutCompressGzip, compressType)); printf(" gzip compressed (ignored if output file is blank)"); printf(""); printf(" "); cgiMakeButton(hgsDoSaveLocal, "Submit"); printf("
(leave file blank to get output in " "browser window)
Save Custom Tracks:
   "); -printf("back up custom tracks to archive .tar.gz"); printf(" "); cgiMakeButton(hgsShowDownloadPrefix, "Submit"); printf("
\n"); } void showSessionControls(char *userName, boolean savedSessionsSupported, boolean webStarted) /* If userName is non-null, show sessions that belong to user and allow * saving of named sessions. * If savedSessionsSupported, allow import of named sessions. * Allow export/import of settings from file/URL. */ @@ -1137,32 +1137,32 @@ " d.checked = false; }" dyStringPrintf(dyMessage, "%s

\n" "

\n" "" "" "Session Name: " "\n", sessionName, hgSessionName(), cartSessionVarName(cart), cartSessionId(cart), hgsOldSessionName, sessionName, hgsNewSessionName, hgsNewSessionName, 32, sessionName); jsOnEventById("change" , hgsNewSessionName, highlightAccChanges); jsOnEventById("keydown", hgsNewSessionName, highlightAccChanges); dyStringPrintf(dyMessage, - "  " - "   " + "  " + "   " "
\n", hgsDoSessionChange, hgsDoSessionChange, hgsCancel); struct slName *existingSessionNames = getUserSessionNames(encUserName); struct dyString *checkExistingNameJs = dyPrintCheckExistingSessionJs( existingSessionNames, sessionName); struct dyString *onClickJs = dyStringCreate( "var pattern = /^\\s*$/;" "if (document.getElementById(\"detailsGalleryCheckbox\").checked &&" " pattern.test(document.getElementById(\"%s\").value)) {" " warn('Please add a description to allow this session to be included in the Public Gallery');" " event.preventDefault();" "} else {" " %s" "}", hgsNewSessionDescription, checkExistingNameJs->string); jsOnEventById("click", hgsDoSessionChange, onClickJs->string);