public void Initialize(XmlDocument basedata, XmlNamespaceManager namespaces, RDFTriple rdftriple) { BaseData = basedata; Namespaces = namespaces; RDFTriple = rdftriple; UploadInfoToORCID1.Initialize(basedata, namespaces, rdftriple); }
protected void btnNewORCID_Click(object sender, EventArgs e) { try { long subjectID = Convert.ToInt32(Request.QueryString["subject"]); int profilePersonID = new Profiles.Edit.Utilities.DataIO().GetPersonID(subjectID); Utilities.ProfilesRNSDLL.BLL.ORCID.Person personBLL = new Utilities.ProfilesRNSDLL.BLL.ORCID.Person(); Utilities.ProfilesRNSDLL.BO.ORCID.Person bo = personBLL.GetByPersonID(profilePersonID); if (chkUploadInfoNow.Checked) { bo = UploadInfoToORCID1.GetPersonWithPageData(bo); } GetPageControlValues(bo); if (Profiles.ORCID.Utilities.config.RequireAcknowledgement) { bo.AgreementAcknowledged = true; } if (new Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.Person().CreateNewORCID(bo, LoggedInInternalUsername, Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPersonStatusType.REFPersonStatusTypes.User_Push_Failed)) { Edit.Utilities.DataIO data = new Edit.Utilities.DataIO(); data.AddLiteral(subjectID, data.GetStoreNode("http://vivoweb.org/ontology/core#orcidId"), data.GetStoreNode(bo.ORCID), this.PropertyListXML); bool isProxy = Profiles.ORCID.Utilities.DataIO.getNodeIdFromInternalUserName(LoggedInInternalUsername) != subjectID; Response.Redirect("~/ORCID/CreationConfirmation.aspx?UserORCID=" + bo.ORCID + "&Proxy=" + isProxy, false); return; } else { this.lblErrorsCreate.Text = bo.Error + bo.AllErrors + "<br /><br />"; GetErrorsAndMessages(bo); } } catch (Exception ex) { lblErrorsCreate.Text = ex.Message; LogException(ex); } }
protected void btnSubmitToORCID_Click(object sender, EventArgs e) { String LoggedInInternalUsername = new Profiles.ORCID.Utilities.DataIO().GetInternalUserID(); try { if (UploadInfoToORCID1.ResearchExpertiseAndProfessionalInterests.Length > 5000) { UploadInfoToORCID1.ResearchExpertiseAndProfessionalInterestsErrors += "Error! Biography cannot be longer then 5000 characters"; return; } Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.Person person = UploadInfoToORCID1.GetPersonWithPageData(); Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.PersonMessage personMessageBLL = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.PersonMessage(); personMessageBLL.CreateUploadMessages(person, LoggedInInternalUsername); Response.Redirect("~/ORCID/default.aspx"); return; } catch (Exception ex) { lblErrorsUpload.Text = ex.Message; Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID.ErrorLog.LogError(ex, LoggedInInternalUsername); } }
public void Page_Init(object sender, EventArgs e) { base.Initialize(); UploadInfoToORCID1.Initialize(base.RDFData, base.RDFNamespaces, base.RDFTriple); }