Skip to content
Snippets Groups Projects
Commit df985c5e authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

cit

parent c0a9d1e6
No related branches found
No related tags found
No related merge requests found
Pipeline #445574 failed
...@@ -98,7 +98,7 @@ def main(): ...@@ -98,7 +98,7 @@ def main():
def makeauthors(authors, out): def makeauthors(authors, out):
authors = authors.replace(" and ", "|") authors = authors.replace(" and ", "|").strip() # Ersetzen und Whitespace entfernen
autlist = authors.split("|") autlist = authors.split("|")
# Maximale Anzahl der anzuzeigenden Autoren # Maximale Anzahl der anzuzeigenden Autoren
...@@ -109,6 +109,8 @@ def makeauthors(authors, out): ...@@ -109,6 +109,8 @@ def makeauthors(authors, out):
last = None last = None
name = None name = None
a = a.strip() # Whitespace entfernen
if ',' in a: if ',' in a:
s = a.split(", ") s = a.split(", ")
if len(s) > 1: if len(s) > 1:
...@@ -118,19 +120,19 @@ def makeauthors(authors, out): ...@@ -118,19 +120,19 @@ def makeauthors(authors, out):
last = s[0] last = s[0]
name = last + ", " + initials name = last + ", " + initials
else: else:
last = s[0] last = s[0].strip() # Entferne Whitespace
name = last + ", " name = last + ", "
else: else:
s = a.split() s = a.split()
if len(s) == 2: if len(s) == 2:
first = s[0] first = s[0].strip() # Entferne Whitespace
first_sh = first[0] first_sh = first[0]
last = s[1] last = s[1].strip() # Entferne Whitespace
name = last + ", " + first_sh + "." name = last + ", " + first_sh + "."
else: else:
# Falls es mehrere Vornamen gibt, sie in Initialen umwandeln # Falls es mehrere Vornamen gibt, sie in Initialen umwandeln
leng = len(s) leng = len(s)
last = s[leng-1] last = s[leng-1].strip() # Entferne Whitespace
first = '. '.join([n[0] for n in s[:-1]]) + '.' # Nur Initialen der Vornamen first = '. '.join([n[0] for n in s[:-1]]) + '.' # Nur Initialen der Vornamen
name = last + ", " + first name = last + ", " + first
...@@ -146,6 +148,8 @@ def makeauthors(authors, out): ...@@ -146,6 +148,8 @@ def makeauthors(authors, out):
print(f"An unexpected error occurred: {e} see " + a) print(f"An unexpected error occurred: {e} see " + a)
def articleHTML(dictio, x, out): def articleHTML(dictio, x, out):
print("Writing html code for article "+ str(x) + "...") print("Writing html code for article "+ str(x) + "...")
out.write("{/*<!-- Citation num " + str(x) + "--> */}" + "\n") out.write("{/*<!-- Citation num " + str(x) + "--> */}" + "\n")
......
{/*<!-- Citation num 1--> */} {/*<!-- Citation num 1--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Cloarec-Ung, F.</span>
Cloarec-Ung, F.</span>
<span property="schema:Name"> Beaulieu, J.</span> <span property="schema:Name"> Beaulieu, J.</span>
<span property="schema:Name"> Suthananthan, A. a. L.</span> <span property="schema:Name"> Suthananthan, A. a. L.</span>
<span property="schema:Name"> Sauvageau, G.</span> <span property="schema:Name"> Sauvageau, G.</span>
<span property="schema:Name"> Sheppard, H. M.</span> <span property="schema:Name"> Sheppard, H. M.</span>
<span property="schema:Name"> Knapp, <span property="schema:Name"> Knapp,
David J. H. F. David J. H. F., </span>
, </span>
</span> </span>
<span property="schema:name">&nbsp; <span property="schema:name">&nbsp;
Near-perfect precise on-target editing of human hematopoietic stem and Near-perfect precise on-target editing of human hematopoietic stem and
...@@ -24,8 +22,7 @@ progenitor cells ...@@ -24,8 +22,7 @@ progenitor cells
{/*<!-- Citation num 2--> */} {/*<!-- Citation num 2--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Nelson, J. W.</span>
Nelson, J. W.</span>
<span property="schema:Name"> Randolph, P. B.</span> <span property="schema:Name"> Randolph, P. B.</span>
<span property="schema:Name"> Shen, S. P.</span> <span property="schema:Name"> Shen, S. P.</span>
<span property="schema:Name"> Everette, <span property="schema:Name"> Everette,
...@@ -45,8 +42,7 @@ Kelcee A., </span> ...@@ -45,8 +42,7 @@ Kelcee A., </span>
{/*<!-- Citation num 3--> */} {/*<!-- Citation num 3--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Doench, J. G.</span>
Doench, J. G.</span>
<span property="schema:Name"> Fusi, N.</span> <span property="schema:Name"> Fusi, N.</span>
<span property="schema:Name"> Sullender, M.</span> <span property="schema:Name"> Sullender, M.</span>
<span property="schema:Name"> Hegde, M. a. V.</span> <span property="schema:Name"> Hegde, M. a. V.</span>
...@@ -68,8 +64,7 @@ of CRISPR-Cas9 ...@@ -68,8 +64,7 @@ of CRISPR-Cas9
{/*<!-- Citation num 4--> */} {/*<!-- Citation num 4--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> White, N.</span>
White, N.</span>
<span property="schema:Name"> Sadeeshkumar, H.</span> <span property="schema:Name"> Sadeeshkumar, H.</span>
<span property="schema:Name"> Sun, A.</span> <span property="schema:Name"> Sun, A.</span>
<span property="schema:Name"> Sudarsan, N. a. B.</span> <span property="schema:Name"> Sudarsan, N. a. B.</span>
...@@ -105,8 +100,7 @@ stress-indicators ...@@ -105,8 +100,7 @@ stress-indicators
{/*<!-- Citation num 6--> */} {/*<!-- Citation num 6--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Zhang, Y.</span>
Zhang, Y.</span>
<span property="schema:Name"> Lin, S.</span> <span property="schema:Name"> Lin, S.</span>
<span property="schema:Name"> Yao, J.</span> <span property="schema:Name"> Yao, J.</span>
<span property="schema:Name"> Cai, W.</span> <span property="schema:Name"> Cai, W.</span>
...@@ -128,8 +122,7 @@ amyloid polypeptide up-regulation ...@@ -128,8 +122,7 @@ amyloid polypeptide up-regulation
{/*<!-- Citation num 7--> */} {/*<!-- Citation num 7--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Wei, T.</span>
Wei, T.</span>
<span property="schema:Name"> Sun, Y.</span> <span property="schema:Name"> Sun, Y.</span>
<span property="schema:Name"> Cheng, Q.</span> <span property="schema:Name"> Cheng, Q.</span>
<span property="schema:Name"> Chatterjee, S.</span> <span property="schema:Name"> Chatterjee, S.</span>
...@@ -174,8 +167,7 @@ hypersensitivity of PEGylated products ...@@ -174,8 +167,7 @@ hypersensitivity of PEGylated products
{/*<!-- Citation num 9--> */} {/*<!-- Citation num 9--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Jiang, A. Y.</span>
Jiang, A. Y.</span>
<span property="schema:Name"> Witten, J.</span> <span property="schema:Name"> Witten, J.</span>
<span property="schema:Name"> Raji, I. O.</span> <span property="schema:Name"> Raji, I. O.</span>
<span property="schema:Name"> Eweje, F. a. M.</span> <span property="schema:Name"> Eweje, F. a. M.</span>
...@@ -197,8 +189,7 @@ lungs ...@@ -197,8 +189,7 @@ lungs
{/*<!-- Citation num 10--> */} {/*<!-- Citation num 10--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Vilà-González, M.</span>
Vilà-González, M.</span>
<span property="schema:Name"> Pinte, L.</span> <span property="schema:Name"> Pinte, L.</span>
<span property="schema:Name"> Fradique, R.</span> <span property="schema:Name"> Fradique, R.</span>
<span property="schema:Name"> Causa, <span property="schema:Name"> Causa,
...@@ -377,8 +368,7 @@ Therapy ...@@ -377,8 +368,7 @@ Therapy
{/*<!-- Citation num 23--> */} {/*<!-- Citation num 23--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-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"> <span property="schema:Name"> Kiani, A. K.</span>
Kiani, A. K.</span>
<span property="schema:Name"> Pheby, D.</span> <span property="schema:Name"> Pheby, D.</span>
<span property="schema:Name"> Henehan, G.</span> <span property="schema:Name"> Henehan, G.</span>
<span property="schema:Name"> Brown, R. a. S.</span> <span property="schema:Name"> Brown, R. a. S.</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment