EmmaScharfmannBerkeley commited on
Commit
18f5a77
·
1 Parent(s): c11f6dc

Update Climate_site/pages/6_Your_own_research:_Scientific_Publications.py

Browse files
Climate_site/pages/6_Your_own_research:_Scientific_Publications.py CHANGED
@@ -80,19 +80,19 @@ with own_paper_finder:
80
 
81
 
82
 
83
-
84
- try:
85
- paper_id = st.text_input("More data on a paper?", 'Enter an OpenAlex paper id (ex: W100000)')
86
- url , title , abstract , date , authors , institutions = paper_functions_own_details.extract_quantitative_data_paper(
87
- work_id = paper_id)
88
-
89
- st.write(f'<p style="color:Red"> From OpenAlex Website:' , unsafe_allow_html = True)
90
- st.write(f'<p style="color:Black"> <strong> Paper link:</strong> <a href="url">{url}' , unsafe_allow_html = True)
91
- st.write(f'<strong> Paper title:</strong> {title}' , unsafe_allow_html = True)
92
- st.write(f'<strong> Paper abstract:</strong> {abstract}' , unsafe_allow_html = True)
93
- st.write(f'<strong> Paper date:</strong> {date}' , unsafe_allow_html = True)
94
- st.write(f'<strong> Paper co-inventors:</strong> {authors}' , unsafe_allow_html = True)
95
- st.write(f'<strong> Paper assignees:</strong> {institutions}' , unsafe_allow_html = True)
96
- #
97
- except:
98
- st.write("Enter a valid work id")
 
80
 
81
 
82
 
83
+ if st.button('More data on a paper?'):
84
+ try:
85
+ paper_id = st.text_input("More data on a paper?", 'Enter an OpenAlex paper id (ex: W100000)')
86
+ url , title , abstract , date , authors , institutions = paper_functions_own_details.extract_quantitative_data_paper(
87
+ work_id = paper_id)
88
+
89
+ st.write(f'<p style="color:Red"> From OpenAlex Website:' , unsafe_allow_html = True)
90
+ st.write(f'<p style="color:Black"> <strong> Paper link:</strong> <a href="url">{url}' , unsafe_allow_html = True)
91
+ st.write(f'<strong> Paper title:</strong> {title}' , unsafe_allow_html = True)
92
+ st.write(f'<strong> Paper abstract:</strong> {abstract}' , unsafe_allow_html = True)
93
+ st.write(f'<strong> Paper date:</strong> {date}' , unsafe_allow_html = True)
94
+ st.write(f'<strong> Paper co-inventors:</strong> {authors}' , unsafe_allow_html = True)
95
+ st.write(f'<strong> Paper assignees:</strong> {institutions}' , unsafe_allow_html = True)
96
+ #
97
+ except:
98
+ st.write("Enter a valid work id")