sul-dlss / earthworks

Geospatial discovery application for Stanford University Libraries.
https://earthworks.stanford.edu
Other
18 stars 3 forks source link

Handle display of unavailability warning message for unknown institutions #418

Open drh-stanford opened 6 years ago

drh-stanford commented 6 years ago

Backtrace

line 23 of [PROJECT_ROOT]/app/models/solr_document.rb: contact_email
line 7 of [PROJECT_ROOT]/app/views/catalog/_show_message.html.erb: _app_views_catalog__show_message_html_erb__4558754593061420921_47353080
line 15 of [PROJECT_ROOT]/app/views/catalog/_show_default.html.erb: _app_views_catalog__show_default_html_erb___4042069617143190044_46856560

View full backtrace and more info at honeybadger.io

drh-stanford commented 6 years ago

we have Purdue in the provenance -- perhaps we need a generic warning message?

"layer_slug_s": "1d8b2277-f32e-491b-9ccd-93aa247a3336",
"dct_provenance_s": "Purdue",
thatbudakguy commented 3 weeks ago

can be resolved by adding logic to: https://github.com/sul-dlss/earthworks/blob/effa3519c0d035c9fb17b23e43b3a4daa1682c62/app/views/catalog/_show_message.html.erb#L7

to handle the case where we have a layer displaying that doesn't have a contact email listed in: https://github.com/sul-dlss/earthworks/blob/effa3519c0d035c9fb17b23e43b3a4daa1682c62/config/settings.yml#L119

thatbudakguy commented 2 weeks ago

Note that Aardvark has a special solr field that will automatically result in an HTML alert being displayed on the page. We could use that to add warning message at index time instead of dynamically in the app.