GetPublications() public method

public GetPublications ( Profiles.Framework.Utilities.RDFTriple request ) : System.Data.SqlClient.SqlDataReader
request Profiles.Framework.Utilities.RDFTriple
return System.Data.SqlClient.SqlDataReader
        private void DrawProfilesModule()
        {
            Profiles.Profile.Utilities.DataIO data = new Profiles.Profile.Utilities.DataIO();
            List<Publication> publication = new List<Publication>();

            SqlDataReader reader = data.GetPublications(base.RDFTriple);

            try
            {
                while (reader.Read())
                {

                    publication.Add(new Publication(reader["bibo_pmid"].ToString(), reader["prns_informationResourceReference"].ToString()));

                }

                rpPublication.DataSource = publication;
                rpPublication.DataBind();
            }
            finally
            {
                if (!reader.IsClosed)
                    reader.Close();
            }
               // Get timeline bar chart
               using (reader = data.GetGoogleTimeline(base.RDFTriple, "[Profile.Module].[NetworkAuthorshipTimeline.Person.GetData]"))
               {
               try
               {
                   while (reader.Read())
                   {
                       timelineBar.Src = reader["gc"].ToString();
                   }
               }
               finally
               {
                   reader.Close();
               }
               }

               // Login link
              loginLiteral.Text = String.Format("<a href='{0}'>login</a>", Root.Domain + "/login/default.aspx?method=login&edit=true");
        }
コード例 #2
0
        private void DrawProfilesModule()
        {
            DateTime d = DateTime.Now;

            Profiles.Profile.Utilities.DataIO data = new Profiles.Profile.Utilities.DataIO();
            List <Publication> publication         = new List <Publication>();

            using (SqlDataReader reader = data.GetPublications(base.RDFTriple))
            {
                while (reader.Read())
                {
                    publication.Add(new Publication(reader["bibo_pmid"].ToString(), reader["vivo_pmcid"].ToString(), reader["prns_informationResourceReference"].ToString(), reader["vivo_webpage"].ToString()));
                }

                rpPublication.DataSource = publication;
                rpPublication.DataBind();
            }

            // Get timeline bar chart
            using (SqlDataReader reader = data.GetGoogleTimeline(base.RDFTriple, "[Profile.Module].[NetworkAuthorshipTimeline.Person.GetData]"))
            {
                while (reader.Read())
                {
                    timelineBar.Src       = reader["gc"].ToString();
                    timelineBar.Alt       = reader["alt"].ToString();
                    litTimelineTable.Text = reader["asText"].ToString();
                }
                reader.Close();
            }

            if (timelineBar.Src == "")
            {
                timelineBar.Visible = false;
            }


            // Login link
            loginLiteral.Text = String.Format("<a href='{0}'>login</a>", Root.Domain + "/login/default.aspx?pin=send&method=login&edit=true");

            Framework.Utilities.DebugLogging.Log("PUBLICATION MODULE end Milliseconds:" + (DateTime.Now - d).TotalSeconds);
        }
コード例 #3
0
        private void DrawProfilesModule()
        {
            DateTime d = DateTime.Now;
            Profiles.Profile.Utilities.DataIO data = new Profiles.Profile.Utilities.DataIO();
            List<Publication> publication = new List<Publication>();

            using (SqlDataReader reader = data.GetPublications(base.RDFTriple))
            {
                while (reader.Read())
                {
                    publication.Add(new Publication(reader["bibo_pmid"].ToString(), reader["prns_informationResourceReference"].ToString()));
                }

                rpPublication.DataSource = publication;
                rpPublication.DataBind();
            }

               // Get timeline bar chart
            using (SqlDataReader reader = data.GetGoogleTimeline(base.RDFTriple, "[Profile.Module].[NetworkAuthorshipTimeline.Person.GetData]"))
               {
                while(reader.Read())
                {
                    timelineBar.Src = reader["gc"].ToString();
                }
                reader.Close();
               }

               if (timelineBar.Src == "")
               {
               timelineBar.Visible = false;
               }

               // Login link
              loginLiteral.Text = String.Format("<a href='{0}'>login</a>", Root.Domain + "/login/default.aspx?pin=send&method=login&edit=true");

              Framework.Utilities.DebugLogging.Log("PUBLICATION MODULE end Milliseconds:" + (DateTime.Now - d).TotalSeconds);
        }