if authorName String Empty authorName none authorName null result_arti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if (authorName != String.Empty && authorName != "none" && authorName != null){
result_article += "author name: "+authorName+"<br/><br/>\r\n";
}
if (bookDescription != String.Empty && bookDescription != "none" && bookDescription != null){
result_article += bookDescription+"<br/><br/>\r\n";
}
if (originalTitle != bookTitle && originalTitle != String.Empty && originalTitle != "none" && originalTitle != null){
result_article += "original title: \""+originalTitle+"\"<br/>\r\n";
}
if (isbn10 != String.Empty && isbn10 != "none" && isbn10 != null){
if (isbn13 != String.Empty && isbn13 != "none" && isbn13 != null){
isbn13 = " (ISBN13: "+isbn13+")<br/>\r\n";
}
else {
isbn13 = "<br/>\r\n";
}
result_article += "ISBN: "+isbn10+isbn13;
}
if (numberOfPages != String.Empty && numberOfPages != "none" && numberOfPages != null && numberOfPages != "0"){
result_article += "pages: "+numberOfPages+"<br/>\r\n";
}
if (firstPublished != String.Empty && firstPublished != "none" && firstPublished != null){
result_article += "first published: "+firstPublished+"<br/>\r\n";
}
if (characters != String.Empty && characters != "none" && characters != null){
result_article += "characters: "+characters.Substring(0, characters.Length-2)+"<br/>\r\n";
}
if (place != String.Empty && place != "none" && place != null){
result_article += "setting: "+place.Substring(0, place.Length-5)+"<br/>\r\n";
}
if (award != String.Empty && award != "none" && award != null){
result_article += "literary awards: "+award.Substring(0, award.Length-2)+"<br/>\r\n";
}