message='<h3> Not found ! </h3> <p> The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at <a href="https://www.doi.org"> doi.org</a>. </p>';
message=
}else{
'<h3> Not found ! </h3> <p> The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at <a href="https://www.doi.org"> doi.org</a>. </p>';
message='<h2> Not found ! </h2> <p> The DOI was not found at ESRF because its prefix is not ESRF specific. </br> Please use the DOI search engine at <a href="https://www.doi.org"> doi.org</a>. </p>';
}
}elseif (errorThrown==="Not Found"){
if (origin==="welcome-page"){
message="<h3> Not found ! </h3> <p> Sorry, the requested DOI was not found. </p>";
}else{
message="<h2> Not found ! </h2> <p> Sorry, the requested DOI was not found. </p>";
}
}elseif (errorThrown==="timeout"){
if (origin==="welcome-page"){
message="<h3> Not found ! </h3> <p> Sorry, the server took too long to reply. Try again later. </p>";
}else{
message="<h2> Not found ! </h2> <p> Sorry, the server took too long to reply. Try again later. </p>";
}
}elseif (errorThrown===""&&jqXHR.responseText==="The resource you are looking for doesn't exist."){
if (origin==="welcome-page"){
message="<h3> Not found ! </h3> <p>It may take up to 24 hours for a newly generated DOI to become available. Please try again later.</p>";
}else{
message="<h2> Not found ! </h2> <p>It may take up to 24 hours for a newly generated DOI to become available. Please try again later.</p>";
}
}else{
}else{
if (origin==="welcome-page"){
message=
message="<h3> Not found ! </h3> <p> Connexion problem to the datacite server. Please try again later.</p>";
'<h2> Not found ! </h2> <p> The DOI was not found at ESRF because its prefix is not ESRF specific. </br> Please use the DOI search engine at <a href="https://www.doi.org"> doi.org</a>. </p>';
}else{
}
message="<h2> Not found ! </h2> <p> Connexion problem to the datacite server. Please try again later.</p>";
}elseif (errorThrown==="Not Found"){
}
if (origin==="welcome-page"){
message="<h3> Not found ! </h3> <p> Sorry, the requested DOI was not found. </p>";
}else{
message="<h2> Not found ! </h2> <p> Sorry, the requested DOI was not found. </p>";
}
}
dust.render(template,{
}elseif (errorThrown==="timeout"){
message:message
if (origin==="welcome-page"){
},function (err,out){
message="<h3> Not found ! </h3> <p> Sorry, the server took too long to reply. Try again later. </p>";
$("#error").html(out);
}else{
});
message="<h2> Not found ! </h2> <p> Sorry, the server took too long to reply. Try again later. </p>";
}
}elseif (errorThrown===""&&jqXHR.responseText==="The resource you are looking for doesn't exist."){
if (origin==="welcome-page"){
message=
"<h3> Not found ! </h3> <p>It may take up to 24 hours for a newly generated DOI to become available. Please try again later.</p>";
}else{
message=
"<h2> Not found ! </h2> <p>It may take up to 24 hours for a newly generated DOI to become available. Please try again later.</p>";
}
}else{
if (origin==="welcome-page"){
message="<h3> Not found ! </h3> <p> Connexion problem to the datacite server. Please try again later.</p>";
}else{
message="<h2> Not found ! </h2> <p> Connexion problem to the datacite server. Please try again later.</p>";
varout='<div class="card-header text-center"> <label>Experimental report </label> </div> <div class="card-body padding10"> <p> The filename list is not available. </p> </div>';
varout=
$('#'+this.reportPanelId).html(out);
'<div class="card-header text-center"> <label>Experimental report </label> </div> <div class="card-body padding10"> <p> The filename list is not available. </p> </div>';
$("#"+this.reportPanelId).html(out);
};
};
/**
/**
* Render the badge template in the corresponding div
* Render the badge template in the corresponding div
* @param {object} data : the doiData object as constructed by the doiController
* @param {object} data : the doiData object as constructed by the doiController
*/
*/
DOIView.prototype.renderBadges=function (data){
DOIView.prototype.renderBadges=function (data){
if (data){
if (data){
var_this=this;
var_this=this;
dust.render('badges_tpl',{
dust.render(
data:data,
"badges_tpl",
constants:CONSTANTS
{
},function (err,out){
data:data,
$('#'+_this.badgePanelId).html(out);
constants:CONSTANTS,
});
},
}
function (err,out){
$("#"+_this.badgePanelId).html(out);
}
);
}
};
};
/**
/**
* Render the badge template in the corresponding div
* Render the badge template in the corresponding div