From 14e12b03df44a7f146358a27b34c15259e2a1ab6 Mon Sep 17 00:00:00 2001
From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de>
Date: Thu, 26 Sep 2024 11:05:37 +0200
Subject: [PATCH] cit falsch

---
 code/cit.py     |  18 ++++-----
 code/output.txt | 103 ++++++++++++++++--------------------------------
 2 files changed, 42 insertions(+), 79 deletions(-)

diff --git a/code/cit.py b/code/cit.py
index 73fc3e1b..18a24b8a 100644
--- a/code/cit.py
+++ b/code/cit.py
@@ -96,7 +96,6 @@ def main():
     else: 
         print("DONE")
 
-
 def makeauthors(authors, out):
     authors = authors.replace(" and ", "|").strip()  # Ersetzen von "and" mit "|"
     autlist = authors.split("|")
@@ -115,8 +114,9 @@ def makeauthors(authors, out):
                 s = a.split(", ")
                 last = s[0].strip()  # Nachname
                 first_names = s[1].strip() if len(s) > 1 else ''
+                
                 # Initialen für Vornamen erstellen
-                initials = '. '.join([n[0] for n in first_names.split('-')]) + '.' if first_names else ''
+                initials = '. '.join([n[0] for n in first_names.split()]) + '.' if first_names else ''
                 name = f"{last}, {initials}" if initials else f"{last}, "
             else:
                 s = a.split()
@@ -125,13 +125,13 @@ def makeauthors(authors, out):
                 name = f"{last}, {first}"
             
             # Schreibe den Namen in die Ausgabedatei
-            if i < max_authors:
-                out.write(f"\t\t<span property=\"schema:Name\"> {name}</span>\n")
+            out.write(f"\t\t<span property=\"schema:Name\"> {name}</span>\n")
+            
             # Wenn wir mehr als 6 Autoren haben, schreibe "et al." nach dem 6. Autor
             if i == max_authors:
                 out.write("\t\t<span property=\"schema:Name\"> et al.</span>\n")
                 break  # Stoppe die Schleife, nachdem "et al." hinzugefügt wurde
-
+            
         except Exception as e:
             print(f"An unexpected error occurred: {e} see " + a)
 
@@ -145,13 +145,13 @@ def articleHTML(dictio, x, out):
     print("Writing html code for article "+ str(x) + "...")
     out.write("{/*<!-- Citation num " + str(x) + "--> */}" + "\n")
     out.write("<li typeof=\"schema:ScolarlyArticle\" role=\"doc-biblioentry\" property=\"schema:citation\" id=\"desc-" + str(x) + "\">"+ "\n")
-    out.write("\t" + "<span property=\"schema:author\" typeof=\"schema:Person\">"+ "\n")
+#    out.write("\t" + "<span property=\"schema:author\" typeof=\"schema:Person\">"+ "\n")
     
     print("Just a sec, separating authors...")
     authors = dictio['author']
     makeauthors(authors, out)
 
-    out.write("\t" +"</span>"+ "\n")
+#    out.write("\t" +"</span>"+ "\n")
     title = dictio['title'].replace('{', '').replace('}', '')
     out.write("\t" + "<span property=\"schema:name\">&nbsp;"+ title + "</span>. "+ "\n")
     out.write("\t" +"<i property=\"schema:publisher\" typeof=\"schema:Organization\"> "+ dictio['journal'] +"</i>"+ "\n")
@@ -212,12 +212,12 @@ def bookHTML(dictio, x, out):
     print("Writing html code for entry "+ str(x) + "...")
     out.write("{/*<!-- Citation num " + str(x) + "--> */}" + "\n")
     out.write("<li typeof=\"schema:Book\" role=\"doc-biblioentry\" property=\"schema:citation\" id=\"desc-" + str(x) + "\">"+ "\n")
-    out.write("\t" + "<span property=\"schema:author\" typeof=\"schema:Organisation\">"+ "\n")
+   # out.write("\t" + "<span property=\"schema:author\" typeof=\"schema:Organisation\">"+ "\n")
     print("Just a sec, separating authors...")
     authors = dictio['author']
     makeauthors(authors, out)
    # out.write("\t" + "\t" +"<span property=\"schema:Name\"> " + aut + "</span>."+ "\n")
-    out.write("\t" +"</span>"+ "\n")
+   # out.write("\t" +"</span>"+ "\n")
     if 'title' in dictio:
         out.write("\t" + "<span property=\"schema:name\">&nbsp;"+dictio['title']+ ".</span>"+ "\n")
     elif 'booktitle' in dictio:
diff --git a/code/output.txt b/code/output.txt
index f2fe65b8..22d2623c 100644
--- a/code/output.txt
+++ b/code/output.txt
@@ -1,15 +1,13 @@
 {/*<!-- Citation num 1--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-1">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Cloarec-Ung, F. M.</span>
+		<span property="schema:Name"> Cloarec-Ung, F.</span>
 		<span property="schema:Name"> Beaulieu, J.</span>
-		<span property="schema:Name"> Suthananthan, A.</span>
+		<span property="schema:Name"> Suthananthan, A. a. L.</span>
 		<span property="schema:Name"> Sauvageau, G.</span>
-		<span property="schema:Name"> Sheppard, H.</span>
+		<span property="schema:Name"> Sheppard, H. M.</span>
 		<span property="schema:Name"> Knapp,
 David J. H. F., </span>
-	</span>
 	</span>
 	<span property="schema:name">&nbsp;
 Near-perfect precise on-target editing of human hematopoietic stem and
@@ -24,17 +22,16 @@ progenitor cells
 {/*<!-- Citation num 2--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-2">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Nelson, J.</span>
-		<span property="schema:Name"> Randolph, P.</span>
-		<span property="schema:Name"> Shen, S.</span>
+		<span property="schema:Name"> Nelson, J. W.</span>
+		<span property="schema:Name"> Randolph, P. B.</span>
+		<span property="schema:Name"> Shen, S. P.</span>
 		<span property="schema:Name"> Everette,
 Kelcee A., </span>
-		<span property="schema:Name"> Chen, P.</span>
-		<span property="schema:Name"> Anzalone, A.</span>
+		<span property="schema:Name"> Chen, P. J.</span>
+		<span property="schema:Name"> Anzalone, A. V.</span>
+		<span property="schema:Name"> An, M. a. N.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Engineered pegRNAs improve prime editing efficiency</span>. 
 	<i property="schema:publisher" typeof="schema:Organization"> Nature Biotechnology</i>
 	<b property="issueNumber" typeof="PublicationIssue"> 40</b>,&nbsp;
@@ -46,16 +43,16 @@ Kelcee A., </span>
 {/*<!-- Citation num 3--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-3">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Doench, J.</span>
+		<span property="schema:Name"> Doench, J. G.</span>
 		<span property="schema:Name"> Fusi, N.</span>
 		<span property="schema:Name"> Sullender, M.</span>
-		<span property="schema:Name"> Hegde, M.</span>
-		<span property="schema:Name"> Donovan, K.</span>
+		<span property="schema:Name"> Hegde, M. a. V.</span>
+		<span property="schema:Name"> Donovan, K. F.</span>
 		<span property="schema:Name"> Smith, I.</span>
+		<span property="schema:Name"> Tothova,
+Zuzana, </span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Optimized sgRNA design to maximize activity and minimize off-target effects
 of CRISPR-Cas9
@@ -69,13 +66,11 @@ of CRISPR-Cas9
 
 {/*<!-- Citation num 4--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-4">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> White, N.</span>
 		<span property="schema:Name"> Sadeeshkumar, H.</span>
 		<span property="schema:Name"> Sun, A.</span>
-		<span property="schema:Name"> Sudarsan, N.</span>
-	</span>
+		<span property="schema:Name"> Sudarsan, N. a. B.</span>
 	</span>
 	<span property="schema:name">&nbsp;
 Na+ riboswitches regulate genes for diverse physiological processes in
@@ -90,12 +85,10 @@ bacteria
 
 {/*<!-- Citation num 5--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-5">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Iwawaki, T.</span>
 		<span property="schema:Name"> Akai, R.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Analysis of the XBP1 splicing mechanism using endoplasmic reticulum
 stress-indicators
@@ -109,17 +102,16 @@ stress-indicators
 
 {/*<!-- Citation num 6--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-6">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Zhang, Y.</span>
 		<span property="schema:Name"> Lin, S.</span>
 		<span property="schema:Name"> Yao, J.</span>
 		<span property="schema:Name"> Cai, W.</span>
-		<span property="schema:Name"> Chen, H.</span>
+		<span property="schema:Name"> Chen, H. a. A.</span>
 		<span property="schema:Name"> Wang, Z.</span>
+		<span property="schema:Name"> Song, W.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 XBP1 splicing contributes to endoplasmic reticulum stress-induced human islet
 amyloid polypeptide up-regulation
@@ -133,7 +125,6 @@ amyloid polypeptide up-regulation
 
 {/*<!-- Citation num 7--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-7">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Wei, T.</span>
 		<span property="schema:Name"> Sun, Y.</span>
@@ -141,10 +132,10 @@ amyloid polypeptide up-regulation
 		<span property="schema:Name"> Chatterjee, S.</span>
 		<span property="schema:Name"> Traylor,
 Zachary, </span>
-		<span property="schema:Name"> Johnson, L.</span>
+		<span property="schema:Name"> Johnson, L. T.</span>
+		<span property="schema:Name"> Coquelin, M. L.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Lung SORT LNPs enable precise homology-directed repair mediated
 CRISPR/Cas genome correction in cystic fibrosis models
@@ -158,7 +149,6 @@ CRISPR/Cas genome correction in cystic fibrosis models
 
 {/*<!-- Citation num 8--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-8">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Ibrahim, M.</span>
 		<span property="schema:Name"> Ramadan, E.</span>
@@ -166,9 +156,9 @@ CRISPR/Cas genome correction in cystic fibrosis models
 		<span property="schema:Name"> Shimizu, S. E. E. a. T.</span>
 		<span property="schema:Name"> Ando, H.</span>
 		<span property="schema:Name"> Ishima, Y.</span>
+		<span property="schema:Name"> Elgarhy, O. H.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Polyethylene glycol (PEG): The nature, immunogenicity, and role in the
 hypersensitivity of PEGylated products
@@ -183,16 +173,15 @@ hypersensitivity of PEGylated products
 {/*<!-- Citation num 9--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-9">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Jiang, A.</span>
+		<span property="schema:Name"> Jiang, A. Y.</span>
 		<span property="schema:Name"> Witten, J.</span>
-		<span property="schema:Name"> Raji, I.</span>
-		<span property="schema:Name"> Eweje, F.</span>
+		<span property="schema:Name"> Raji, I. O.</span>
+		<span property="schema:Name"> Eweje, F. a. M.</span>
 		<span property="schema:Name"> Meng, S.</span>
-		<span property="schema:Name"> Oladimeji, F.</span>
+		<span property="schema:Name"> Oladimeji, F. A.</span>
+		<span property="schema:Name"> Hu, Y. a. M.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Combinatorial development of nebulized mRNA delivery formulations for the
 lungs
@@ -206,7 +195,6 @@ lungs
 
 {/*<!-- Citation num 10--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-10">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Vilà-González, M.</span>
 		<span property="schema:Name"> Pinte, L.</span>
@@ -215,9 +203,9 @@ lungs
 Erika, </span>
 		<span property="schema:Name"> Kool, H.</span>
 		<span property="schema:Name"> Rodrat, M.</span>
+		<span property="schema:Name"> Morell, C. M. a. A.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 In vitro platform to model the function of ionocytes in the human airway
 epithelium
@@ -231,11 +219,9 @@ epithelium
 
 {/*<!-- Citation num 11--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-11">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Paris, K.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Genome Editing and Biological Weapons: Assessing the Risk of Misuse.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Springer Nature Switzerland AG</i>
 	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2023">2023</time>).
@@ -244,9 +230,7 @@ epithelium
 {/*<!-- Citation num 12--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-12">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Wickiser, J.</span>
-	</span>
+		<span property="schema:Name"> Wickiser, J. K.</span>
 	</span>
 	<span property="schema:name">&nbsp;
 The democratization of biology: how CRISPR and synthetic biology usher in new
@@ -260,12 +244,10 @@ biosecurity threats
 
 {/*<!-- Citation num 13--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-13">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Cohen, J.</span>
 		<span property="schema:Name"> Desai, T.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Security implications of CRISPR-enabled genome editing: New weapons of mass
 disruption?
@@ -280,11 +262,9 @@ disruption?
 {/*<!-- Citation num 14--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-14">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Doudna, J.</span>
+		<span property="schema:Name"> Doudna, J. A.</span>
 		<span property="schema:Name"> Charpentier, E.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 The rise of synthetic biology: New biosecurity risks and regulatory
 challenges
@@ -298,12 +278,10 @@ challenges
 
 {/*<!-- Citation num 15--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-15">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Shwartz, M.</span>
 		<span property="schema:Name"> Conklin, B.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;
 Public perception of CRISPR and genome editing: Misconceptions and media
 portrayal
@@ -316,10 +294,8 @@ portrayal
 
 {/*<!-- Citation num 16--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-16">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Chadwick, R.</span>
-	</span>
+		<span property="schema:Name"> Chadwick, R. F.</span>
 	</span>
 	<span property="schema:name">&nbsp;Encyclopedia of applied ethics.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Academic Press</i>
@@ -328,12 +304,10 @@ portrayal
 
 {/*<!-- Citation num 17--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-17">
-	<span property="schema:author" typeof="schema:Person">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Rubeis, G.</span>
 		<span property="schema:Name"> Steger, F.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Risks and benefits of human germline genome editing: An ethical analysis</span>. 
 	<i property="schema:publisher" typeof="schema:Organization"> Asian Bioethics Review</i>
 	<b property="issueNumber" typeof="PublicationIssue"> 10</b>,&nbsp;
@@ -345,9 +319,7 @@ portrayal
 {/*<!-- Citation num 18--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-18">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Ansah, E.</span>
-	</span>
+		<span property="schema:Name"> Ansah, E. O.</span>
 	</span>
 	<span property="schema:name">&nbsp;
 Ethical Challenges and Controversies in the Practice and Advancement of Gene
@@ -362,11 +334,9 @@ Therapy
 
 {/*<!-- Citation num 19--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-19">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Pugh, J.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Autonomy, Rationality, and Contemporary Bioethics.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Oxford University PressOxford</i>
 	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2020">2020</time>).
@@ -374,12 +344,10 @@ Therapy
 
 {/*<!-- Citation num 20--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-20">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Gstraunthaler, G.</span>
 		<span property="schema:Name"> Lindl, T.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Allgemeine Aspekte der Primärkultur.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Springer</i>
 	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2013">2013</time>).
@@ -387,11 +355,9 @@ Therapy
 
 {/*<!-- Citation num 21--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-21">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Thiele, F.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;International Encyclopedia of the Social & Behavioral Sciences.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Elsevier</i>
 	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2001">2001</time>).
@@ -399,11 +365,9 @@ Therapy
 
 {/*<!-- Citation num 22--> */}
 <li typeof="schema:Book" role="doc-biblioentry" property="schema:citation" id="desc-22">
-	<span property="schema:author" typeof="schema:Organisation">
 	<span property="schema:author" typeof="schema:Person">
 		<span property="schema:Name"> Gethmann, C.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Research: Ethical Aspects of Long-term Responsibilities.</span>
 	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Elsevier</i>
 	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2001">2001</time>).
@@ -412,16 +376,15 @@ Therapy
 {/*<!-- Citation num 23--> */}
 <li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-23">
 	<span property="schema:author" typeof="schema:Person">
-	<span property="schema:author" typeof="schema:Person">
-		<span property="schema:Name"> Kiani, A.</span>
+		<span property="schema:Name"> Kiani, A. K.</span>
 		<span property="schema:Name"> Pheby, D.</span>
 		<span property="schema:Name"> Henehan, G.</span>
-		<span property="schema:Name"> Brown, R.</span>
+		<span property="schema:Name"> Brown, R. a. S.</span>
 		<span property="schema:Name"> Sykora, P.</span>
 		<span property="schema:Name"> Marks, R.</span>
+		<span property="schema:Name"> Falsini, B. a. C.</span>
 		<span property="schema:Name"> et al.</span>
 	</span>
-	</span>
 	<span property="schema:name">&nbsp;Ethical considerations regarding animal experimentation</span>. 
 	<i property="schema:publisher" typeof="schema:Organization"> Journal of Preventive Medicine and Hygiene</i>
 	<b property="issueNumber" typeof="PublicationIssue"> 63</b>,&nbsp;
-- 
GitLab