Commit 23a30927 authored by Maxime Chaillet's avatar Maxime Chaillet
Browse files

Merge branch 'issue50' into 'master'

Issue50

See merge request !52
parents 26c7a74d 0904d753
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px; /* Margin bottom by footer height */
font-size: 14px;
margin-bottom: 60px; /* Margin bottom by footer height */
font-size: 14px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px; /* Set the fixed height of the footer here */
line-height: 60px; /* Vertically center the text there */
background-color: #f4f4f4;
position: absolute;
bottom: 0;
width: 100%;
height: 60px; /* Set the fixed height of the footer here */
line-height: 60px; /* Vertically center the text there */
background-color: #f4f4f4;
}
/* Custom page CSS
-------------------------------------------------- */
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
.container {
width: auto;
max-width: 680px;
padding: 0 15px;
}
/* sets the display of the element to flex */
.flex{
display:flex;
width: auto;
max-width: 680px;
padding: 0 15px;
}
.doiTitleFont{
font-size:20px;
/* sets the display of the element to flex */
.flex {
display:flex;
}
/* sets the background color as esrf blue*/
.blueBackground{
background-color: #132577 !important;
.blueBackground {
background-color: #132577 !important;
}
.lightRedBackground{
background-color: #ffcaca !important;
.lightRedBackground {
background-color: #ffcaca !important;
}
.grayBackground{
background-color: #dcdee2;
.grayBackground {
background-color: #dcdee2;
}
/* vertically center the font and sets its color to white */
.whiteVCenteredFont{
color: white;
margin-top: auto;
margin-bottom:auto;
.whiteVCenteredFont {
color: white;
margin-top: auto;
margin-bottom:auto;
}
.fontSize-20 {
font-size: 20px;
}
.padding-top-15 {
padding-top:15px;
}
.padding-bottom-15 {
padding-bottom:15px;
}
.padding-top-15{
padding-top:15px;
.padding-left-15 {
padding-left:15px;
}
.padding-bottom-15{
padding-bottom:15px;
.padding-bottom-10 {
padding-bottom:10px;
}
.padding-left-15{
padding-left:15px;
/* ######################## For DOI badge ################ */
.borderRadius-5 {
border-radius: 5px;
}
.padding-bottom-10{
padding-bottom:10px;
span.doiBadge {
font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
color: white;
background: black;
text-decoration: none;
padding: 2px 0px 2px 4px;
border-color: black;
}
span.doiBadge::before {
content: "DOI";
}
span.doiBadge a {
color: white;
background: #0099cc;
text-decoration: none;
margin-left: 4px;
padding: 2px 5px 2px 4px;
border-radius: 0px 5px 5px 0px;
}
/* ######################## For doi landing page ######### */
.myBorder-left{
border-left-color: #cfd1d2;
border-left-width: 4px;
border-left-style: solid;
padding-left:10px;
.myBorder-left {
border-left-color: #cfd1d2;
border-left-width: 4px;
border-left-style: solid;
padding-left:10px;
}
.card-footer{
background-color: #FFFFFF;
border: 0;
.card-footer {
background-color: #FFFFFF;
border: 0;
}
hr{
margin-top: 30px;
margin-bottom: 30px;
hr {
margin-top: 30px;
margin-bottom: 30px;
}
label{
margin-bottom: 0px;
label {
margin-bottom: 0px;
}
.scroll-box {
overflow-y: auto;
overflow-x: hidden;
height: 175px;
}
overflow-y: auto;
overflow-x: hidden;
height: 175px;
}
/* ######################## For welcome page ############# */
.padding10{
padding:10px;
.padding10 {
padding:10px;
}
.padding-left-0{
padding-left:0;
.padding-left-0 {
padding-left:0;
}
.padding-right-0{
padding-right:0;
.padding-right-0 {
padding-right:0;
}
.whiteBackground{
background-color: #ffffff;
.whiteBackground {
background-color: #ffffff;
}
.welcomeBanner{
heigth:100px;
.welcomeBanner {
heigth:100px;
}
.whiteFont{
color: #ffffff;
.whiteFont {
color: #ffffff;
}
.flexCentered{
display:flex;
justify-content: center; /* align horizontal */
align-items: center;
.flexCentered {
display:flex;
justify-content: center; /* align horizontal */
align-items: center;
}
.height100p{
height:100%;
.height100p {
height:100%;
}
/* ########################################### */
/* the buttons */
/* ########################################### */
/* make all button's text to wrap to a new line */
.btn{
white-space: normal;
.btn {
white-space: normal;
}
/* when the buttons are hovered */
......@@ -151,71 +176,67 @@ label{
}
.btn-primary {
border-color: #132577;
background-color: #132577
border-color: #132577;
background-color: #132577
}
/* when the buttons are disabled */
.btn-primary.disabled{
background-color: #132577;
border-color: #132577;
cursor: not-allowed;
.btn-primary.disabled {
background-color: #132577;
border-color: #132577;
cursor: not-allowed;
}
.btn.disabled{
opacity : .50
.btn.disabled {
opacity : .50
}
/* ############## end the buttons ############## */
/*sets all labels to bold */
label{
font-weight: bold;
label {
font-weight: bold;
}
/* ################# esrf logo ############### */
#logo{
height: 50px;
#logo {
height: 50px;
}
/* ############### right side metadata ##########*/
.card-header{
background-color: #CFD1D2;
.card-header {
background-color: #CFD1D2;
}
/* ######################################################### */
/* ## the please-wait-loading-animation ## */
/* ######################################################### */
/* Start by setting display:none to make this hidden.
Then we position it in relation to the viewport window
with position:fixed. Width, height, top and left speak
for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
* Then we position it in relation to the viewport window
* with position:fixed. Width, height, top and left speak
* for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
.modal {
display: none;
position: absolute;
z-index: 1000;
top: 82px;
bottom: 60px;
background: rgba( 0, 0, 0, .05 )
display: none;
position: absolute;
z-index: 1000;
top: 82px;
bottom: 60px;
background: rgba( 0, 0, 0, .05 )
url('../src/images/ajaxloader.gif')
50% 50%
no-repeat;
}
/* When the body has the loading class, we turn
the scrollbar off with overflow:hidden */
the scrollbar off with overflow:hidden */
body.loading {
overflow: hidden;
overflow: hidden;
}
/* Anytime the body has the loading class, our
modal element will be visible */
modal element will be visible */
body.loading .modal {
display: block;
display: block;
}
/* ######################################################### */
......@@ -48,10 +48,15 @@
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12 col-sm-4 blueBackground" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8 blueBackground flex">
<div id="doiPanel" class="col-12 whiteVCenteredFont text-right doiTitle" > </div>
<div class="row align-items-center blueBackground">
<div class="col-12 col-sm-4" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8">
<div class="row">
<div class="col"> </div>
<div class="col-auto mr-3 borderRadius-5 whiteBackground" style="padding:10px;">
<span class="doiBadge borderRadius-5 fontSize-20"> <a id="doiPanel" href="http://dx.doi.org/10.5291/ILL-DATA.5-31-2457"></a> </span>
</div>
</div>
</div>
</div>
</div>
......
......@@ -34,10 +34,15 @@
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12 col-sm-4 blueBackground" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8 blueBackground flex">
<div id="doiPanel" class="col-12 whiteVCenteredFont text-right doiTitle" > </div>
<div class="row align-items-center blueBackground">
<div class="col-12 col-sm-4" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8">
<div class="row">
<div class="col"> </div>
<div class="col-auto mr-3 borderRadius-5 whiteBackground" style="padding:10px;">
<span class="doiBadge borderRadius-5 fontSize-20"> <a id="doiPanel" href="http://dx.doi.org/10.5291/ILL-DATA.5-31-2457"></a> </span>
</div>
</div>
</div>
</div>
</div>
......
......@@ -40,10 +40,15 @@
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12 col-sm-4 blueBackground" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8 blueBackground flex">
<div id="doiPanel" class="col-12 whiteVCenteredFont text-right doiTitle" > </div>
<div class="row align-items-center blueBackground">
<div class="col-12 col-sm-4" > <img id="logo" style="height:80px;" src="/src/images/esrflogo.png" alt="the ESRF logo"> </img> </div>
<div class="col-12 col-sm-8">
<div class="row">
<div class="col"> </div>
<div class="col-auto mr-3 borderRadius-5 whiteBackground" style="padding:10px;">
<span class="doiBadge borderRadius-5 fontSize-20"> <a id="doiPanel" href="http://dx.doi.org/10.5291/ILL-DATA.5-31-2457"></a> </span>
</div>
</div>
</div>
</div>
</div>
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
(function(dust){dust.register("doinotfound_tpl",body_0);function body_0(chk,ctx){return chk.w("<div class=\"container-fluid \" style=\"color:black;\"><div class=\"row\"><div class=\"col-3\"> </div><div class=\"col-6 lightRedBackground text-center rounded\"> <p> ").f(ctx.get(["message"], false),ctx,"h",["s"]).w(" </p> </div></div><div class=\"col-3\"> </div></div> ");}body_0.__dustBody=!0;return body_0}(dust));
(function(dust){dust.register("doinotfound2_tpl",body_0);function body_0(chk,ctx){return chk.f(ctx.get(["message"], false),ctx,"h",["s"]);}body_0.__dustBody=!0;return body_0}(dust));
(function(dust){dust.register("experimentalreport_tpl",body_0);function body_0(chk,ctx){return chk.w("<div class=\"card-header text-center\"><label>Experimental report </label></div><div class=\"card-body padding10\">").x(ctx.get(["data"], false),ctx,{"else":body_1,"block":body_2},{});}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.w("<p> There is currently no experimental report. </p></div>");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.h("eq",ctx,{"block":body_3},{"key":ctx.getPath(false, ["data","length"]),"value":1},"h").h("gt",ctx,{"block":body_4},{"key":ctx.getPath(false, ["data","length"]),"value":1},"h").w(" </div>");}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w("<p> <b> One </b> report has been found for this proposal. </p></div><div class=\"card-footer\"> <button type=\"button\" class=\"btn btn-primary btn-lg btn-block\" onclick=\"javascript:(function(){ var expRep = new ExperimentalReportController(); expRep.openFileInNewTab('").f(ctx.getPath(false, ["data","0"]),ctx,"h").w("'); })()\" > <span class=\"fa fa-download whiteFont\"></span> ").f(ctx.getPath(false, ["data","0"]),ctx,"h").w(" </button></div>");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w("<p> In total, <b> ").f(ctx.getPath(false, ["data","length"]),ctx,"h").w(" </b> reports have been found for this proposal: </p><div class=\"scroll-box\">").s(ctx.get(["data"], false),ctx,{"block":body_5},{}).w("</div>");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.w(" <div class=\"row\"> <div class=\"col-1\"> </div><div class=\"col-10 padding-bottom-10\"><button type=\"button\" class=\"btn btn-primary btn-lg btn-block\" onclick=\"javascript:(function(){ var expRep = new ExperimentalReportController(); expRep.openFileInNewTab('").f(ctx.getPath(true, []),ctx,"h").w("'); })()\" > <span class=\"fa fa-download whiteFont\"></span> <span class=\"whitefont\"> ").f(ctx.getPath(true, []),ctx,"h").w("</span> </button></div><div class=\"col-1\"> </div></div>");}body_5.__dustBody=!0;return body_0}(dust));
(function(dust){dust.register("landingpage_tpl",body_0);function body_0(chk,ctx){return chk.w("<div class=\"container-fluid\"><br /><div class=\"row padding-top-15\"><div class=\"col-8\"><div class=\"row\"><div class=\"col-12 doiTitleFont text-center text-uppercase font-weight-bold\">").f(ctx.getPath(false, ["data","title"]),ctx,"h").w("</div></div><hr><div class=\"row\"><div class=\"col-4\"><div class=\"myBorder-left\"><label> Proposal </label>").x(ctx.getPath(false, ["data","proposalNumber"]),ctx,{"else":body_1,"block":body_2},{}).w("</div></div><div class=\"col-4\"><div class=\"myBorder-left\"><label> Publication year </label>").x(ctx.getPath(false, ["data","mintingYear"]),ctx,{"else":body_3,"block":body_4},{}).w("</div></div> <div class=\"col-4\"><div class=\"myBorder-left\"><label> Beamline </label> ").x(ctx.getPath(false, ["data","beamline"]),ctx,{"else":body_5,"block":body_6},{}).w("</div></div></div><div class=\"padding-top-15\"></div><div class=\"row\"><div class=\"col-4\"><div class=\"myBorder-left\"><label> Session date </label>").x(ctx.getPath(false, ["data","sessionDate"]),ctx,{"else":body_9,"block":body_10},{}).w("</div></div> <div class=\"col-4\"><div class=\"myBorder-left\"><label>Category </label>").x(ctx.getPath(false, ["data","proposalType"]),ctx,{"else":body_11,"block":body_12},{}).w("</div></div> <div class=\"col-4\"> <div class=\"myBorder-left\"><label>Publisher </label> <div class=\"padding-left-15\"><a href=\"http://www.esrf.fr\"> ").f(ctx.getPath(false, ["data","publisher"]),ctx,"h").w(" </a> </div></div></div> </div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"myBorder-left\"><label> Abstract </label><div class=\"padding-left-15\">There is no abstract for this session.</div></div> </div></div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"card-deck\"><div class=\"card\" id=\"expReport\"><div class=\"card-header text-center\"><label>Experimental report </label></div></div><div class=\"card\"><div class=\"card-header text-center\"><label>Experimental data </label></div><div class=\"card-body padding10\"><p class=\"card-text\" >").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("</p></div><div class=\"card-footer\"><form action=\"https://icat.esrf.fr/#/browse/facility/ESRF/proposal/").f(ctx.getPath(false, ["data","proposalNumber"]),ctx,"h").w("/investigation/").f(ctx.getPath(false, ["data","investigationId"]),ctx,"h").w("/dataset\" target=\"_blank\"><button type=\"submit\" class=\"btn btn-primary btn-lg btn-block\"> Access data </button></form></div></div></div></div></div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"myBorder-left\"><label> Citation </label><div class=\"padding-left-15\"><p> Below is the recommended format for citing this work in a research publication.</p><div class=\"padding-left-15\"><cite> ").f(ctx.getPath(false, ["data","citation"]),ctx,"h",["s"]).w(" </cite></div></div></div> </div></div> </div><div class=\"col-4\"><div class=\"row\"><div class=\"col-12\"><div class=\"card\"><div class=\"card-header text-center\"><label>Authors </label></div><div class=\"card-body text-center\">").s(ctx.getPath(false, ["data","creator"]),ctx,{"block":body_13},{}).w("</div></div></div></div></div></div> </div>");}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","proposalNumber"]),ctx,"h").w("</div>");}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","mintingYear"]),ctx,"h").w("</div>");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.w("<div class=\"padding-left-15\">Not available</div>");}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.h("eq",ctx,{"else":body_7,"block":body_8},{"key":ctx.getPath(false, ["data","beamlineUrl"]),"value":"noLink"},"h");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w("<div class=\"padding-left-15\"><a href=\"").f(ctx.getPath(false, ["data","beamlineUrl"]),ctx,"h").w("\" target=\"_blank\"> ").f(ctx.getPath(false, ["data","beamline"]),ctx,"h").w(" </a></div>");}body_7.__dustBody=!0;function body_8(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","beamline"]),ctx,"h").w("</div>");}body_8.__dustBody=!0;function body_9(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_9.__dustBody=!0;function body_10(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","sessionDate"]),ctx,"h").w("</div>");}body_10.__dustBody=!0;function body_11(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_11.__dustBody=!0;function body_12(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","proposalType"]),ctx,"h").w("</div>");}body_12.__dustBody=!0;function body_13(chk,ctx){return chk.w(" ").x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_14,"block":body_15},{}).w(" ");}body_13.__dustBody=!0;function body_14(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(" </br> ");}body_14.__dustBody=!0;function body_15(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(" </br> ");}body_15.__dustBody=!0;return body_0}(dust));
(function(dust){dust.register("landingpage_tpl",body_0);function body_0(chk,ctx){return chk.w("<div class=\"container-fluid\"><br /><div class=\"row padding-top-15\"><div class=\"col-8\"><div class=\"row\"><div class=\"col-12 fontSize-20 text-center text-uppercase font-weight-bold\">").f(ctx.getPath(false, ["data","title"]),ctx,"h").w("</div></div><hr><div class=\"row\"><div class=\"col-4\"><div class=\"myBorder-left\"><label> Proposal </label>").x(ctx.getPath(false, ["data","proposalNumber"]),ctx,{"else":body_1,"block":body_2},{}).w("</div></div><div class=\"col-4\"><div class=\"myBorder-left\"><label> Publication year </label>").x(ctx.getPath(false, ["data","mintingYear"]),ctx,{"else":body_3,"block":body_4},{}).w("</div></div> <div class=\"col-4\"><div class=\"myBorder-left\"><label> Beamline </label> ").x(ctx.getPath(false, ["data","beamline"]),ctx,{"else":body_5,"block":body_6},{}).w("</div></div></div><div class=\"padding-top-15\"></div><div class=\"row\"><div class=\"col-4\"><div class=\"myBorder-left\"><label> Session date </label>").x(ctx.getPath(false, ["data","sessionDate"]),ctx,{"else":body_9,"block":body_10},{}).w("</div></div> <div class=\"col-4\"><div class=\"myBorder-left\"><label>Category </label>").x(ctx.getPath(false, ["data","proposalType"]),ctx,{"else":body_11,"block":body_12},{}).w("</div></div> <div class=\"col-4\"> <div class=\"myBorder-left\"><label>Publisher </label> <div class=\"padding-left-15\"><a href=\"http://www.esrf.fr\"> ").f(ctx.getPath(false, ["data","publisher"]),ctx,"h").w(" </a> </div></div></div> </div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"myBorder-left\"><label> Abstract </label><div class=\"padding-left-15\">There is no abstract for this session.</div></div> </div></div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"card-deck\"><div class=\"card\" id=\"expReport\"><div class=\"card-header text-center\"><label>Experimental report </label></div></div><div class=\"card\"><div class=\"card-header text-center\"><label>Experimental data </label></div><div class=\"card-body padding10\"><p class=\"card-text\" >").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("</p></div><div class=\"card-footer\"><form action=\"https://icat.esrf.fr/#/browse/facility/ESRF/proposal/").f(ctx.getPath(false, ["data","proposalNumber"]),ctx,"h").w("/investigation/").f(ctx.getPath(false, ["data","investigationId"]),ctx,"h").w("/dataset\" target=\"_blank\"><button type=\"submit\" class=\"btn btn-primary btn-lg btn-block\"> Access data </button></form></div></div></div></div></div><hr><div class=\"row\"><div class=\"col-12\"><div class=\"myBorder-left\"><label> Citation </label><div class=\"padding-left-15\"><p> Below is the recommended format for citing this work in a research publication.</p><div class=\"padding-left-15\"><cite> ").f(ctx.getPath(false, ["data","citation"]),ctx,"h",["s"]).w(" </cite></div></div></div> </div></div> </div><div class=\"col-4\"><div class=\"row\"><div class=\"col-12\"><div class=\"card\"><div class=\"card-header text-center\"><label>Authors </label></div><div class=\"card-body text-center\">").s(ctx.getPath(false, ["data","creator"]),ctx,{"block":body_13},{}).w("</div></div></div></div></div></div> </div>");}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","proposalNumber"]),ctx,"h").w("</div>");}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","mintingYear"]),ctx,"h").w("</div>");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.w("<div class=\"padding-left-15\">Not available</div>");}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.h("eq",ctx,{"else":body_7,"block":body_8},{"key":ctx.getPath(false, ["data","beamlineUrl"]),"value":"noLink"},"h");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w("<div class=\"padding-left-15\"><a href=\"").f(ctx.getPath(false, ["data","beamlineUrl"]),ctx,"h").w("\" target=\"_blank\"> ").f(ctx.getPath(false, ["data","beamline"]),ctx,"h").w(" </a></div>");}body_7.__dustBody=!0;function body_8(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","beamline"]),ctx,"h").w("</div>");}body_8.__dustBody=!0;function body_9(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_9.__dustBody=!0;function body_10(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","sessionDate"]),ctx,"h").w("</div>");}body_10.__dustBody=!0;function body_11(chk,ctx){return chk.w("<div class=\"padding-left-15\"> Not available</div>");}body_11.__dustBody=!0;function body_12(chk,ctx){return chk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false, ["data","proposalType"]),ctx,"h").w("</div>");}body_12.__dustBody=!0;function body_13(chk,ctx){return chk.w(" ").x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_14,"block":body_15},{}).w(" ");}body_13.__dustBody=!0;function body_14(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(" </br> ");}body_14.__dustBody=!0;function body_15(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(" </br> ");}body_15.__dustBody=!0;return body_0}(dust));
(function(dust){dust.register("welcome_tpl",body_0);function body_0(chk,ctx){return chk.w(" <div class=\"container-fluid\"><div class=\"row\"><div class=\"col-12 flexCentered whiteFont\" style=\"color:#132577; font-size: 4rem; height: 200px; margin-top: 10px; margin-bottom: 10px;\">ESRF Data Portal</div></div></div><div class=\"container-fluid\"><div class=\"row\"><div class=\"col-12 col-md-4\"><div class=\"padding10\"><div class=\"card-header text-center\"><h2>About the portal</h2></div><div class=\"card-body padding10\">This page centralizes the services offered by the ESRF to access data stored at the facility as part of its data policy.<ul><li>DOI search engine</li><li>Data catalogue <a href=\"https://icat.esrf.fr\" target=\"_blank\"> icat.esrf.fr</a></li></ul></div></div></div><div class=\"col-12 col-md-4\"><div class=\"padding10\"><div class=\"card-header text-center \"><h2>DOI resolver</h2></div><div class=\"card-body padding10\"><p>The search engine below only finds DOI which have been minted at ESRF. </br> Use <a href=\"https://doi.org\">doi.org </a> search engine for any other DOI.</p><div class=\"row\"><div class=\"col-xl-9 padding-right-0\"><p> <input id=\"doiSearchBox\" class=\"form-control\" placeholder=\"10.15151/ESRF-ES-90632078\" type=\"text\" required/> </p><div class=\"text-danger\" id=\"error\"> </div> </div><div class=\"col padding-left-0\"> <input class=\"btn btn-primary\" type=\"submit\" value=\"Search\" onclick=\"searchDOI()\" /> </div></div><div class=\"row\"><div class=\"col\"><p> <a href=\"https://search.datacite.org/works?query=10.15151\"> Advanced search </a> </p></div></div></div> </div></div><div class=\"col-12 col-md-4\"><div class=\"padding10\"><div class=\"card-header text-center\"><h2>About DOI</h2></div><div class=\"card-body padding10\">The Digital Object Identifier (<a href=\"https://www.doi.org/\">DOI</a>) is a code composed of digits and characters. It identifies data in aunique and perennial way thus referencing this data worldwide. The DOI has two parts namely the DOI prefixand the DOI suffix separated by a slash (\"/\") as depicted below :</p><pre>prefix/suffix </pre></div></div></div></div></div>");}body_0.__dustBody=!0;return body_0}(dust));
\ No newline at end of file
......@@ -38,6 +38,7 @@ DOIController.prototype.isValidDOIData = function(doiData) {
DOIController.prototype.getData = function(doi) {
var _this = this;
this.view.setDOI(doi);
this.view.setDOILink(_this.doiServer + doi);
if (this.hasAcceptedPrefix(doi)) {
$.ajax({
......
......@@ -17,8 +17,20 @@ DOIView.prototype.setLoading = function( message ) {
$( "body" ).addClass( "loading" );
};
DOIView.prototype.setDOI = function( doi ) {
$( "#doiPanel" ).html( doi.toUpperCase() );
/**
* Set the doi prefix/suffix text in the doi landing page.
*
*/
DOIView.prototype.setDOI = function( doiCode ) {
$( "#doiPanel" ).text( doiCode.toUpperCase() );
};
/**
* Set the doi http link in the doi landing page. It is the http adress at datacite server which will redirect to the DOI landing page.
*
*/
DOIView.prototype.setDOILink = function( doiLink ) {
$( "#doiPanel" ).attr("href", doiLink.toUpperCase() );
};
/**
......
......@@ -3,7 +3,7 @@
<div class="row padding-top-15">
<div class="col-8">
<div class="row">
<div class="col-12 doiTitleFont text-center text-uppercase font-weight-bold">{data.title}</div>
<div class="col-12 fontSize-20 text-center text-uppercase font-weight-bold">{data.title}</div>
</div>
<hr>
......
Supports Markdown
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