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():
def makeauthors(authors, out):
authors = authors.replace(" and ", "|")
authors = authors.replace(" and ", "|").strip() # Ersetzen und Whitespace entfernen
autlist = authors.split("|")
# Maximale Anzahl der anzuzeigenden Autoren
......@@ -109,6 +109,8 @@ def makeauthors(authors, out):
last = None
name = None
a = a.strip() # Whitespace entfernen
if ',' in a:
s = a.split(", ")
if len(s) > 1:
......@@ -118,19 +120,19 @@ def makeauthors(authors, out):
last = s[0]
name = last + ", " + initials
else:
last = s[0]
last = s[0].strip() # Entferne Whitespace
name = last + ", "
else:
s = a.split()
if len(s) == 2:
first = s[0]
first = s[0].strip() # Entferne Whitespace
first_sh = first[0]
last = s[1]
last = s[1].strip() # Entferne Whitespace
name = last + ", " + first_sh + "."
else:
# Falls es mehrere Vornamen gibt, sie in Initialen umwandeln
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
name = last + ", " + first
......@@ -146,6 +148,8 @@ def makeauthors(authors, out):
print(f"An unexpected error occurred: {e} see " + a)
def articleHTML(dictio, x, out):
print("Writing html code for article "+ str(x) + "...")
out.write("{/*<!-- Citation num " + str(x) + "--> */}" + "\n")
......
{/*<!-- 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:Name">
Cloarec-Ung, F.</span>
<span property="schema:Name"> Cloarec-Ung, F.</span>
<span property="schema:Name"> Beaulieu, J.</span>
<span property="schema:Name"> Suthananthan, A. a. L.</span>
<span property="schema:Name"> Sauvageau, G.</span>
<span property="schema:Name"> Sheppard, H. M.</span>
<span property="schema:Name"> Knapp,
David J. H. F.
, </span>
David J. H. F., </span>
</span>
<span property="schema:name">&nbsp;
Near-perfect precise on-target editing of human hematopoietic stem and
......@@ -24,8 +22,7 @@ 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:Name">
Nelson, J. W.</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,
......@@ -45,8 +42,7 @@ 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:Name">
Doench, J. G.</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. a. V.</span>
......@@ -68,8 +64,7 @@ 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:Name">
White, N.</span>
<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. a. B.</span>
......@@ -105,8 +100,7 @@ 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:Name">
Zhang, Y.</span>
<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>
......@@ -128,8 +122,7 @@ 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:Name">
Wei, T.</span>
<span property="schema:Name"> Wei, T.</span>
<span property="schema:Name"> Sun, Y.</span>
<span property="schema:Name"> Cheng, Q.</span>
<span property="schema:Name"> Chatterjee, S.</span>
......@@ -174,8 +167,7 @@ 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:Name">
Jiang, A. Y.</span>
<span property="schema:Name"> Jiang, A. Y.</span>
<span property="schema:Name"> Witten, J.</span>
<span property="schema:Name"> Raji, I. O.</span>
<span property="schema:Name"> Eweje, F. a. M.</span>
......@@ -197,8 +189,7 @@ 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:Name">
Vilà-González, M.</span>
<span property="schema:Name"> Vilà-González, M.</span>
<span property="schema:Name"> Pinte, L.</span>
<span property="schema:Name"> Fradique, R.</span>
<span property="schema:Name"> Causa,
......@@ -377,8 +368,7 @@ 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:Name">
Kiani, A. K.</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. 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