예제 #1
0
파일: Xml.cs 프로젝트: kamilk/BdProject
 public void AddAuthor(Author author)
 {
     XmlNode node = this.CreateDatafield("700");
     XmlNode name = this.CreateSubfield(author.ToString(), "a");
     XmlNode nationality = this.CreateSubfield(author.Nationality, "l");
     node.AppendChild(name);
     node.AppendChild(nationality);
     record.AppendChild(node);
 }
예제 #2
0
 // When numbers are less than 0 (preferably -1), deletes ALL authorships/annotations/categories from article
 public abstract bool DeleteAuthorshipFromArticle(Article article, Author author, int authorship_number);
예제 #3
0
 public abstract bool DeleteAuthor(Author author);
예제 #4
0
 public abstract bool AddAuthorshipToArticle(Article article, Author author, int authorship_number);
예제 #5
0
 public abstract bool UpdateAuthor(Author author);
예제 #6
0
 public abstract string SaveAuthor(Author author);
예제 #7
0
 // Assuming author is an actual author of the article AND that author is in the AUTORSTWO table only once for the article.
 // Having one author twice for the same article is a mistake.
 // Returns 0 when Author is not the article author in the database.
 // Returns -1 on error (when author is twice recorded for the same article, or when 2 articles have the same ID)
 public abstract int GetAuthorAfiliationForArticle(Article article, Author author);
예제 #8
0
 public override bool AddAuthorshipToArticle(Article article, Author author, int authorship_number)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 public override bool UpdateAuthor(Author author)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public override string SaveAuthor(Author author)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 public override int GetAuthorAfiliationForArticle(Article article, Author author)
 {
     throw new NotImplementedException();
 }
예제 #12
0
 public override bool DeleteAuthorshipFromArticle(Article article, Author author, int authorship_number)
 {
     throw new NotImplementedException();
 }