diff --git a/www/min/doi.min.js b/www/min/doi.min.js index f7ee0e8be75f645dbea38d2c8593b63300b68737..2cac955cae8963c2f140afb8fb891978f7849ef1 100644 --- a/www/min/doi.min.js +++ b/www/min/doi.min.js @@ -1 +1 @@ -function Author(){}function Citation(e){this.isBuildable=!!(e&&e.creator&&0!==e.creator.length&&e.date_registered&&e.title&&e.publisher&&e.doi)}function DOIController(e){var t=this;this.doiServer="https://data.datacite.org/",this.acceptedPrefix=["10.5072","10.15151"],this.view=e,this.experimentalReportController=new ExperimentalReportController,this.experimentalReportController.onSuccess.attach(function(e,r){t.view.renderExperimentalReportData(r)}),this.experimentalReportController.onError.attach(function(e,r){console.log("Error when retrieving fileList from SMIS."),t.view.renderErrorForExperimentalReport()})}function DoiData(e,t,r,n,i,a){this.title=e,this.doi=t,this.dataciteLink=r,this.publisher=n,this.creator=i,this.publiclyAccessibleYear=a}function DOIView(){this.mainPanelId="main",this.reportPanelId="expReport",this.badgePanelId="badges",this.metadataDivId="metadata",this.reportExperimentFileNames=null,this.failedRecievingExpReport=!1,this.isDOIAlreadyRendered=!1,this.onDOIRendered=new Event(this)}function Event(e){this._sender=e,this._listeners=[]}function ExperimentalReportController(){this.server="https://wwws.esrf.fr/misapps/SMISServer/rest/reports/fileNames",this.timeout=5e3,this.onSuccess=new Event(this),this.onError=new Event(this)}function JsonExtractor(e){}function proposalBeamlineTable(e,t,r,n){var i=n.mergedProposalBeamlines;if(e.write('
Proposals | '),e.write('Beamlines | '),e.write(""+o+" | "),"noLink"===l?e.write(""+s+" | "):e.write(''+s+" | "),e.write("")}else e.write("
---|---|
unknown | "),chunck.write("unknown | "),e.write("
The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at doi.org.
':'The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at doi.org.
':"Not Found"===t?"welcome-page"===r?"Sorry, the requested DOI was not found.
":"Sorry, the requested DOI was not found.
":"timeout"===t?"welcome-page"===r?"Sorry, the server took too long to reply. Try again later.
":"Sorry, the server took too long to reply. Try again later.
":""===t&&"The resource you are looking for doesn't exist."===e.responseText?"welcome-page"===r?"It may take up to 24 hours for a newly generated DOI to become available. Please try again later.
":"It may take up to 24 hours for a newly generated DOI to become available. Please try again later.
":"welcome-page"===r?"Connexion problem to the datacite server. Please try again later.
":"Connexion problem to the datacite server. Please try again later.
",dust.render(n,{message:i},function(e,t){$("#error").html(t)})},DOIView.prototype.renderErrorForExperimentalReport=function(){this.failedRecievingExpReport=!0;$("#"+this.reportPanelId).html('The filename list is not available.
The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at doi.org.
':'The DOI was not found at ESRF because its prefix is not ESRF specific. Please use the DOI search engine at doi.org.
':"Not Found"===t?"welcome-page"===r?"Sorry, the requested DOI was not found.
":"Sorry, the requested DOI was not found.
":"timeout"===t?"welcome-page"===r?"Sorry, the server took too long to reply. Try again later.
":"Sorry, the server took too long to reply. Try again later.
":""===t&&"The resource you are looking for doesn't exist."===e.responseText?"welcome-page"===r?"It may take up to 24 hours for a newly generated DOI to become available. Please try again later.
":"It may take up to 24 hours for a newly generated DOI to become available. Please try again later.
":"welcome-page"===r?"Connexion problem to the datacite server. Please try again later.
":"Connexion problem to the datacite server. Please try again later.
",dust.render(n,{message:i},function(e,t){$("#error").html(t)})},DOIView.prototype.renderErrorForExperimentalReport=function(){this.failedRecievingExpReport=!0;$("#"+this.reportPanelId).html('The filename list is not available.
").f(ctx.get(["message"], false),ctx,"h",["s"]).w("
There is currently no experimental report.
One report has been found for this proposal.
In total, ").f(ctx.getPath(false, ["data","length"]),ctx,"h").w(" reports have been found for this proposal:
").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("
Below is the recommended format for citing this work in a research publication.
").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("
Below is the recommended format for citing this work in a research publication.