Update Home.py
Browse files
Home.py
CHANGED
|
@@ -103,20 +103,25 @@ if keyword_list_j is not None:
|
|
| 103 |
for _, row in key_df_j.reset_index().iterrows():
|
| 104 |
with st.container(border=True):
|
| 105 |
col1, col2 = st.columns([7,3])
|
| 106 |
-
col1.markdown(f"**{row[
|
| 107 |
-
col2.caption(f"**{row[
|
| 108 |
|
| 109 |
-
st.markdown(f"*{row[
|
| 110 |
|
| 111 |
btn1, btn2, btn3, btn4 = st.columns(4)
|
| 112 |
popover1 = btn1.popover("Abstrak", icon="π€", help="Klik untuk membaca abstrak dalam Bahasa Indonesia", use_container_width=False)
|
| 113 |
-
popover1.write(row[
|
| 114 |
|
| 115 |
popover2 = btn2.popover("Abstract", icon="π€", help="Klik untuk membaca abstrak dalam Bahasa Inggris", use_container_width=False)
|
| 116 |
popover2.write(row['Abstract (en)'].strip() if row['Abstract (en)'] else "Abstrak tidak tersedia.")
|
| 117 |
|
| 118 |
btn3.link_button("Baca Artikel", f"https://faizhalas-perpusdb.hf.space/reader?art={row['ID'].strip()}", icon="π")
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
else:
|
| 122 |
st.write("Dalam pembangunan")
|
|
|
|
| 103 |
for _, row in key_df_j.reset_index().iterrows():
|
| 104 |
with st.container(border=True):
|
| 105 |
col1, col2 = st.columns([7,3])
|
| 106 |
+
col1.markdown(f"**{row["Title"].strip()}**")
|
| 107 |
+
col2.caption(f"**{row["Journal"].strip()}, {row["Volume"].strip()} ({row["Issue"].strip()}) - {row["Year"].strip()}**")
|
| 108 |
|
| 109 |
+
st.markdown(f"*{row["Authors"].strip()}*")
|
| 110 |
|
| 111 |
btn1, btn2, btn3, btn4 = st.columns(4)
|
| 112 |
popover1 = btn1.popover("Abstrak", icon="π€", help="Klik untuk membaca abstrak dalam Bahasa Indonesia", use_container_width=False)
|
| 113 |
+
popover1.write(row["Abstract (id)"].strip() if row['Abstract (id)'] else "Abstrak tidak tersedia.")
|
| 114 |
|
| 115 |
popover2 = btn2.popover("Abstract", icon="π€", help="Klik untuk membaca abstrak dalam Bahasa Inggris", use_container_width=False)
|
| 116 |
popover2.write(row['Abstract (en)'].strip() if row['Abstract (en)'] else "Abstrak tidak tersedia.")
|
| 117 |
|
| 118 |
btn3.link_button("Baca Artikel", f"https://faizhalas-perpusdb.hf.space/reader?art={row['ID'].strip()}", icon="π")
|
| 119 |
+
|
| 120 |
+
title = row["Title"].strip()
|
| 121 |
+
title_query = title.replace(" ", "+")
|
| 122 |
+
scholar_url = f"https://scholar.google.com/scholar?hl=id&as_sdt=0%2C5&q={title_query}"
|
| 123 |
+
|
| 124 |
+
btn4.link_button("Sumber", scholar_url, icon="π")
|
| 125 |
|
| 126 |
else:
|
| 127 |
st.write("Dalam pembangunan")
|