Closed karenmajewicz closed 1 year ago
Ah! We removed all the /catalog
routes from the application a little ways back: https://github.com/geobtaa/geoportal/commit/a2c413e6f04fb793ffd3dec5da3c8fe1a33d813d
Those /catalog
routes are redundant and in odd situations they would cause the application to render the wrong upstream layout file -- making the homepage wrap within another render block and breaking our stylesheet rules/expectations.
They should be able to get the application JSON view by adding &format=json
to any search URL, like:
https://geo.btaa.org/?search_field=all_fields&q=maryland&format=json
https://geo.btaa.org/?format=json
RSS would be: https://geo.btaa.org/?format=rss
We should potentially add a JSON endpoint to our layout file, like Stanford's: https://github.com/sul-dlss/earthworks/blob/master/app/views/shared/_sitelinks_search_box.html.erb
Question from team member:
to do: document the search APIs inherited from Blacklight / GeoBlcklight document any custom work the BTAA Geoportal has done that might affect this