Spaces:
Running
Running
Update lookup.py
Browse files
lookup.py
CHANGED
@@ -82,13 +82,13 @@ def extractPapersFromArXivUriPath(path):
|
|
82 |
|
83 |
|
84 |
def printAll(output):
|
85 |
-
print
|
86 |
|
87 |
|
88 |
|
89 |
-
def printHtml(
|
90 |
-
if
|
91 |
-
print
|
92 |
|
93 |
|
94 |
|
@@ -96,13 +96,13 @@ def printHtml(html, outputformat):
|
|
96 |
def printPublicationsRaw(publications, format, outputformat):
|
97 |
if outputformat == "raw":
|
98 |
if format == "html":
|
99 |
-
print
|
100 |
elif format == "bibtex" or format == "biblatex":
|
101 |
-
print "\n\n".join(map(lambda publication: markupForBibTeXItem(publication, format), publications))
|
102 |
elif format == "bibitem":
|
103 |
-
print "\n\n".join(map(lambda publication: markupForBibItem(publication), publications))
|
104 |
elif format == "wiki":
|
105 |
-
print "\n".join(map(lambda publication: markupForWikiItem(publication), publications))
|
106 |
|
107 |
|
108 |
|
|
|
82 |
|
83 |
|
84 |
def printAll(output):
|
85 |
+
print(output)
|
86 |
|
87 |
|
88 |
|
89 |
+
def printHtml(HTML, output format):
|
90 |
+
if output format == "html":
|
91 |
+
print(HTML)
|
92 |
|
93 |
|
94 |
|
|
|
96 |
def printPublicationsRaw(publications, format, outputformat):
|
97 |
if outputformat == "raw":
|
98 |
if format == "html":
|
99 |
+
print("\n\n".join(map(lambda publication: basicMarkupForHTMLEditing(publication), publications)))
|
100 |
elif format == "bibtex" or format == "biblatex":
|
101 |
+
print ("\n\n".join(map(lambda publication: markupForBibTeXItem(publication, format), publications)))
|
102 |
elif format == "bibitem":
|
103 |
+
print ("\n\n".join(map(lambda publication: markupForBibItem(publication), publications)))
|
104 |
elif format == "wiki":
|
105 |
+
print ("\n".join(map(lambda publication: markupForWikiItem(publication), publications)))
|
106 |
|
107 |
|
108 |
|