From 89268e38791c567676ab58527606cafa2282a528 Mon Sep 17 00:00:00 2001 From: Maxime Chaillet Date: Wed, 7 Nov 2018 13:31:45 +0100 Subject: [PATCH] redirect dois corresponding to datacollection to E-DataPortal. It fixes icat/doi-landing-page#58. --- www/min/precompiled.templates.min.js | 2 +- www/templates/landingpage_tpl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/min/precompiled.templates.min.js b/www/min/precompiled.templates.min.js index d04c724..c1db711 100644 --- a/www/min/precompiled.templates.min.js +++ b/www/min/precompiled.templates.min.js @@ -2,6 +2,6 @@ (function(dust){dust.register("doinotfound_tpl",body_0);function body_0(chk,ctx){return chk.w("

").f(ctx.get(["message"], false),ctx,"h",["s"]).w("

");}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("
").x(ctx.get(["data"], false),ctx,{"else":body_1,"block":body_2},{});}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.w("

There is currently no experimental report.

");}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(" ");}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w("

One report has been found for this proposal.

");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w("

In total, ").f(ctx.getPath(false, ["data","length"]),ctx,"h").w(" reports have been found for this proposal:

").s(ctx.get(["data"], false),ctx,{"block":body_5},{}).w("
");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.w(" ").h("sep",ctx,{"block":body_6},{},"h").h("last",ctx,{"block":body_7},{},"h");}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.w("
");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w("
");}body_7.__dustBody=!0;return body_0}(dust)); -(function(dust){dust.register("landingpage_tpl",body_0);function body_0(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","title"]),ctx,"h").w("
").s(ctx.getPath(false, ["data","creator"]),ctx,{"block":body_1},{}).w("



").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("

").h("eq",ctx,{"else":body_8,"block":body_9},{"key":ctx.getPath(false, ["data","resourceType"]),"value":ctx.getPath(false, ["constants","ES_RESOURCE_TYPE"])},"h").w("

Below is the recommended format for citing this work in a research publication.

").f(ctx.getPath(false, ["data","citation"]),ctx,"h",["s"]).w("
");}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.h("sep",ctx,{"block":body_2},{},"h").h("last",ctx,{"block":body_5},{},"h");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_3,"block":body_4},{});}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(" ; ");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(" ; ");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_6,"block":body_7},{});}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(". ");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(". ");}body_7.__dustBody=!0;function body_8(chk,ctx){return chk.w("
");}body_8.__dustBody=!0;function body_9(chk,ctx){return chk.w("");}body_9.__dustBody=!0;return body_0}(dust)); +(function(dust){dust.register("landingpage_tpl",body_0);function body_0(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","title"]),ctx,"h").w("
").s(ctx.getPath(false, ["data","creator"]),ctx,{"block":body_1},{}).w("



").f(ctx.getPath(false, ["data","accessMessage"]),ctx,"h",["s"]).w("

").h("eq",ctx,{"else":body_8,"block":body_9},{"key":ctx.getPath(false, ["data","resourceType"]),"value":ctx.getPath(false, ["constants","ES_RESOURCE_TYPE"])},"h").w("

Below is the recommended format for citing this work in a research publication.

").f(ctx.getPath(false, ["data","citation"]),ctx,"h",["s"]).w("
");}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.h("sep",ctx,{"block":body_2},{},"h").h("last",ctx,{"block":body_5},{},"h");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_3,"block":body_4},{});}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(" ; ");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(" ; ");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.x(ctx.getPath(true, ["givenName"]),ctx,{"else":body_6,"block":body_7},{});}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["name"]),ctx,"h").w(". ");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w(" ").f(ctx.getPath(true, ["givenName"]),ctx,"h").w(" ").f(ctx.getPath(true, ["familyName"]),ctx,"h").w(". ");}body_7.__dustBody=!0;function body_8(chk,ctx){return chk.w("
");}body_8.__dustBody=!0;function body_9(chk,ctx){return chk.w("");}body_9.__dustBody=!0;return body_0}(dust)); (function(dust){dust.register("metadata_tpl",body_0);function body_0(chk,ctx){return chk.h("eq",ctx,{"block":body_1},{"key":ctx.getPath(false, ["data","resourceType"]),"value":ctx.getPath(false, ["constants","ES_RESOURCE_TYPE"])},"h").h("eq",ctx,{"block":body_17},{"key":ctx.getPath(false, ["data","resourceType"]),"value":ctx.getPath(false, ["constants","DC_RESOURCE_TYPE"])},"h").w(" ");}body_0.__dustBody=!0;function body_1(chk,ctx){return chk.w("
").x(ctx.getPath(false, ["data","mergedProposalBeamlines"]),ctx,{"block":body_2},{}).w("

").h("abstract",ctx,{"block":body_16},{"abstract":ctx.getPath(false, ["data","abstract"])},"h").w("
");}body_1.__dustBody=!0;function body_2(chk,ctx){return chk.x(ctx.getPath(false, ["data","mergedProposalBeamlines","0"]),ctx,{"block":body_3},{});}body_2.__dustBody=!0;function body_3(chk,ctx){return chk.w("
").x(ctx.getPath(false, ["data","mergedProposalBeamlines","0","proposal"]),ctx,{"else":body_4,"block":body_5},{}).w("
").x(ctx.getPath(false, ["data","mintingYear"]),ctx,{"else":body_6,"block":body_7},{}).w("
").x(ctx.getPath(false, ["data","mergedProposalBeamlines","0","beamline"]),ctx,{"else":body_8,"block":body_9},{}).w("
").x(ctx.getPath(false, ["data","sessionDate"]),ctx,{"else":body_12,"block":body_13},{}).w("
").x(ctx.getPath(false, ["data","proposalType"]),ctx,{"else":body_14,"block":body_15},{}).w("
");}body_3.__dustBody=!0;function body_4(chk,ctx){return chk.w("
Not available
");}body_4.__dustBody=!0;function body_5(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","mergedProposalBeamlines","0","proposal"]),ctx,"h").w("
");}body_5.__dustBody=!0;function body_6(chk,ctx){return chk.w("
Not available
");}body_6.__dustBody=!0;function body_7(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","mintingYear"]),ctx,"h").w("
");}body_7.__dustBody=!0;function body_8(chk,ctx){return chk.w("
Not available
");}body_8.__dustBody=!0;function body_9(chk,ctx){return chk.h("eq",ctx,{"else":body_10,"block":body_11},{"key":ctx.getPath(false, ["data","mergedProposalBeamlines","0","beamlineUrl"]),"value":"noLink"},"h");}body_9.__dustBody=!0;function body_10(chk,ctx){return chk.w("");}body_10.__dustBody=!0;function body_11(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","mergedProposalBeamlines","0","beamline"]),ctx,"h").w("
");}body_11.__dustBody=!0;function body_12(chk,ctx){return chk.w("
Not available
");}body_12.__dustBody=!0;function body_13(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","sessionDate"]),ctx,"h").w("
");}body_13.__dustBody=!0;function body_14(chk,ctx){return chk.w("
Not available
");}body_14.__dustBody=!0;function body_15(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","proposalType"]),ctx,"h").w("
");}body_15.__dustBody=!0;function body_16(chk,ctx){return chk.w(" ");}body_16.__dustBody=!0;function body_17(chk,ctx){return chk.w("
").h("abstract",ctx,{"block":body_18},{"abstract":ctx.getPath(false, ["data","abstract"])},"h").w("
").h("proposalBeamlineTable",ctx,{"block":body_19},{"mergedProposalBeamlines":ctx.getPath(false, ["data","mergedProposalBeamlines"])},"h").w("
").x(ctx.getPath(false, ["data","mintingYear"]),ctx,{"else":body_20,"block":body_21},{}).w("
");}body_17.__dustBody=!0;function body_18(chk,ctx){return chk.w(" ");}body_18.__dustBody=!0;function body_19(chk,ctx){return chk.w(" ");}body_19.__dustBody=!0;function body_20(chk,ctx){return chk.w("
Not available
");}body_20.__dustBody=!0;function body_21(chk,ctx){return chk.w("
").f(ctx.getPath(false, ["data","mintingYear"]),ctx,"h").w("
");}body_21.__dustBody=!0;return body_0}(dust)); (function(dust){dust.register("welcome_tpl",body_0);function body_0(chk,ctx){return chk.w("
ESRF DOI Portal

About the portal

This page centralizes the DOI services offered by the ESRF to access data stored at the facility as part of its data policy. Data referred to by ESRF DOIs are accessed via the ESRF data catalogue icat.esrf.fr.

In case you require a DOI for a subset of data please send an email with the following high level metadata - \"proposal\", \"title\", \"authors\", \"abstract\", \"datasets\" to datapolicy@esrf.fr

DOI resolver

The search engine below only searches DOIs which have been minted at the ESRF.
Use doi.org search engine for other DOIs.

About DOI

The Digital Object Identifier (DOI) is a code composed of digits and characters. It identifies data in a unique and permanent way thereby allowing data to be referenced worldwide. The DOI has two parts, namely the DOI prefix and the DOI suffix separated by a slash (\"/\"). The ESRF prefix is 10.15151 followed by a slash and the ESRF suffix. Currently the following suffix(es) are defined:

ESRF-ES - for a session at the ESRF 
Refer to the DOI concepts page to find out what a session is.
");}body_0.__dustBody=!0;return body_0}(dust)); \ No newline at end of file diff --git a/www/templates/landingpage_tpl.js b/www/templates/landingpage_tpl.js index a90f854..7dec2ba 100644 --- a/www/templates/landingpage_tpl.js +++ b/www/templates/landingpage_tpl.js @@ -86,7 +86,7 @@ {@eq key=data.resourceType value=constants.ES_RESOURCE_TYPE} {:else} - + {/eq}
-- 2.22.2