functionAuthor(){}functionCitation(e){this.isBuildable=!!(e&&e.creator&&0!==e.creator.length&&e.date_registered&&e.title&&e.publisher&&e.doi)}functionDOIController(e){vart=this;this.doiServer="https://data.datacite.org/",this.acceptedPrefix=["10.5072","10.15151"],this.view=e,this.experimentalReportController=newExperimentalReportController,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()})}functionDoiData(e,t,r,a,n,i){this.title=e,this.doi=t,this.dataciteLink=r,this.publisher=a,this.creator=n,this.publiclyAccessibleYear=i}functionDOIView(){this.mainPanelId="main",this.reportPanelId="expReport",this.badgePanelId="badges",this.metadataDivId="metadata",this.reportExperimentFileNames=null,this.failedRecievingExpReport=!1,this.isDOIAlreadyRendered=!1,this.onDOIRendered=newEvent(this)}functionEvent(e){this._sender=e,this._listeners=[]}functionExperimentalReportController(){this.server="https://wwws.esrf.fr/misapps/SMISServer/rest/reports/fileNames",this.timeout=5e3,this.onSuccess=newEvent(this),this.onError=newEvent(this)}functionJsonExtractor(e){}functionproposalBeamlineTable(e,t,r,a){varn=a.mergedProposalBeamlines;if(e.write('<table class="table table-striped">'),e.write("<thead>"),e.write("<tr>"),e.write('<th scope="col">Proposals</th>'),e.write('<th scope="col">Beamlines</th>'),e.write("</tr>"),e.write("</thead>"),e.write("<tbody>"),n){for(vari=0;i<n.length;i++)if(n[i]){varo=n[i].proposal||"unknown",s=n[i].beamline||"unknown",l=n[i].beamlineUrl;e.write("<tr>"),e.write("<td>"+o+"</td>"),"noLink"===l?e.write("<td>"+s+"</td>"):e.write('<td> <a href="'+l+'" target="_blank">'+s+" </a> </td>"),e.write("</tr>")}elsee.write("<tr>"),chunck.write("<td> unknown </td>"),chunck.write("<td> unknown </td>"),e.write("</tr>");returne.write("</tbody>"),e.write("</table>"),e.render(r.block,t)}}functionabstract(e,t,r,a){varn=a.abstract;returne.write('<div class="myBorder-left">'),e.write("<label> Abstract </label>"),e.write('<div class="padding-left-15">'),n?e.write(n):e.write("There is no abstract for this session."),e.write("</div >"),e.write("</div >"),e.render(r.block,t)}Author.prototype.setFirstName=function(e){this.firstName=e},Author.prototype.setFamilyName=function(e){this.familyName=e},Author.prototype.setSingleName=function(e){this.singleName=e},Author.prototype.getRawFamilyName=function(){if(this.familyName)returnthis.familyName;if(this.singleName){vare=newRegExp(/(\S+)/g),t=this.singleName.match(e);if(2===t.length)returnthis.familyName=t[1],this.familyName;varr=newRegExp(/\s([^a-z]+$)/).exec(this.singleName);returnr&&(this.familyName=r[1]),this.familyName}},Author.prototype.getRawFirstName=function(){if(this.firstName)returnthis.firstName;if(this.singleName){vare=newRegExp(/(\S+)/g),t=this.singleName.match(e);if(2===t.length)returnthis.firstName=t[0],this.firstName;varr=newRegExp(/^(.[^A-Z]+)+\b/).exec(this.singleName);returnr&&(this.firstName=r[0]),r}},Author.prototype.getTitleCaseFamilyName=function(){if(this.familyName){allLowerCase=this.familyName.toLowerCase();vare=newRegExp(/^./);returnallLowerCase.replace(e,function(e){returne.toUpperCase()})}returnconsole.log("family name is undefined"),null},Author.prototype.getFirstNameInitials=function(){vare=newRegExp(/(\S+)/g);returnthis.firstName?this.firstName.replace(e,function(e){returne.charAt(0)+"."}):(console.log("first name is undefined"),null)};varBEAMLINEURL=[{name:"BM05",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/BM05"},{name:"BM29",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/BM29"},{name:"CM01",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/CM01.html"},{name:"ID01",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID01"},{name:"ID06",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MEx/id06-large-volume-press.html"},{name:"ID11",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/StructMaterials/ID11"},{name:"ID16A",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16A"},{name:"ID16B",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16B"},{name:"ID17",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/CBS/ID17"},{name:"ID19",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/home/UsersAndScience/Experiments/StructMaterials/ID19.html"},{name:"ID21",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID21"},{name:"ID22",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/id22"},{name:"ID23-1",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-1"},{name:"ID23-2",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-2"},{name:"ID29",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/Beamlines/content/content/id29.html"},{name:"ID30A1",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/MASSIF1"},{name:"ID30A3",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/id30a-3--massif-3.html"},{name:"ID30B",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/id30b"},{name:"ID32",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/ID32"}];Citation.prototype.getAuthorsForCitation=function(e){if(this.isBuildable){vart=_.transform(e,function(e,t,r,a){ainstanceofArray||(t=a);varn=null;if(t.givenName?((n=newAuthor).setFamilyName(t.familyName),n.setFirstName(t.givenName),e.push(n.getTitleCaseFamilyName()+""+n.getFirstNameInitials())):((n=newAuthor).setSingleName(t.name),n.getRawFamilyName()&&n.getRawFirstName()?e.push(n.getTitleCaseFamilyName()+""+n.getFirstNameInitials()):e.push(t.name)),!(ainstanceofArray))return!1},[]);return_.join(t,", ")}returnconsole.log("the author list for the citation could not be generated."),""};varCONSTANTS={ES_RESOURCE_TYPE:"experimental session resource type",DC_RESOURCE_TYPE:"dataset collection resource type"};DOIController.prototype.isValidDOIData=function(e){return!0},DOIController.prototype.render=function(e,t){if(this.isValidDOIData(t)){varr=newDoiData(t.title,t.doi.toUpperCase(),this.doiServer+e,t.publisher,t.creator,t.publication_year),a=newJsonExtractor;r.abstract=a.getAbstract(t),r.investigationId=a.getInvestigationId(t),r.mintingYear=a.getMintingYear(t),r.proposalType=a.getFieldFromSubject(t.subject,"Proposal Type Description"),r.resourceType=a.getResourceType(t),r.resourceTypeGeneral=a.getResourceTypeGeneral(t),r.sessionDate=a.getSessionDate(t);varn=a.getFieldFromSubject(t.subject,"Proposal"),i=a.getFieldFromSubject(t.subject,"Instrument");this.experimentalReportController.requestFilenameList(n[0]),r.accessibility=r.getAccessibilityStatus(r.resourceType,r.sessionDate,r.publiclyAccessibleYear),r.accessMessage=this.view.setDataAccessMessage(r),r.citation=this.createCitation(t),r.resourceType===CONSTANTS.ES_RESOURCE_TYPE&&(r.beamlineUrls=this.getBeamlineUrl(i,t.date_collected,r.resourceType)),r.resourceType===CONSTANTS.DC_RESOURCE_TYPE&&(r.beamlineUrls=this.getBeamlineUrl(i,t.publication_year,r.resourceType)),r.mergedProposalBeamlines=a.getMergedProposalAndBeamline(n,i,r.beamlineUrls),this.view.renderDOIData(r)}elsethis.view.renderError("Not Found",this.origin)},DOIController.prototype.getData=function(e){vart=this;this.view.setDOIInTopBanner(e),"10.15151/ESRF-DC-142893590"!=e.toUpperCase()?"10.15151/ESRF-DC-142915526"!=e.toUpperCase()?this.hasAcceptedPrefix(e)?$.ajax({headers:{Accept:"application/vnd.datacite.datacite+json"},type:"GET",timeout:15e3,url:this.doiServer+e,beforeSend:function(){t.view.setLoading("Retrieving data from Server")},complete:function(){t.view.setLoading(!1)}}).done(function(r){r&&t.render(e,r)}).fail(function(e,r,a){t.view.renderError(e,a,t.origin),t.view.setLoading(!1)}):t.view.renderError("Bad Prefix",t.origin):this.render(e,ESRF_DC_142915526):this.render(e,ESRF_DC_142893590)},DOIController.prototype.hasAcceptedPrefix=function(e){vart=e.split("/")[0];return-1!=_.findIndex(this.acceptedPrefix,function(e){returnt==e})},DOIController.prototype.displayMainContent=function(e){"welcome-page"===this.origin&&dust.render("welcome_tpl",{},function(e,t){$("#main").html(t)}),"index"===this.origin&&this.getData(e)},DOIController.prototype.setOrigin=function(e){this.origin=e},DOIController.prototype.getBeamlineUrl=function(e,t,r){vara=[];returne.forEach(function(e){if(t){r===CONSTANTS.ES_RESOURCE_TYPE&&(t=moment(t)),r===CONSTANTS.DC_RESOURCE_TYPE&&(t=moment(t,"YYYY"));for(varn="",i=0;i<BEAMLINEURL.length;i++){varo=moment(BEAMLINEURL[i].startDate),s=moment(BEAMLINEURL[i].endDate);if(BEAMLINEURL[i].name.toLowerCase()===e.toLowerCase()&&t>=o&&t<=s){n=BEAMLINEURL[i].url;break}}""===n?a.push("noLink"):a.push(n)}elsea.push("noLink")}),a},DOIController.prototype.createCitation=function(e){vart=newCitation(e);if(t.isBuildable){returnt.getAuthorsForCitation(e.creator)+" ("+moment(e.date_registered).year()+"). "+e.title+". "+e.publisher+" (ESRF). <a href='https://doi.esrf.fr/"+e.doi+"'> doi:"+e.doi.toUpperCase()+"</a>"}return"The citation could not be generated."},DoiData.prototype.getAccessibilityStatus=function(e,t,r){if(e)if(e===CONSTANTS.ES_RESOURCE_TYPE){if(r&&t){vara=moment(r,"YYYY"),n=moment();if(n>a)return"Open access";if(n<=a)return"Restricted access"}}elseif(e===CONSTANTS.DC_RESOURCE_TYPE)return"Open access";returnconsole.log("Failed to determine whether the accessibility of the DOI."),"Accessibility status could not be determined"},DOIView.prototype.setLoading=function(e){0!=e?$("body").addClass("loading"):$("body").removeClass("loading")},DOIView.prototype.setDOIInTopBanner=function(e){$("#doiValue").text("DOI > "+e.toUpperCase())},DOIView.prototype.renderExperimentalReportData=function(e){if(e){vart=this;this.isDOIAlreadyRendered?dust.render("experimentalreport_tpl",{data:e},function(e,r){$("#"+t.reportPanelId).html(r)}):this.reportExperimentFileNames=e}},DOIView.prototype.renderDOIData=function(e){vart=this;dust.render("landingpage_tpl",{data:e,constants:CONSTANTS},function(r,a){$("#"+t.mainPanelId).html(a),t.isDOIAlreadyRendered=!0,t.renderBadges(e),t.renderMetadata(e),t.failedRecievingExpReport?t.renderErrorForExperimentalReport():t.reportExperimentFileNames&&t.renderExperimentalReportData(t.reportExperimentFileNames)})},DOIView.prototype.renderError=function(e,t,r){vara="welcome-page"===r?"doinotfound2_tpl":"doinotfound_tpl",n="";n="Bad Prefix"===t?"welcome-page"===r?'<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>':'<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>':"Not Found"===t?"welcome-page"===r?"<h3> Not found ! </h3> <p> Sorry, the requested DOI was not found. </p>":"<h2> Not found ! </h2> <p> Sorry, the requested DOI was not found. </p>":"timeout"===t?"welcome-page"===r?"<h3> Not found ! </h3> <p> Sorry, the server took too long to reply. Try again later. </p>":"<h2> Not found ! </h2> <p> Sorry, the server took too long to reply. Try again later. </p>":""===t&&"The resource you are looking for doesn't exist."===e.responseText?"welcome-page"===r?"<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>":"<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>":"welcome-page"===r?"<h3> Not found ! </h3> <p> Connexion problem to the datacite server. Please try again later.</p>":"<h2> Not found ! </h2> <p> Connexion problem to the datacite server. Please try again later.</p>",dust.render(a,{message:n},function(e,t){$("#error").html(t)})},DOIView.prototype.renderErrorForExperimentalReport=function(){this.failedRecievingExpReport=!0;$("#"+this.reportPanelId).html('<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>')},DOIView.prototype.renderBadges=function(e){if(e){vart=this;dust.render("badges_tpl",{data:e,constants:CONSTANTS},function(e,r){$("#"+t.badgePanelId).html(r)})}},DOIView.prototype.renderMetadata=function(e){if(e){vart=this;dust.render("metadata_tpl",{data:e,constants:CONSTANTS},function(e,r){$("#"+t.metadataDivId).html(r)})}},DOIView.prototype.setDataAccessMessage=function(e){return"Open access"===e.accessibility?"The data can be accessed by clicking on the link below":"Restricted access"===e.accessibility?"The data are under embargo until <b>"+e.publiclyAccessibleYear+"</b> but could be released earlier. Currently, they are only accessible to proposal team members.":void0};varESRF_DC_142893590={id:"https://doi.org/10.15151/ESRF-DC-142893590",doi:"10.15151/ESRF-DC-142893590",creator:[{type:"Person",name:"Naschberger, Andreas",givenName:"Andreas",familyName:"Naschberger"},{type:"Person",name:"Bowler, Matthew W.",givenName:"Matthew W.",familyName:"Bowler"},{type:"Person",name:"Rupp, Bernhard",givenName:"Bernhard",familyName:"Rupp"}],title:"Structural Evidence for a Role of the Multi-functional Human Glycoprotein Afamin in Wnt Transport",publisher:"European Synchrotron Radiation Facility",resource_type_general:"Dataset",resource_type:"Datacollection",subject:[[{subject_scheme:"Proposal",text:"OPID-30A1"},{subject_scheme:"instrument",text:"ID30A1"}]],description:{type:"Abstract",text:"Afamin, a human plasma glycoprotein and putative transporter of hydrophobic molecules, has been shown to act as extracellular chaperone for poorly soluble, acylated Wnt proteins, forming a stable, soluble complex with functioning Wnt proteins. The 2.1-Å crystal structure of glycosylated human afamin reveals an almost exclusively hydrophobic binding cleft capable of harboring large hydrophobic moieties. Lipid analysis confirms the presence of lipids, and density in the primary binding pocket of afamin was modeled as palmitoleic acid, presenting the native O-acylation on serine 209 in human Wnt3a. The modeled complex between the experimental afamin structure and a Wnt3a homology model based on the XWnt8-Fz8-CRD fragment complex crystal structure is compelling, with favorable interactions comparable with the crystal structure complex. Afamin readily accommodates the conserved palmitoylated serine 209 of Wnt3a, providing a structural basis how afamin solubilizes hydrophobic and poorly soluble Wnt proteins."},date_collected:"2018-03-07",date_published:"2018",date_registered:"2018-03-07T14:37:09Z",date_updated:"2018-03-08T16:30:22Z",publication_year:2018,language:"eng",schemaVersion:"http://datacite.org/schema/kernel-3",provider_id:"INIST",client_id:"INIST.ESRF"},ESRF_DC_142915526={id:"https://doi.org/10.15151/esrf-dc-142915526",doi:"10.15151/ESRF-DC-142915526",creator:[{type:"Person",name:"Naschberger, Andreas",givenName:"Andreas",familyName:"Naschberger"},{type:"Person",name:"Bowler, Matthew W.",givenName:"Matthew W.",familyName:"Bowler"},{type:"Person",name:"Rupp, Bernhard",givenName:"Bernhard",familyName:"Rupp"}],title:"Controlled dehydration, structural flexibility, and Gadolinium MRI contrast compound binding in human plasma glycoprotein afamin",publisher:"European Synchrotron Radiation Facility",resource_type_general:"Dataset",resource_type:"Datacollection",subject:[[{subject_scheme:"Proposal",text:"OPID-30A1"},{subject_scheme:"instrument",text:"ID30A1"}]],description:{type:"Abstract",text:"Afamin, a human blood plasma glycoprotein, a putative multi-functional transporter of hydrophobic molecules and a marker for metabolic syndrome, poses multiple challenges for crystallographic structure determination, both practically and in analysis of the models. Several hundred crystals were analysed, and unusual variability in cell volume and difficulty solving the structure despite a ~34% sequence identity with non-glycosylated human serum albumin indicated that the molecule exhibits variable and context-sensitive packing, despite greatly simplified glycosylation in insect cell expressed recombinant afamin. Controlled dehydration of the crystals was able to stabilise the orthorhombic crystal form reducing the number of molecules in the asymmetric unit from the monoclinic form and changing the conformational states of the protein. An iterative strategy using fully automatic experiments available on MASSIF-1 was used to quickly determine the optimal protocol to achieve the phase transition that should be readily applicable to many types of sample. The study also highlights the drawback of using a single crystallographic structure model for computation modelling purposes given that conformational state of the binding sites and electron density in the binding site, likely resulting from PEGs, greatly varies between models. This also holds for the analysis of unspecific low-affinity ligands, where often a variety fragments with similar uncertainty can be modelled, inviting interpretative bias. As a promiscuous transporter, afamin can also bind Gadoteridol, a magnetic resonance imaging contrast compound in two sites, one near the human albumin Sudlow-site and a second hitherto unknown binding site."},date_collected:"2018-03-07",date_published:"2018",date_registered:"2018-03-07T14:37:09Z",date_updated:"2018-03-08T16:30:22Z",publication_year:2018,language:"eng",schemaVersion:"http://datacite.org/schema/kernel-3",provider_id:"INIST",client_id:"INIST.ESRF"};Event.prototype={attach:function(e){this._listeners.push(e)},notify:function(e){for(vart=0;t<this._listeners.length;t++)this._listeners[t](this._sender,e)}},ExperimentalReportController.prototype.requestFilenameList=function(e){vart=this;if(e){varr=newRegExp(/^(.*)-(.*)/),a=r.exec(e)[1],n=r.exec(e)[2];a&&n&&$.ajax({type:"GET",timeout:this.timeout,url:this.server,data:{categoryCode:a,categoryCounter:n},dataType:"json",success:function(e){t.onSuccess.notify(e)},error:function(e){t.onError.notify(e)}})}elset.onError.notify("Proposal is null")},ExperimentalReportController.prototype.openFileInNewTab=function(e){if(e)try{window.open("ftp://www.esrf.eu/pub/UserReports/"+e,"_blank")}catch(t){alert("The requested file "+e+" could not be downloaded.")}},JsonExtractor.prototype.getInvestigationId=function(e){vart=RegExp(/\/\w*-*[Ee][Ss][Rr][Ff]-[Ee][Ss]-(\d+)$/);returnt.exec(e.doi)?t.exec(e.doi)[1]:null},JsonExtractor.prototype.getFieldFromSubject=function(e,t){if(e&&e[0])for(varr=newRegExp("^"+t+"$","i"),a=0;a<e[0].length;a++)if(r.test(e[0][a].subject_scheme)&&e[0][a].text)return_.split(e[0][a].text,",");returnnull},JsonExtractor.prototype.getMintingYear=function(e){returne&&e.date_registered&&null!=e.date_registered?moment(e.date_registered).year():null},JsonExtractor.prototype.getSessionDate=function(e){returne&&e.date_collected&&null!=e.date_collected?moment(e.date_collected).format("YYYY-M-D"):null},JsonExtractor.prototype.getResourceTypeGeneral=function(e){returne&&e.resource_type_general?e.resource_type_general:null},JsonExtractor.prototype.getResourceType=function(e){if(e&&e.resource_type){if("Experiment Session"===e.resource_type)returnCONSTANTS.ES_RESOURCE_TYPE;if("Datacollection"===e.resource_type)returnCONSTANTS.DC_RESOURCE_TYPE}returnnull},JsonExtractor.prototype.getAbstract=function(e){if(e&&e.description){vart=e.description;if(t.type&&"Abstract"===t.type)returnt.text}returnnull},JsonExtractor.prototype.getMergedProposalAndBeamline=function(e,t,r){if(e&&t&&r&&e.length===t.length&&e.length===r.length){for(vara=[],n=0;n<e.length;n++)a.push({proposal:e[n],beamline:t[n],beamlineUrl:r[n]});return_.uniqBy(a,function(e){returnJSON.stringify(e)})}returnnull},dust.helpers.proposalBeamlineTable=proposalBeamlineTable,dust.helpers.abstract=abstract;
\ No newline at end of file
functionAuthor(){}functionCitation(e){this.isBuildable=function(){if(e&&e.creators&&0!==e.creators.length&&e.title&&e.publisher&&e.doi){if(e.resourceType===CONSTANTS.ES_RESOURCE_TYPE&&e.sessionDate)return!0;if(e.resourceType===CONSTANTS.DC_RESOURCE_TYPE&&e.publiclyAccessibleYear)return!0}return!1}()}functionDOIController(e){vart=this;this.doiServer="https://data.datacite.org/",this.acceptedPrefix=["10.5072","10.15151"],this.view=e,this.experimentalReportController=newExperimentalReportController,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()})}functionDoiData(e,t,r,i,n){this.doi=e,this.dataciteLink=t,this.publisher=r,this.creator=i,this.publiclyAccessibleYear=n}functionDOIView(){this.mainPanelId="main",this.reportPanelId="expReport",this.badgePanelId="badges",this.metadataDivId="metadata",this.reportExperimentFileNames=null,this.failedRecievingExpReport=!1,this.isDOIAlreadyRendered=!1,this.onDOIRendered=newEvent(this)}functionEvent(e){this._sender=e,this._listeners=[]}functionExperimentalReportController(){this.server="https://wwws.esrf.fr/misapps/SMISServer/rest/reports/fileNames",this.timeout=5e3,this.onSuccess=newEvent(this),this.onError=newEvent(this)}functionJsonExtractor(){}functionproposalBeamlineTable(e,t,r,i){varn=i.mergedProposalBeamlines;if(e.write('<table class="table table-striped">'),e.write("<thead>"),e.write("<tr>"),e.write('<th scope="col">Proposals</th>'),e.write('<th scope="col">Beamlines</th>'),e.write("</tr>"),e.write("</thead>"),e.write("<tbody>"),n){for(vara=0;a<n.length;a++)if(n[a]){varo=n[a].proposal||"unknown",s=n[a].beamline||"unknown",l=n[a].beamlineUrl;e.write("<tr>"),e.write("<td>"+o+"</td>"),"noLink"===l?e.write("<td>"+s+"</td>"):e.write('<td> <a href="'+l+'" target="_blank">'+s+" </a> </td>"),e.write("</tr>")}elsee.write("<tr>"),chunck.write("<td> unknown </td>"),chunck.write("<td> unknown </td>"),e.write("</tr>");returne.write("</tbody>"),e.write("</table>"),e.render(r.block,t)}}functionabstract(e,t,r,i){varn=i.abstract;returne.write('<div class="myBorder-left">'),e.write("<label> Abstract </label>"),e.write('<div class="padding-left-15">'),n?e.write(n):e.write("There is no abstract for this session."),e.write("</div >"),e.write("</div >"),e.render(r.block,t)}Author.prototype.setFirstName=function(e){this.firstName=e},Author.prototype.setFamilyName=function(e){this.familyName=e},Author.prototype.setSingleName=function(e){this.singleName=e},Author.prototype.getRawFamilyName=function(){if(this.familyName)returnthis.familyName;if(this.singleName){vare=newRegExp(/(\S+)/g),t=this.singleName.match(e);if(2===t.length)returnthis.familyName=t[1],this.familyName;varr=newRegExp(/\s([^a-z]+$)/).exec(this.singleName);returnr&&(this.familyName=r[1]),this.familyName}},Author.prototype.getRawFirstName=function(){if(this.firstName)returnthis.firstName;if(this.singleName){vare=newRegExp(/(\S+)/g),t=this.singleName.match(e);if(2===t.length)returnthis.firstName=t[0],this.firstName;varr=newRegExp(/^(.[^A-Z]+)+\b/).exec(this.singleName);returnr&&(this.firstName=r[0]),r}},Author.prototype.getTitleCaseFamilyName=function(){if(this.familyName){allLowerCase=this.familyName.toLowerCase();vare=newRegExp(/^./);returnallLowerCase.replace(e,function(e){returne.toUpperCase()})}returnconsole.log("family name is undefined"),null},Author.prototype.getFirstNameInitials=function(){vare=newRegExp(/(\S+)/g);returnthis.firstName?this.firstName.replace(e,function(e){returne.charAt(0)+"."}):(console.log("first name is undefined"),null)};varBEAMLINEURL=[{name:"BM05",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/BM05"},{name:"BM29",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/BM29"},{name:"CM01",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/CM01.html"},{name:"ID01",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID01"},{name:"ID06",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MEx/id06-large-volume-press.html"},{name:"ID11",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/StructMaterials/ID11"},{name:"ID16A",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16A"},{name:"ID16B",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/XNP/ID16B"},{name:"ID17",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/UsersAndScience/Experiments/CBS/ID17"},{name:"ID19",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.fr/home/UsersAndScience/Experiments/StructMaterials/ID19.html"},{name:"ID21",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/XNP/ID21"},{name:"ID22",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/id22"},{name:"ID23-1",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-1"},{name:"ID23-2",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/UsersAndScience/Experiments/MX/About_our_beamlines/ID23-2"},{name:"ID29",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/Beamlines/content/content/id29.html"},{name:"ID30A1",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/MASSIF1"},{name:"ID30A3",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/home/UsersAndScience/Experiments/MX/About_our_beamlines/id30a-3--massif-3.html"},{name:"ID30B",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/id30b"},{name:"ID32",startDate:"2000-01-01T00:00+00:00",endDate:"2100-12-31T00:00+00:00",url:"http://www.esrf.eu/ID32"}];Citation.prototype.getAuthorsForCitation=function(e){if(this.isBuildable){vart=_.transform(e,function(e,t,r,i){iinstanceofArray||(t=i);varn=null;if(t.givenName?((n=newAuthor).setFamilyName(t.familyName),n.setFirstName(t.givenName),e.push(n.getTitleCaseFamilyName()+""+n.getFirstNameInitials())):((n=newAuthor).setSingleName(t.name),n.getRawFamilyName()&&n.getRawFirstName()?e.push(n.getTitleCaseFamilyName()+""+n.getFirstNameInitials()):e.push(t.name)),!(iinstanceofArray))return!1},[]);return_.join(t,", ")}returnconsole.log("[CITATION GENERATION] Author list for the citation could not be generated."),""},Citation.prototype.getDOIRegistrationYear=function(e){returne.resourceType===CONSTANTS.ES_RESOURCE_TYPE?moment(e.sessionDate).year():e.resourceType===CONSTANTS.DC_RESOURCE_TYPE?e.publiclyAccessibleYear:(console.log("[CITATION GENERATION] Could not get the year to generate the citation."),"")};varCONSTANTS={ES_RESOURCE_TYPE:"experimental session resource type",DC_RESOURCE_TYPE:"dataset collection resource type"};DOIController.prototype.isValidDOIData=function(e){return!0},DOIController.prototype.render=function(e,t){if(this.isValidDOIData(t)){varr=newDoiData,i=newJsonExtractor;r.title=i.getTitle(t),r.doi=i.getDOI(t),r.dataciteLink=this.doiServer+e,r.publisher=i.getPublisher(t),r.creators=i.getCreators(t),r.publiclyAccessibleYear=i.getPubliclyAccessibleYear(t),r.abstract=i.getAbstract(t),r.investigationId=i.getInvestigationId(t),r.proposalType=i.getFieldFromSubject(t.subjects,"Proposal Type Description"),r.resourceType=i.getResourceType(t),r.resourceTypeGeneral=i.getResourceTypeGeneral(t),r.sessionDate=i.getSessionDate(t);varn=i.getFieldFromSubject(t.subjects,"Proposal");i.getFieldFromSubject(t.subjects,"Instrument");this.experimentalReportController.requestFilenameList(n[0]),r.accessibility=r.getAccessibilityStatus(r.resourceType,r.sessionDate,r.publiclyAccessibleYear),r.accessMessage=this.view.setDataAccessMessage(r),r.citation=this.createCitation(r),this.view.renderDOIData(r)}elsethis.view.renderError("Not Found",this.origin)},DOIController.prototype.getData=function(e){vart=this;this.view.setDOIInTopBanner(e),"10.15151/ESRF-DC-142893590"!=e.toUpperCase()?"10.15151/ESRF-DC-142915526"!=e.toUpperCase()?this.hasAcceptedPrefix(e)?$.ajax({headers:{Accept:"application/vnd.datacite.datacite+json"},type:"GET",timeout:15e3,url:this.doiServer+e,beforeSend:function(){t.view.setLoading("Retrieving data from Server")},complete:function(){t.view.setLoading(!1)}}).done(function(r){r&&t.render(e,r)}).fail(function(e,r,i){t.view.renderError(e,i,t.origin),t.view.setLoading(!1)}):t.view.renderError("Bad Prefix",t.origin):this.render(e,ESRF_DC_142915526):this.render(e,ESRF_DC_142893590)},DOIController.prototype.hasAcceptedPrefix=function(e){vart=e.split("/")[0];return-1!=_.findIndex(this.acceptedPrefix,function(e){returnt==e})},DOIController.prototype.displayMainContent=function(e){"welcome-page"===this.origin&&dust.render("welcome_tpl",{},function(e,t){$("#main").html(t)}),"index"===this.origin&&this.getData(e)},DOIController.prototype.setOrigin=function(e){this.origin=e},DOIController.prototype.getBeamlineUrl=function(e,t,r){vari=[];returne.forEach(function(e){if(t){r===CONSTANTS.ES_RESOURCE_TYPE&&(t=moment(t)),r===CONSTANTS.DC_RESOURCE_TYPE&&(t=moment(t,"YYYY"));for(varn="",a=0;a<BEAMLINEURL.length;a++){varo=moment(BEAMLINEURL[a].startDate),s=moment(BEAMLINEURL[a].endDate);if(BEAMLINEURL[a].name.toLowerCase()===e.toLowerCase()&&t>=o&&t<=s){n=BEAMLINEURL[a].url;break}}""===n?i.push("noLink"):i.push(n)}elsei.push("noLink")}),i},DOIController.prototype.createCitation=function(e){vart=newCitation(e);if(t.isBuildable){returnt.getAuthorsForCitation(e.creators)+" ("+t.getDOIRegistrationYear(e)+"). "+e.title+". "+e.publisher+" (ESRF). <a href='https://doi.esrf.fr/"+e.doi+"'> doi:"+e.doi.toUpperCase()+"</a>"}return"The citation could not be generated."},DoiData.prototype.getAccessibilityStatus=function(e,t,r){if(e)if(e===CONSTANTS.ES_RESOURCE_TYPE){if(r&&t){vari=moment(r,"YYYY"),n=moment();if(n>i)return"Open access";if(n<=i)return"Restricted access"}}elseif(e===CONSTANTS.DC_RESOURCE_TYPE)return"Open access";returnconsole.log("Failed to determine whether the accessibility of the DOI."),"Accessibility status could not be determined"},DOIView.prototype.setLoading=function(e){0!=e?$("body").addClass("loading"):$("body").removeClass("loading")},DOIView.prototype.setDOIInTopBanner=function(e){$("#doiValue").text("DOI > "+e.toUpperCase())},DOIView.prototype.renderExperimentalReportData=function(e){if(e){vart=this;this.isDOIAlreadyRendered?dust.render("experimentalreport_tpl",{data:e},function(e,r){$("#"+t.reportPanelId).html(r)}):this.reportExperimentFileNames=e}},DOIView.prototype.renderDOIData=function(e){vart=this;console.log(e),dust.render("landingpage_tpl",{data:e,constants:CONSTANTS},function(r,i){$("#"+t.mainPanelId).html(i),t.isDOIAlreadyRendered=!0,t.renderBadges(e),t.renderMetadata(e),t.failedRecievingExpReport?t.renderErrorForExperimentalReport():t.reportExperimentFileNames&&t.renderExperimentalReportData(t.reportExperimentFileNames)})},DOIView.prototype.renderError=function(e,t,r){vari="welcome-page"===r?"doinotfound2_tpl":"doinotfound_tpl",n="";n="Bad Prefix"===t?"welcome-page"===r?'<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>':'<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>':"Not Found"===t?"welcome-page"===r?"<h3> Not found ! </h3> <p> Sorry, the requested DOI was not found. </p>":"<h2> Not found ! </h2> <p> Sorry, the requested DOI was not found. </p>":"timeout"===t?"welcome-page"===r?"<h3> Not found ! </h3> <p> Sorry, the server took too long to reply. Try again later. </p>":"<h2> Not found ! </h2> <p> Sorry, the server took too long to reply. Try again later. </p>":""===t&&"The resource you are looking for doesn't exist."===e.responseText?"welcome-page"===r?"<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>":"<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>":"welcome-page"===r?"<h3> Not found ! </h3> <p> Connexion problem to the datacite server. Please try again later.</p>":"<h2> Not found ! </h2> <p> Connexion problem to the datacite server. Please try again later.</p>",dust.render(i,{message:n},function(e,t){$("#error").html(t)})},DOIView.prototype.renderErrorForExperimentalReport=function(){this.failedRecievingExpReport=!0;$("#"+this.reportPanelId).html('<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>')},DOIView.prototype.renderBadges=function(e){if(e){vart=this;dust.render("badges_tpl",{data:e,constants:CONSTANTS},function(e,r){$("#"+t.badgePanelId).html(r)})}},DOIView.prototype.renderMetadata=function(e){if(e){vart=this;dust.render("metadata_tpl",{data:e,constants:CONSTANTS},function(e,r){$("#"+t.metadataDivId).html(r)})}},DOIView.prototype.setDataAccessMessage=function(e){return"Open access"===e.accessibility?"The data can be accessed by clicking on the link below":"Restricted access"===e.accessibility?"The data are under embargo until <b>"+e.publiclyAccessibleYear+"</b> but could be released earlier. Currently, they are only accessible to proposal team members.":void0};varESRF_DC_142893590={id:"https://doi.org/10.15151/esrf-dc-142893590",doi:"10.15151/ESRF-DC-142893590",url:"https://doi.esrf.fr/10.15151/ESRF-DC-142893590",types:{ris:"DATA",bibtex:"misc",citeproc:"dataset",schemaOrg:"Dataset",resourceType:"Datacollection",resourceTypeGeneral:"Dataset"},creators:[{name:"Naschberger, Andreas",nameType:"Personal",givenName:"Andreas",familyName:"Naschberger"},{name:"Bowler, Matthew W.",nameType:"Personal",givenName:"Matthew W.",familyName:"Bowler"},{name:"Rupp, Bernhard",nameType:"Personal",givenName:"Bernhard",familyName:"Rupp"}],titles:[{title:"Structural Evidence for a Role of the Multi-functional Human Glycoprotein Afamin in Wnt Transport"}],publisher:"European Synchrotron Radiation Facility",container:{},subjects:[{subject:"OPID-1",subjectScheme:"Proposal"},{subject:"ID30A1",subjectScheme:"Instrument"}],contributors:[],dates:[{date:"2018",dateType:"Issued"}],publicationYear:2018,language:"en",identifiers:[{identifier:"https://doi.org/10.15151/esrf-dc-142893590",identifierType:"DOI"}],sizes:[],formats:[],rightsList:[],descriptions:[{description:"Afamin, a human plasma glycoprotein and putative transporter of hydrophobic molecules, has been shown to act as extracellular chaperone for poorly soluble, acylated Wnt proteins, forming a stable, soluble complex with functioning Wnt proteins. The 2.1-Å crystal structure of glycosylated human afamin reveals an almost exclusively hydrophobic binding cleft capable of harboring large hydrophobic moieties. Lipid analysis confirms the presence of lipids, and density in the primary binding pocket of afamin was modeled as palmitoleic acid, presenting the native O-acylation on serine 209 in human Wnt3a. The modeled complex between the experimental afamin structure and a Wnt3a homology model based on the XWnt8-Fz8-CRD fragment complex crystal structure is compelling, with favorable interactions comparable with the crystal structure complex. Afamin readily accommodates the conserved palmitoylated serine 209 of Wnt3a, providing a structural basis how afamin solubilizes hydrophobic and poorly soluble Wnt proteins.",descriptionType:"Abstract"}],geoLocations:[],fundingReferences:[],relatedIdentifiers:[],schemaVersion:"http://datacite.org/schema/kernel-3",providerId:"inist",clientId:"inist.esrf",state:"findable"},ESRF_DC_142915526={id:"https://doi.org/10.15151/esrf-dc-142915526",doi:"10.15151/ESRF-DC-142915526",url:"https://doi.esrf.fr/10.15151/ESRF-DC-142915526",types:{ris:"DATA",bibtex:"misc",citeproc:"dataset",schemaOrg:"Dataset",resourceType:"Datacollection",resourceTypeGeneral:"Dataset"},creators:[{name:"Naschberger, Andreas",nameType:"Personal",givenName:"Andreas",familyName:"Naschberger"},{name:"Bowler, Matthew W.",nameType:"Personal",givenName:"Matthew W.",familyName:"Bowler"},{name:"Rupp, Bernhard",nameType:"Personal",givenName:"Bernhard",familyName:"Rupp"}],titles:[{title:"Controlled dehydration, structural flexibility, and Gadolinium MRI contrast compound binding in human plasma glycoprotein afamin"}],publisher:"European Synchrotron Radiation Facility",container:{},subjects:[{subject:"OPID-1",subjectScheme:"Proposal"},{subject:"ID30A1",subjectScheme:"Instrument"}],contributors:[],dates:[{date:"2018",dateType:"Issued"}],publicationYear:2018,language:"en",identifiers:[{identifier:"https://doi.org/10.15151/esrf-dc-142915526",identifierType:"DOI"}],sizes:[],formats:[],rightsList:[],descriptions:[{description:"Afamin, a human blood plasma glycoprotein, a putative multi-functional transporter of hydrophobic molecules and a marker for metabolic syndrome, poses multiple challenges for crystallographic structure determination, both practically and in analysis of the models. Several hundred crystals were analysed, and unusual variability in cell volume and difficulty solving the structure despite a ~34% sequence identity with non-glycosylated human serum albumin indicated that the molecule exhibits variable and context-sensitive packing, despite greatly simplified glycosylation in insect cell expressed recombinant afamin. Controlled dehydration of the crystals was able to stabilise the orthorhombic crystal form reducing the number of molecules in the asymmetric unit from the monoclinic form and changing the conformational states of the protein. An iterative strategy using fully automatic experiments available on MASSIF-1 was used to quickly determine the optimal protocol to achieve the phase transition that should be readily applicable to many types of sample. The study also highlights the drawback of using a single crystallographic structure model for computation modelling purposes given that conformational state of the binding sites and electron density in the binding site, likely resulting from PEGs, greatly varies between models. This also holds for the analysis of unspecific low-affinity ligands, where often a variety fragments with similar uncertainty can be modelled, inviting interpretative bias. As a promiscuous transporter, afamin can also bind Gadoteridol, a magnetic resonance imaging contrast compound in two sites, one near the human albumin Sudlow-site and a second hitherto unknown binding site.",descriptionType:"Abstract"}],geoLocations:[],fundingReferences:[],relatedIdentifiers:[],schemaVersion:"http://datacite.org/schema/kernel-3",providerId:"inist",clientId:"inist.esrf",state:"findable"};Event.prototype={attach:function(e){this._listeners.push(e)},notify:function(e){for(vart=0;t<this._listeners.length;t++)this._listeners[t](this._sender,e)}},ExperimentalReportController.prototype.requestFilenameList=function(e){vart=this;if(e){varr=newRegExp(/^(.*)-(.*)/),i=r.exec(e)[1],n=r.exec(e)[2];i&&n&&$.ajax({type:"GET",timeout:this.timeout,url:this.server,data:{categoryCode:i,categoryCounter:n},dataType:"json",success:function(e){t.onSuccess.notify(e)},error:function(e){t.onError.notify(e)}})}elset.onError.notify("Proposal is null")},ExperimentalReportController.prototype.openFileInNewTab=function(e){if(e)try{window.open("ftp://www.esrf.eu/pub/UserReports/"+e,"_blank")}catch(t){alert("The requested file "+e+" could not be downloaded.")}},JsonExtractor.prototype.getTitle=function(e){returne&&e.titles&&e.titles.length>0&&e.titles[0].title?e.titles[0].title:(console.log("[JSON EXTRACTOR ERROR] title extraction failed."),null)},JsonExtractor.prototype.getDOI=function(e){returne&&e.doi?e.doi.toUpperCase():(console.log("[JSON EXTRACTOR ERROR] doi extraction failed."),null)},JsonExtractor.prototype.getPublisher=function(e){returne&&e.publisher?e.publisher:(console.log("[JSON EXTRACTOR ERROR] publisher extraction failed."),null)},JsonExtractor.prototype.getCreators=function(e){returne&&e.creators?_.map(e.creators,function(e){returne.givenName&&e.familyName||e.name?e:(console.log("[JSON EXTRACTOR ERROR] one of the creator could not be properly extracted."),{})}):(console.log("[JSON EXTRACTOR ERROR] Extraction of the creators failed."),null)},JsonExtractor.prototype.getPubliclyAccessibleYear=function(e){returne&&e.publicationYear?e.publicationYear:(console.log("[JSON EXTRACTOR ERROR] Extraction of the publication year failed."),null)},JsonExtractor.prototype.getInvestigationId=function(e){vart=RegExp(/\/\w*-*[Ee][Ss][Rr][Ff]-[Ee][Ss]-(\d+)$/);returnt.exec(e.doi)?t.exec(e.doi)[1]:(console.log("[JSON EXTRACTOR ERROR] investigationId extraction failed."),null)},JsonExtractor.prototype.getFieldFromSubject=function(e,t){if(e)for(varr=newRegExp("^"+t+"$","i"),i=0;i<e.length;i++)if(r.test(e[i].subjectScheme)&&e[i].subject)return_.split(e[i].subject,",");returnnull},JsonExtractor.prototype.getMintingYear=function(e){returne&&e.date_registered&&null!=e.date_registered?moment(e.date_registered).year():null},JsonExtractor.prototype.getSessionDate=function(e){if(e&&e.dates&&e.datesinstanceofArray){vart=_.find(e.dates,function(e){if(e.dateType)return"collected"===e.dateType.toLowerCase()});if(t&&t.date)returnmoment(t.date).format("YYYY-M-D")}returnconsole.log("[JSON EXTRACTOR ERROR] Extraction of session date failed."),null},JsonExtractor.prototype.getResourceTypeGeneral=function(e){if(e&&e.types)for(vartine.types)if("resourceTypeGeneral"===t)returne.types[t];returnconsole.log("[JSON EXTRACTOR ERROR] Extraction of resource type general failed."),null},JsonExtractor.prototype.getResourceType=function(e){if(e&&e.types)for(vartine.types)if("resourceType"===t){if("Experiment Session"===e.types[t])returnCONSTANTS.ES_RESOURCE_TYPE;if("Datacollection"===e.types[t])returnCONSTANTS.DC_RESOURCE_TYPE}returnconsole.log("[JSON EXTRACTOR ERROR] Extraction of resource type failed."),null},JsonExtractor.prototype.getAbstract=function(e){if(e&&e.descriptions){vart=_.find(e.descriptions,function(e){return"abstract"===e.descriptionType.toLowerCase()});if(t)returnt.description}returnconsole.log("[JSON EXTRACTOR ERROR] Extraction of the abstract failed."),null},JsonExtractor.prototype.getMergedProposalAndBeamline=function(e,t,r){if(e&&t&&r&&e.length===t.length&&e.length===r.length){for(vari=[],n=0;n<e.length;n++)i.push({proposal:e[n],beamline:t[n],beamlineUrl:r[n]});return_.uniqBy(i,function(e){returnJSON.stringify(e)})}returnnull},dust.helpers.proposalBeamlineTable=proposalBeamlineTable,dust.helpers.abstract=abstract;
(function(dust){dust.register("metadata_tpl",body_0);functionbody_0(chk,ctx){returnchk.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;functionbody_1(chk,ctx){returnchk.w("<div class=\"row\">").x(ctx.getPath(false,["data","mergedProposalBeamlines"]),ctx,{"block":body_2},{}).w("</div><hr> <div class=\"row\"><div class=\"col-12\">").h("abstract",ctx,{"block":body_16},{"abstract":ctx.getPath(false,["data","abstract"])},"h").w("</div></div>");}body_1.__dustBody=!0;functionbody_2(chk,ctx){returnchk.x(ctx.getPath(false,["data","mergedProposalBeamlines","0"]),ctx,{"block":body_3},{});}body_2.__dustBody=!0;functionbody_3(chk,ctx){returnchk.w("<div class=\"col\"><div class=\"myBorder-left\"><label> Proposal </label>").x(ctx.getPath(false,["data","mergedProposalBeamlines","0","proposal"]),ctx,{"else":body_4,"block":body_5},{}).w("</div></div><div class=\"col\"><div class=\"myBorder-left\"><label> Publication year </label>").x(ctx.getPath(false,["data","mintingYear"]),ctx,{"else":body_6,"block":body_7},{}).w("</div></div><div class=\"col\"><div class=\"myBorder-left\"><label> Beamline </label> ").x(ctx.getPath(false,["data","mergedProposalBeamlines","0","beamline"]),ctx,{"else":body_8,"block":body_9},{}).w("</div></div><div class=\"col\"><div class=\"myBorder-left\"><label> Session date </label>").x(ctx.getPath(false,["data","sessionDate"]),ctx,{"else":body_12,"block":body_13},{}).w("</div></div> <div class=\"col-4\"><div class=\"myBorder-left\"><label>Category </label>").x(ctx.getPath(false,["data","proposalType"]),ctx,{"else":body_14,"block":body_15},{}).w("</div></div> ");}body_3.__dustBody=!0;functionbody_4(chk,ctx){returnchk.w("<div class=\"padding-left-15\"> Not available</div>");}body_4.__dustBody=!0;functionbody_5(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","mergedProposalBeamlines","0","proposal"]),ctx,"h").w("</div>");}body_5.__dustBody=!0;functionbody_6(chk,ctx){returnchk.w("<div class=\"padding-left-15\"> Not available</div>");}body_6.__dustBody=!0;functionbody_7(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","mintingYear"]),ctx,"h").w("</div>");}body_7.__dustBody=!0;functionbody_8(chk,ctx){returnchk.w("<div class=\"padding-left-15\">Not available</div>");}body_8.__dustBody=!0;functionbody_9(chk,ctx){returnchk.h("eq",ctx,{"else":body_10,"block":body_11},{"key":ctx.getPath(false,["data","mergedProposalBeamlines","0","beamlineUrl"]),"value":"noLink"},"h");}body_9.__dustBody=!0;functionbody_10(chk,ctx){returnchk.w("<div class=\"padding-left-15\"><a href=\"").f(ctx.getPath(false,["data","mergedProposalBeamlines","0","beamlineUrl"]),ctx,"h").w("\" target=\"_blank\"> ").f(ctx.getPath(false,["data","mergedProposalBeamlines","0","beamline"]),ctx,"h").w(" </a></div>");}body_10.__dustBody=!0;functionbody_11(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","mergedProposalBeamlines","0","beamline"]),ctx,"h").w("</div>");}body_11.__dustBody=!0;functionbody_12(chk,ctx){returnchk.w("<div class=\"padding-left-15\"> Not available</div>");}body_12.__dustBody=!0;functionbody_13(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","sessionDate"]),ctx,"h").w("</div>");}body_13.__dustBody=!0;functionbody_14(chk,ctx){returnchk.w("<div class=\"padding-left-15\"> Not available</div>");}body_14.__dustBody=!0;functionbody_15(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","proposalType"]),ctx,"h").w("</div>");}body_15.__dustBody=!0;functionbody_16(chk,ctx){returnchk.w("");}body_16.__dustBody=!0;functionbody_17(chk,ctx){returnchk.w("<div class=\"row\"><div class=\"col-md-12 col-xl-8\">").h("abstract",ctx,{"block":body_18},{"abstract":ctx.getPath(false,["data","abstract"])},"h").w("</br></div><div class=\"col-sm-6 col-xl-2\"><div class=\"myBorder-left\" style=\"margin-right:-15px\">").h("proposalBeamlineTable",ctx,{"block":body_19},{"mergedProposalBeamlines":ctx.getPath(false,["data","mergedProposalBeamlines"])},"h").w("</div></div><div class=\"col-sm-6 col-xl-2\" ><div class=\"myBorder-left\"><label> Publication year </label>").x(ctx.getPath(false,["data","mintingYear"]),ctx,{"else":body_20,"block":body_21},{}).w("</div></div></div>");}body_17.__dustBody=!0;functionbody_18(chk,ctx){returnchk.w("");}body_18.__dustBody=!0;functionbody_19(chk,ctx){returnchk.w("");}body_19.__dustBody=!0;functionbody_20(chk,ctx){returnchk.w("<div class=\"padding-left-15\"> Not available</div>");}body_20.__dustBody=!0;functionbody_21(chk,ctx){returnchk.w("<div class=\"padding-left-15\">").f(ctx.getPath(false,["data","mintingYear"]),ctx,"h").w("</div>");}body_21.__dustBody=!0;returnbody_0}(dust));
(function(dust){dust.register("welcome_tpl",body_0);functionbody_0(chk,ctx){returnchk.w(" <div class=\"container-fluid\"><div class=\"row\"><div class=\"col-12 flexCentered whiteFont\" style=\"color:#132577; font-size: 6.4rem; height: 200px; margin-top: 10px; margin-bottom: 10px;\">ESRF DOI 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\"><h1 class=\"font-3p2rem\">About the portal</h1></div><div class=\"card-body padding10\">This page centralizes the <a href=\"http://www.esrf.eu/home/UsersAndScience/UserGuide/esrf-data-policy/doi.html\" target=\"_blank\"> DOI</a> 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 <a href=\"https://icat.esrf.fr\" target=\"_blank\"> icat.esrf.fr</a>.<p> 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 </p></div></div></div><div class=\"col-12 col-md-4\"><div class=\"padding10\"><div class=\"card-header text-center \"><h1 class=\"font-3p2rem\">DOI resolver</h1></div><div class=\"card-body padding10\"><p>The search engine below only searches DOIs which have been minted at the ESRF. </br> Use <a href=\"https://doi.org\">doi.org </a> search engine for other DOIs.</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\"> List all ESRF DOIs </a> </p></div></div></div> </div></div><div class=\"col-12 col-md-4\"><div class=\"padding10\"><div class=\"card-header text-center\"><h1 class=\"font-3p2rem\">About DOI </h1></div><div class=\"card-body padding10\">The Digital Object Identifier (<a href=\"http://www.esrf.eu/home/UsersAndScience/UserGuide/esrf-data-policy/doi.html\">DOI</a>) 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:</p><pre>ESRF-ES - for a session at the ESRF </pre>Refer to the <a href=\"http://www.esrf.eu/home/UsersAndScience/UserGuide/esrf-data-policy/doi/doi---concepts.html\">DOI concepts</a> page to find out what a session is.</div></div></div></div></div>");}body_0.__dustBody=!0;returnbody_0}(dust));
"text":"Afamin, a human plasma glycoprotein and putative transporter of hydrophobic molecules, has been shown to act as extracellular chaperone for poorly soluble, acylated Wnt proteins, forming a stable, soluble complex with functioning Wnt proteins. The 2.1-Å crystal structure of glycosylated human afamin reveals an almost exclusively hydrophobic binding cleft capable of harboring large hydrophobic moieties. Lipid analysis confirms the presence of lipids, and density in the primary binding pocket of afamin was modeled as palmitoleic acid, presenting the native O-acylation on serine 209 in human Wnt3a. The modeled complex between the experimental afamin structure and a Wnt3a homology model based on the XWnt8-Fz8-CRD fragment complex crystal structure is compelling, with favorable interactions comparable with the crystal structure complex. Afamin readily accommodates the conserved palmitoylated serine 209 of Wnt3a, providing a structural basis how afamin solubilizes hydrophobic and poorly soluble Wnt proteins."
"description":"Afamin, a human plasma glycoprotein and putative transporter of hydrophobic molecules, has been shown to act as extracellular chaperone for poorly soluble, acylated Wnt proteins, forming a stable, soluble complex with functioning Wnt proteins. The 2.1-Å crystal structure of glycosylated human afamin reveals an almost exclusively hydrophobic binding cleft capable of harboring large hydrophobic moieties. Lipid analysis confirms the presence of lipids, and density in the primary binding pocket of afamin was modeled as palmitoleic acid, presenting the native O-acylation on serine 209 in human Wnt3a. The modeled complex between the experimental afamin structure and a Wnt3a homology model based on the XWnt8-Fz8-CRD fragment complex crystal structure is compelling, with favorable interactions comparable with the crystal structure complex. Afamin readily accommodates the conserved palmitoylated serine 209 of Wnt3a, providing a structural basis how afamin solubilizes hydrophobic and poorly soluble Wnt proteins.",
// "text": "Afamin, a human plasma glycoprotein and putative transporter of hydrophobic molecules, has been shown to act as extracellular chaperone for poorly soluble, acylated Wnt proteins, forming a stable, soluble complex with functioning Wnt proteins. The 2.1-Å crystal structure of glycosylated human afamin reveals an almost exclusively hydrophobic binding cleft capable of harboring large hydrophobic moieties. Lipid analysis confirms the presence of lipids, and density in the primary binding pocket of afamin was modeled as palmitoleic acid, presenting the native O-acylation on serine 209 in human Wnt3a. The modeled complex between the experimental afamin structure and a Wnt3a homology model based on the XWnt8-Fz8-CRD fragment complex crystal structure is compelling, with favorable interactions comparable with the crystal structure complex. Afamin readily accommodates the conserved palmitoylated serine 209 of Wnt3a, providing a structural basis how afamin solubilizes hydrophobic and poorly soluble Wnt proteins."
"text":"Afamin, a human blood plasma glycoprotein, a putative multi-functional transporter of hydrophobic molecules and a marker for metabolic syndrome, poses multiple challenges for crystallographic structure determination, both practically and in analysis of the models. Several hundred crystals were analysed, and unusual variability in cell volume and difficulty solving the structure despite a ~34% sequence identity with non-glycosylated human serum albumin indicated that the molecule exhibits variable and context-sensitive packing, despite greatly simplified glycosylation in insect cell expressed recombinant afamin. Controlled dehydration of the crystals was able to stabilise the orthorhombic crystal form reducing the number of molecules in the asymmetric unit from the monoclinic form and changing the conformational states of the protein. An iterative strategy using fully automatic experiments available on MASSIF-1 was used to quickly determine the optimal protocol to achieve the phase transition that should be readily applicable to many types of sample. The study also highlights the drawback of using a single crystallographic structure model for computation modelling purposes given that conformational state of the binding sites and electron density in the binding site, likely resulting from PEGs, greatly varies between models. This also holds for the analysis of unspecific low-affinity ligands, where often a variety fragments with similar uncertainty can be modelled, inviting interpretative bias. As a promiscuous transporter, afamin can also bind Gadoteridol, a magnetic resonance imaging contrast compound in two sites, one near the human albumin Sudlow-site and a second hitherto unknown binding site."
"description":"Afamin, a human blood plasma glycoprotein, a putative multi-functional transporter of hydrophobic molecules and a marker for metabolic syndrome, poses multiple challenges for crystallographic structure determination, both practically and in analysis of the models. Several hundred crystals were analysed, and unusual variability in cell volume and difficulty solving the structure despite a ~34% sequence identity with non-glycosylated human serum albumin indicated that the molecule exhibits variable and context-sensitive packing, despite greatly simplified glycosylation in insect cell expressed recombinant afamin. Controlled dehydration of the crystals was able to stabilise the orthorhombic crystal form reducing the number of molecules in the asymmetric unit from the monoclinic form and changing the conformational states of the protein. An iterative strategy using fully automatic experiments available on MASSIF-1 was used to quickly determine the optimal protocol to achieve the phase transition that should be readily applicable to many types of sample. The study also highlights the drawback of using a single crystallographic structure model for computation modelling purposes given that conformational state of the binding sites and electron density in the binding site, likely resulting from PEGs, greatly varies between models. This also holds for the analysis of unspecific low-affinity ligands, where often a variety fragments with similar uncertainty can be modelled, inviting interpretative bias. As a promiscuous transporter, afamin can also bind Gadoteridol, a magnetic resonance imaging contrast compound in two sites, one near the human albumin Sudlow-site and a second hitherto unknown binding site.",