CCockrum commited on
Commit
8956cd9
Β·
verified Β·
1 Parent(s): 0f8916e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -11
app.py CHANGED
@@ -99,17 +99,6 @@ collections = {
99
  # Sidebar for selecting collection
100
  #st.sidebar.markdown("## Settings")
101
 
102
- st.sidebar.markdown("### πŸ”— Helpful Resources", unsafe_allow_html=True)
103
- st.sidebar.markdown("""
104
- <ul style='padding-left: 1em'>
105
- <li><a href="https://www.loc.gov/apis/" target="_blank">LOC API Info</a></li>
106
- <li><a href="https://www.loc.gov/" target="_blank">Library of Congress Homepage</a></li>
107
- <li><a href="https://www.loc.gov/collections/" target="_blank">LOC Digital Collections</a></li>
108
- <li><a href="https://www.loc.gov/marc/" target="_blank">MARC Metadata Standards</a></li>
109
- <li><a href="https://labs.loc.gov/about-labs/digital-strategy/" target="_blank">LOC Digital Strategy</a></li>
110
- </ul>
111
- """, unsafe_allow_html=True)
112
-
113
  # Create empty metadata_df variable to ensure it exists before checking
114
  metadata_df = pd.DataFrame()
115
 
@@ -130,6 +119,29 @@ collection_url = f"https://www.loc.gov/search/?q={search_query}&fo=json"
130
  st.sidebar.write(f"Selected Collection: {selected}")
131
  st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  # Add a fetch button to make the action explicit
134
  fetch_data = True
135
 
 
99
  # Sidebar for selecting collection
100
  #st.sidebar.markdown("## Settings")
101
 
 
 
 
 
 
 
 
 
 
 
 
102
  # Create empty metadata_df variable to ensure it exists before checking
103
  metadata_df = pd.DataFrame()
104
 
 
119
  st.sidebar.write(f"Selected Collection: {selected}")
120
  st.sidebar.markdown(f"<span style='color: lightgray;'>API URL: {collection_url}</span>", unsafe_allow_html=True)
121
 
122
+ # πŸ”— Helpful Resources (styled and moved below dropdown)
123
+ st.sidebar.markdown("### πŸ”— Helpful Resources", unsafe_allow_html=True)
124
+ st.sidebar.markdown("""
125
+ <style>
126
+ .sidebar-links a {
127
+ color: lightgray !important;
128
+ text-decoration: none !important;
129
+ }
130
+ .sidebar-links a:hover {
131
+ text-decoration: underline !important;
132
+ }
133
+ </style>
134
+ <div class="sidebar-links">
135
+ <ul style='padding-left: 1em'>
136
+ <li><a href="https://www.loc.gov/apis/" target="_blank">LOC API Info</a></li>
137
+ <li><a href="https://www.loc.gov/" target="_blank">Library of Congress Homepage</a></li>
138
+ <li><a href="https://www.loc.gov/collections/" target="_blank">LOC Digital Collections</a></li>
139
+ <li><a href="https://www.loc.gov/marc/" target="_blank">MARC Metadata Standards</a></li>
140
+ <li><a href="https://labs.loc.gov/about-labs/digital-strategy/" target="_blank">LOC Digital Strategy</a></li>
141
+ </ul>
142
+ </div>
143
+ """, unsafe_allow_html=True)
144
+
145
  # Add a fetch button to make the action explicit
146
  fetch_data = True
147