Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec-Temp-until-thaw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liliana Sanfilippo
Bielefeld-CeBiTec-Temp-until-thaw
Commits
fd244d39
Commit
fd244d39
authored
6 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
cit falsch
parent
14e12b03
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/cit.py
+6
-5
6 additions, 5 deletions
code/cit.py
code/output.txt
+0
-9
0 additions, 9 deletions
code/output.txt
with
6 additions
and
14 deletions
code/cit.py
+
6
−
5
View file @
fd244d39
...
...
@@ -97,14 +97,14 @@ def main():
print
(
"
DONE
"
)
def
makeauthors
(
authors
,
out
):
authors
=
authors
.
replace
(
"
and
"
,
"
|
"
).
strip
()
# Ersetzen von "and" mit "|"
authors
=
authors
.
replace
(
"
and
"
,
"
|
"
).
strip
()
.
replace
(
"
\n
"
,
"
"
)
# "and" durch "|" ersetzen und Whitespace entfernen
autlist
=
authors
.
split
(
"
|
"
)
# Maximale Anzahl der anzuzeigenden Autoren
max_authors
=
6
out
.
write
(
"
\t
<span property=
\"
schema:author
\"
typeof=
\"
schema:Person
\"
>
\n
"
)
# Tag für Autoren öffnen
print
(
autlist
)
for
i
,
a
in
enumerate
(
autlist
):
try
:
a
=
a
.
strip
()
# Whitespace entfernen
...
...
@@ -125,9 +125,9 @@ def makeauthors(authors, out):
name
=
f
"
{
last
}
,
{
first
}
"
# Schreibe den Namen in die Ausgabedatei
out
.
write
(
f
"
\t\t
<span property=
\"
schema:Name
\"
>
{
name
}
</span>
\n
"
)
# Wenn wir
mehr als
6 Autor
en
haben, schreibe "et al." nach dem 6. Autor
if
i
<
max_authors
:
out
.
write
(
f
"
\t\t
<span property=
\"
schema:Name
\"
>
{
name
}
</span>
\n
"
)
# Wenn wir
den
6
.
Autor
erreicht
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
...
...
@@ -141,6 +141,7 @@ def makeauthors(authors, out):
def
articleHTML
(
dictio
,
x
,
out
):
print
(
"
Writing html code for article
"
+
str
(
x
)
+
"
...
"
)
out
.
write
(
"
{/*<!-- Citation num
"
+
str
(
x
)
+
"
--> */}
"
+
"
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
code/output.txt
+
0
−
9
View file @
fd244d39
...
...
@@ -29,7 +29,6 @@ progenitor cells
Kelcee 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 property="schema:name"> Engineered pegRNAs improve prime editing efficiency</span>.
...
...
@@ -49,8 +48,6 @@ Kelcee A., </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 property="schema:name">
...
...
@@ -109,7 +106,6 @@ stress-indicators
<span property="schema:Name"> Cai, W.</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 property="schema:name">
...
...
@@ -133,7 +129,6 @@ amyloid polypeptide up-regulation
<span property="schema:Name"> Traylor,
Zachary, </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 property="schema:name">
...
...
@@ -156,7 +151,6 @@ 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 property="schema:name">
...
...
@@ -179,7 +173,6 @@ hypersensitivity of PEGylated products
<span property="schema:Name"> Eweje, F. a. M.</span>
<span property="schema:Name"> Meng, S.</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 property="schema:name">
...
...
@@ -203,7 +196,6 @@ 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 property="schema:name">
...
...
@@ -382,7 +374,6 @@ Therapy
<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 property="schema:name"> Ethical considerations regarding animal experimentation</span>.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment