diff --git a/code/cit.py b/code/cit.py index 73fc3e1b3f83425b0978b5bf084df3aac4c67004..18a24b8a577edde121f374abc6b4f10990cc3217 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\"> "+ 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\"> "+dictio['title']+ ".</span>"+ "\n") elif 'booktitle' in dictio: diff --git a/code/output.txt b/code/output.txt index f2fe65b8a3d9cf82a5fbbe36fc0181f569170fd0..22d2623cc85f367b7187ea23bcab9f9e5b399627 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"> 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"> Engineered pegRNAs improve prime editing efficiency</span>. <i property="schema:publisher" typeof="schema:Organization"> Nature Biotechnology</i> <b property="issueNumber" typeof="PublicationIssue"> 40</b>, @@ -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"> 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"> 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"> 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"> 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"> 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"> 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"> 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"> 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"> Genome Editing and Biological Weapons: Assessing the Risk of Misuse.</span> <i property="schema:publisher" typeof="schema:Organization"> Springer Nature Switzerland AG</i> (<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"> 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"> 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"> 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"> 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"> Encyclopedia of applied ethics.</span> <i property="schema:publisher" typeof="schema:Organization"> 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"> 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>, @@ -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"> 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"> Autonomy, Rationality, and Contemporary Bioethics.</span> <i property="schema:publisher" typeof="schema:Organization"> Oxford University PressOxford</i> (<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"> Allgemeine Aspekte der Primärkultur.</span> <i property="schema:publisher" typeof="schema:Organization"> Springer</i> (<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"> International Encyclopedia of the Social & Behavioral Sciences.</span> <i property="schema:publisher" typeof="schema:Organization"> Elsevier</i> (<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"> Research: Ethical Aspects of Long-term Responsibilities.</span> <i property="schema:publisher" typeof="schema:Organization"> Elsevier</i> (<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"> 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>,