Commit dc27a348 authored by Maxime Chaillet's avatar Maxime Chaillet

change date format from RFC 2822 to ISO8601. Required for compatibility with Qupzilla

parent eacb982c
Pipeline #2185 failed with stages
This diff is collapsed.
var BEAMLINEURL = [
{
"name" : "BM05",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/UsersAndScience/Experiments/XNP/BM05"
},
{
"name" : "BM29",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/BM29"
},
{
"name" : "CM01",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/CM01.html"
},
{
"name" : "ID01",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID01"
},
{
"name" : "ID06",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/home/UsersAndScience/Experiments/MEx/id06-large-volume-press.html"
},
{
"name" : "ID11",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/UsersAndScience/Experiments/StructMaterials/ID11"
},
{
"name" : "ID16A",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16A"
},
{
"name" : "ID16B",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16B"
},
{
"name" : "ID17",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/UsersAndScience/Experiments/CBS/ID17"
},
{
"name" : "ID19",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.fr/home/UsersAndScience/Experiments/StructMaterials/ID19.html"
},
{
"name" : "ID21",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID21"
},
{
"name" : "ID22",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/id22"
},
{
"name" : "ID23-1",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-1"
},
{
"name" : "ID23-2",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-2"
},
{
"name" : "ID29",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/home/UsersAndScience/Experiments/Beamlines/content/content/id29.html"
},
{
"name" : "ID30A1",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/MASSIF1"
},
{
"name" : "ID30A3",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/id30a-3--massif-3.html"
},
{
"name" : "ID30B",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/id30b"
},
{
"name" : "ID32",
"startDate" : "01 01 2000 00:00 +0000",
"endDate" : "01 12 2100 00:00 +0000",
"startDate" : "2000-01-01T00:00+00:00",
"endDate" : "2100-12-31T00:00+00:00",
"url" : "http://www.esrf.eu/ID32"
}
];
\ No newline at end of file
......@@ -35,7 +35,7 @@ DOIController.prototype.getData = function(doi) {
// Retrieve the URL corresponding to the beamline name. Currently, the date of the
// experiment is calculated from the publicationYear.
var experimentalYear = doiData.issued["date-parts"] - 3 ;
var experimentalDate = new Date(experimentalYear + " 01 01 00:00 +0000");
var experimentalDate = new Date(experimentalYear + "-01-01T00:00+00:00");
doiData.beamlineUrl = _this.findsUrl(doiData.beamline, experimentalDate);
// send to dust render
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment