Live DB: eccoprod
Dev DB: eccodev
Data table | CGI | column: distinct values |
---|---|---|
acronyms | acronyms.cgi | |
contentLocs | search.cgi | contentType: table, file |
datasets | datasets.cgi | |
dataset_keyword | datasets.cgi | maps datasets.id to keywords.id |
documents | documents-more.cgi, meetings-documents.cgi | |
employment | employment.cgi | just one record in table |
faqs | faqs.cgi | |
faq_categories | faqs.cgi | |
featured | publications-featured.cgi publications-featured-more.cgi test/check_featured.cgi (Error 500) |
type: image, movie, storymap category: NULL, Air-Sea/Climate, Biology/Carbon, Circulation, Other, Polar |
geodeticVariables | geodetic-variables.cgi | |
geo_categories | geodetic-variables.cgi | |
keywords | datasets.cgi | |
media | home.cgi media.cgi media_more.cgi publications-featured.cgi publications-featured-more.cgi storymaps.cgi e-brochures.cgi |
type: image, e-brochure, movie, storymap category: {no values in db} gallery: Y, {no value} |
meetingDocs | meetings.cgi meeting-documents.cgi |
type: presentation, abstract category: osm2020, agu2019, ecco2018, agu2018, osm2018, ecco2017 |
meetings | meetings.cgi meeting-documents.cgi |
category: agu2018, agu2019, ecco2017, ecco2018, ecco2023, ecco2024, osm2018, osm2020, osm2024 |
people | publications-featured.cgi | linkLoc: institution, name |
people_storymaps | publications-featured.cgi | `people_storymaps`.`peopleId` = `people`.`peopleId` |
publications | publications.cgi | type: Journal Article, Generic, Magazine Article, Book Section, Report, Conference Proceedings, Thesis, Book |
school | summer-school.cgi | type: document, movie category: ss2019 |
shows | not used directly anywhere but shows.showId <==> slidesRotator.showId | |
slidesRotators | home.cgi analysis-tool.cgi data-analysis-tool.cgi |
distinct `showId` = {0, 1, 2} -- showId = 0; not found in cgi, use this to disable display? -- showId = 1; analysis-tool.cgi, data-analysis-tool.cgi -- showId = 2; home.cgi |
slidesSliders (obsolete) |
-- `orderSort` is set to 0 for all records -- `orderDate` is used when ordering the output -- `showId` = 3 for all records |
|
updates | updates.cgi updates-more.cgi |
category: {no values} type: new, event |
users | ||
whatsNew | home.cgi | type: globe, job, featured, event, news, events, default visible: N, Y |
The "static pages" still need to connect to the DB in order to fetch the "Last Updated" date for the footer on all pages.
CGI | SQL | |
---|---|---|
about.cgi | static page | |
acronyms.cgi | SELECT * FROM acronyms ORDER BY name; | |
adjoint-overview.cgi | static page | |
adjoint.cgi | static page | |
analysis-tool.cgi | SELECT * FROM slidesRotators WHERE showId='1' ORDER BY slideOrder | |
analysis-tools.cgi | static page - has hardcoded details from media.mediaId=69 | |
contact.cgi | static page | |
data-analysis-tool.cgi | SELECT * FROM slidesRotators WHERE showId='1' ORDER BY slideOrder | |
data.cgi | static page | |
datasets.cgi |
SELECT keyword FROM keywords WHERE dict=?; SELECT keyword FROM keywords WHERE dict=? ORDER BY sortOrder; SELECT * FROM datasets ORDER BY sortOrder SELECT keyword FROM keywords k, dataset_keyword dk WHERE dk.d_id=? AND dk.k_id=k.id AND k.dict IN ('grid','time','topic'); |
|
documents-more.cgi | FILE exists only on DEV site | |
e-brochures.cgi?id=$id | SELECT * FROM media WHERE mediaId='$id'; | |
e-brochure-ecco.cgi | static page | |
ecco2024recordings.cgi | static page | |
employment.cgi | SELECT * FROM employment WHERE dateEnd >= $currentDate ORDER BY 'dateAdded DESC'; {this SQL is broken} | |
faqs-more.cgi | SELECT * FROM faqs WHERE faqsId='$id' | |
faqs.cgi |
|
|
geodetic-variables.cgi |
|
|
home.cgi | Rotator | SELECT * FROM slidesRotators WHERE showId='2' ORDER BY slideOrder |
What's New | SELECT * FROM whatsNew WHERE visible = 'Y' ORDER BY sortOrder ASC LIMIT 5 | |
Featured Publications | SELECT title,shortDesc,imageThumb,imageAltTag,url,urlSource,type,archive,dateAdded,featuredid FROM `featured` WHERE `type` = 'storymap' AND `archive` != 'Y' ORDER BY dateAdded DESC LIMIT 6 | |
Latest in Gallery | SELECT * FROM media WHERE gallery = 'Y' ORDER BY date DESC LIMIT 1 | |
media-more.cgi | SELECT * FROM media WHERE mediaId='$id' | |
media.cgi | Count All Rows | SELECT * FROM media WHERE gallery = 'Y'; |
Default Order | SELECT * FROM media WHERE gallery = 'Y' ORDER BY date DESC; | |
User-selected Order (type, title, date) |
SELECT * FROM media WHERE gallery = 'Y' ORDER BY $orderBy DESC; | |
meetings.cgi |
|
|
meetings-documents-more.cgi |
|
|
meetings-documents.cgi |
|
|
ohc.cgi | static page | |
products-ECCO-V4r4.cgi | static page | |
products.cgi | static page | |
publications-featured-more.cgi |
|
|
publications-featured.cgi | Latest Featured Pubs |
SELECT p.fullName, p.institution, p.url, p.linkLoc, p.imageThumb,
ps.mediaId AS 'storymapId', f.featuredId, f.title AS 'title', f.citation AS 'citation', f.url AS storymapUrl, f.urlSource AS urlSource, f.category AS category FROM `people` AS p , `people_storymaps` AS ps, `featured` AS f WHERE p.peopleId = ps.peopleId AND ps.featuredId != 0 AND ps.featuredId = f.featuredId ORDER BY f.dateAdded DESC LIMIT 2 |
Random Featured Pub, not already displayed |
SELECT p.fullName, p.institution, p.url, p.linkLoc, p.imageThumb,
ps.mediaId AS 'storymapId', f.featuredId, f.title AS 'title', f.citation AS 'citation', f.url AS storymapUrl, f.urlSource AS urlSource, f.category AS category FROM `people` AS p , `people_storymaps` AS ps, `featured` AS f WHERE p.peopleId = ps.peopleId AND ps.featuredId != 0 AND ps.featuredId = f.featuredId AND f.featuredId NOT IN ($id_list) ORDER BY rand() DESC LIMIT 2 |
|
All Featured Pubs
filter by topic (category) |
SELECT p.fullName, p.institution, p.url, p.linkLoc, p.imageThumb, ps.mediaId AS 'storymapId',
f.featuredId, f.title AS 'title', f.citation AS 'citation', f.url AS storymapUrl, f.mediaFile AS mediaFile, f.urlSource AS urlSource, f.category AS category, f.imageThumb AS imageThumb, f.imageAltTag AS imageAltTag, f.shortCitation AS 'shortCitation' FROM `people` AS p , `people_storymaps` AS ps, `featured` AS f WHERE p.peopleId = ps.peopleId AND ps.featuredId != 0 AND ps.featuredId = f.featuredId ORDER BY f.dateAdded DESC |
|
All archived and not storymaps | SELECT * FROM featured WHERE archive = 'Y' AND `type` != 'storymap' ORDER BY dateAdded DESC | |
publications.cgi |
|
|
science-support.cgi | static page | |
search.cgi |
|
|
ssh-linear-trend.cgi | static page | |
state-estimation.cgi | static page | |
storymaps.cgi |
|
|
summer-school.cgi |
|
|
support.cgi | static page | |
teams.cgi | static page | |
timeline.cgi | static page | |
updates-more.cgi |
|
|
updates.cgi |
|
|
user-guide-v4r3.cgi | static page | |
user-guide-v4r4.cgi | static page | |
what-moves-ecco.cgi | static page | |
why_trust_ecco.cgi | static page | |
world-of-ecco.cgi | static page |