f285d42c334bb51044bf2f4c02550f836c4270c2
chinhli
Mon Aug 15 08:42:18 2011 -0700
hgGene, hgc, section.ra change for phase 2 of geneReviews track
diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c
index 5d62b87..2c0e9f6 100644
--- src/hg/hgGene/hgGene.c
+++ src/hg/hgGene/hgGene.c
@@ -334,31 +334,31 @@
const struct section *a = *((struct section **)va);
const struct section *b = *((struct section **)vb);
float dif = a->priority - b->priority;
if (dif < 0)
return -1;
else if (dif > 0)
return 1;
else
return 0;
}
static void addGoodSection(struct section *section,
struct sqlConnection *conn, struct section **pList)
/* Add section to list if it is non-null and exists returns ok. */
{
-//printf("
adding %s section \n", section->name);fflush(stdout);
+printf("
adding %s section \n", section->name);fflush(stdout); /* here here */
if (section != NULL && hashLookup(section->settings, "hide") == NULL
&& section->exists(section, conn, curGeneId))
slAddHead(pList, section);
}
struct section *loadSectionList(struct sqlConnection *conn)
/* Load up section list - first load up sections.ra, and then
* call each section loader. */
{
struct hash *sectionRa = NULL;
struct section *sectionList = NULL;
readRa("section.ra", §ionRa);
addGoodSection(linksSection(conn, sectionRa), conn, §ionList);
/* disable ortherOrg section for CGB servers for the time being */
@@ -388,30 +388,32 @@
// addGoodSection(multipleAlignmentsSection(conn, sectionRa), conn, §ionList);
addGoodSection(swissProtCommentsSection(conn, sectionRa), conn, §ionList);
addGoodSection(flyBaseRolesSection(conn, sectionRa), conn, §ionList);
addGoodSection(flyBasePhenotypesSection(conn, sectionRa), conn, §ionList);
addGoodSection(flyBaseSynonymsSection(conn, sectionRa), conn, §ionList);
addGoodSection(bdgpExprInSituSection(conn, sectionRa), conn, §ionList);
addGoodSection(goSection(conn, sectionRa), conn, §ionList);
addGoodSection(infoSection(conn, sectionRa), conn, §ionList);
addGoodSection(methodSection(conn, sectionRa), conn, §ionList);
addGoodSection(localizationSection(conn, sectionRa), conn, §ionList);
addGoodSection(transRegCodeMotifSection(conn, sectionRa), conn, §ionList);
addGoodSection(pathwaysSection(conn, sectionRa), conn, §ionList);
addGoodSection(mrnaDescriptionsSection(conn, sectionRa), conn, §ionList);
//addGoodSection(pseudoGeneSection(conn, sectionRa), conn, §ionList);
addGoodSection(synonymSection(conn, sectionRa), conn, §ionList);
+addGoodSection(geneReviewsSection(conn, sectionRa), conn, §ionList);
+
// addGoodSection(xyzSection(conn, sectionRa), conn, §ionList);
slSort(§ionList, sectionCmpPriority);
return sectionList;
}
void printIndex(struct section *sectionList)
/* Print index to section. */
{
int maxPerRow = 6, itemPos = 0;
int rowIx = 0;
struct section *section;
hPrintf("
\n");