Commit a1680c03 authored by Maxime Chaillet's avatar Maxime Chaillet

display session date

parent 9baad333
This diff is collapsed.
This diff is collapsed.
......@@ -136,8 +136,12 @@ function findRegExpInText(regExp, text) {
// extract dates as required for the DOI landing page
function extractDates(data){
//publication Year in doi landing page is the minting year
// publication Year in doi landing page is the minting year
data.mintingYear = new Date(data.date_registered).getFullYear();
// session date is the date the experiment for the session was performed
var experimentDate = new Date(data.date_collected);
data.sessionDate = experimentDate.getFullYear() + "-" + experimentDate.getMonth() + "-" + experimentDate.getDate();
}
......
......@@ -9,19 +9,19 @@
<hr>
<div class="row">
<div class="col-3">
<div class="col-4">
<div class="myBorder-left">
<label> Proposal </label>
<div class="padding-left-15">{data.proposalNumber}</div>
</div>
</div>
<div class="col-3">
<div class="col-4">
<div class="myBorder-left">
<label> Publication year </label>
<div class="padding-left-15">{data.mintingYear}</div>
</div>
</div>
<div class="col-6">
<div class="col-4">
<div class="myBorder-left">
<label> Beamline </label>
{@eq key=data.beamlineUrl value="noLink"}
......@@ -36,13 +36,19 @@
</div>
<div class="padding-top-15"></div>
<div class="row">
<div class="col-6">
<div class="col-4">
<div class="myBorder-left">
<label> Session date </label>
<div class="padding-left-15">{data.sessionDate}</div>
</div>
</div>
<div class="col-4">
<div class="myBorder-left">
<label>Category </label>
<div class="padding-left-15">{data.proposalType}</div>
</div>
</div>
<div class="col-6">
<div class="col-4">
<div class="myBorder-left">
<label>Publisher </label>
<div class="padding-left-15"><a href="http://www.esrf.fr"> {data.publisher} </a> </div>
......
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