-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use more appropriate page titles for info subpages
fix #134
- Loading branch information
1 parent
19dcf75
commit 142e7de
Showing
2 changed files
with
97 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
const pageTitles = { | ||
// pages from navbar | ||
art: "dictyArt", | ||
citation: "Citing dictyBase and the Dictyostelium Genome Project", | ||
codon: "Codon Bias Table", | ||
conference: "Annual International Dictyostelium Conference", | ||
gallery: "Dictyostelium Multimedia", | ||
history: "History", | ||
jobs: "Job Opportunities", | ||
labs: "Dicty Labs on the Web", | ||
learn: "Learn About Dictyostelium", | ||
links: "Useful Links", | ||
listserv: "dicty ListServ", | ||
nomenclature: "Nomenclature Guidelines", | ||
ontology: "Dictyostelium Anatomy Ontology", | ||
phenotype: "Phenotypes for Dictyostelium mutants", | ||
teach: "Teaching Tools Using Dictyostelium discoideum", | ||
techniques: "Dictyostelium Techniques", | ||
// techniques subpages | ||
media: "dictyBase Media and Buffers", | ||
"fm-medium": "Recipe for FM Defined Medium", | ||
"low-flo-medium": "Low Fluorescence Axenic Medium", | ||
growth: "Protocols for growing Dictyostelium discoideum", | ||
development: "Protocols for Dictyostelium discoideum development", | ||
"dicty-storage": | ||
"Protocols for long-term storage of Dictyostelium discoideum", | ||
"soft-agar": "Plating Dictyostelium in soft agar", | ||
"parasexual-genetics": "Parasexual Genetics in Dictyostelium", | ||
"mating-types": | ||
"Method for determining mating types of Dictyostelium discoideum", | ||
"quick-genomic-dna-extraction": | ||
"Quick preparation of genomic DNA for PCR analysis", | ||
"genomic-dna-extraction": "Extraction of genomic DNA", | ||
"genomic-dna-extraction-csci": "Extraction of genomic DNA (CsCI)", | ||
"rt-pcr": "DRT-PCR for Knockout Screening and Expression Analysis", | ||
"transformation-protocols": | ||
"Transformation of Dictyostelium discoideum with plasmid DNA", | ||
"calcium-phosphate-precipitation": | ||
"Transformation of Dictyostelium by calcium phosphate precipitation", | ||
electroporation: "Transformation of Dicty by electroporation", | ||
"transformation-nc4": | ||
"Transformation of NC4 or D. mucoroides with vectors containing the V18-Tn5 cassette", | ||
"microinjection:": "", | ||
"transformation-by-particle-gun": "", | ||
"addition-of-heat-killed-bacteria": "", | ||
"transformant-selection-bacterial-lawns": "", | ||
"dapi-electroporation": "Electroporation of DAPI into Dictyostelium", | ||
"remi-mutagenesis": | ||
"REMI- Restriction-enzyme-mediated insertional mutagenesis", | ||
"rnai-procedure": "", | ||
"double-mutants": "", | ||
"chromatin-immuno-precipitation": "", | ||
"whole-mount-in-situ-hybridization": "", | ||
"agar-overlay": "", | ||
"indirect-immunofluoresence": "", | ||
"fixation-techniques": "", | ||
"visualizing-weak-fluoresence": "", | ||
"s-methionine-labelling": "", | ||
"phosphate-labelling": "", | ||
"cytoskeleton-isolation": "Cytoskeleton isolation", | ||
"centrosomes-isolation": "Isolation of Dictyostelium centrosomes", | ||
"preparation-of-microtubule-associated-motor-proteins": "", | ||
"purification-of-muscle-action": "", | ||
"one-day-myosin-prep": "", | ||
"three-day-myosin-prep": "", | ||
"cell-staining": "", | ||
"microtubule-gliding-assay": "", | ||
"atpase-assay-dynein": "", | ||
"ctpase-assay-dynein": "", | ||
"in-vitro-motility-assay": "", | ||
"atpase-assay-myosin": "", | ||
"estimation-active-myosin-heads": "", | ||
"myosin-f-actin-binding": "", | ||
"anti-y-tubulin-westerns": "", | ||
} | ||
|
||
/** | ||
* pageTitleLookup gets a page name from the content API | ||
* and attempts to convert it to a more useful page title. | ||
* This is helpful for SEO purposes. | ||
*/ | ||
|
||
const pageTitleLookup = title => { | ||
let name | ||
|
||
if (title in pageTitles) { | ||
name = pageTitles[title] | ||
} else { | ||
name = "Information Page" | ||
} | ||
return name | ||
} | ||
|
||
export { pageTitles, pageTitleLookup } |