Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
This was from back when we displayed way more data on the home page.
  • Loading branch information
waldoj committed Mar 21, 2016
1 parent e910164 commit 9b14f7d
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions public/grid/js/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,6 @@ function mapInfo(data, tabletop) {
})
if (foundDataset) {
var gridData = {
exists: foundDataset["Exists"],
digitized: foundDataset["Digitized"],
isPublic: foundDataset["Public"], // "public" is reserved in JS
free: foundDataset["Free"],
online: foundDataset["Online"],
machine: foundDataset["Machine readable"],
bulk: foundDataset["Available in bulk"],
openLicense: foundDataset["No restrictions"],
fresh: foundDataset["Up-to-date"],
inRepo: foundDataset["In the state repository"],
verifiable: foundDataset["Verifiable"],
complete: foundDataset["Complete"],
grade: foundDataset["Grade"],
score: foundDataset["Score"],
datasetHref: URI().filename("datasets.html").search({
Expand All @@ -203,35 +191,7 @@ function mapInfo(data, tabletop) {
}
}

gridData.existsCaption = captions.exists[gridData.exists];
gridData.digitizedCaption = captions.digitized[gridData.digitized];
gridData.isPublicCaption = captions.isPublic[gridData.isPublic];
gridData.freeCaption = captions.free[gridData.free];
gridData.onlineCaption = captions.online[gridData.online];
gridData.machineCaption = captions.machine[gridData.machine];
gridData.bulkCaption = captions.bulk[gridData.bulk];
gridData.openLicenseCaption = captions.openLicense[gridData.openLicense];
gridData.freshCaption = captions.fresh[gridData.fresh];
gridData.inRepoCaption = captions.inRepo[gridData.inRepo];
gridData.verifiableCaption = captions.verifiable[gridData.verifiable];
gridData.completeCaption = captions.complete[gridData.complete];
row["datasets"].push(gridData).toString()
} else {
row["datasets"].push({
exists: "DNE",
digitized: "DNE",
isPublic: "DNE",
free: "DNE",
online: "DNE",
machine: "DNE",
bulk: "DNE",
openLicense: "DNE",
fresh: "DNE",
inRepo: "DNE",
verifiable: "DNE",
complete: "DNE",
datasetHref: "https://github.com/opendata/Open-Data-Census/issues/new?title=Missing+Data:&body=STATE%3A%20%0ADATASET%3A%20%0AURL%3A%20%0A%0ADESCRIPTION%2FCOMMENTS%3A%0A%0A%5BHere%20you%20might%20describe%20the%20quality%20of%20the%20data%2C%20rate%20it%20using%20the%20census%27%20metrics%2C%20suggest%20changes%20to%20an%20existing%20dataset%2C%20etc.%5D"
});
row["datasets"].push(gridData).toString();
}
});
return row;
Expand Down

0 comments on commit 9b14f7d

Please sign in to comment.