You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blacklight has a lot of handy views that you can access by appending a file extension to a page. For example, you can add .json to the end of a search results or show page to get a JSON representation of it (handy for checking how solr has it indexed). You can add .rss to a search to get an RSS feed for that search.
Our use case for RSS feeds is to embed lists of certain items in our collections into subject and course guides (generated by SubjectsPlus or Libguides). We can still get this from Hyrax, so it's not urgent by any means. It's just not consistent that we can't get this by simply appending .rss to the collection URL.
Our use case for JSON views is to quickly and easily check how solr has a collection indexed.
Descriptive summary
Blacklight has a lot of handy views that you can access by appending a file extension to a page. For example, you can add .json to the end of a search results or show page to get a JSON representation of it (handy for checking how solr has it indexed). You can add .rss to a search to get an RSS feed for that search.
This is mainly true in hyrax, too. I can append to a search results page (e.g. http://libarchive.linnbenton.edu/catalog.rss?utf8=%E2%9C%93&search_field=all_fields&q=%22sheep+dogs%22) or a show page (http://libarchive.linnbenton.edu/concern/open_educational_resources/ns064618f.json?locale=en). However, I run into problems when I append .rss or .json to a collections page.
Rationale
Our use case for RSS feeds is to embed lists of certain items in our collections into subject and course guides (generated by SubjectsPlus or Libguides). We can still get this from Hyrax, so it's not urgent by any means. It's just not consistent that we can't get this by simply appending .rss to the collection URL.
Our use case for JSON views is to quickly and easily check how solr has a collection indexed.
Behavior
When I append .rss to a collection URL in my 2.2.3 Hyrax instance, I get a completely empty response (http://libarchive.linnbenton.edu/collections/gf06g286m.rss). There is another way to get an RSS feed of a collection, so this isn't a huge loss: you can just do a search limited by your collection, and then append ".rss" to that. (e.g. http://libarchive.linnbenton.edu/catalog.rss?f[member_of_collections_ssim][]=The+Commuter)
When I append .json to a collection URL, I get a 500 error... in JSON! Here's the response:
{"status":500,"error":"Internal Server Error"}
Steps to reproduce the behavior
?locale=en
)The text was updated successfully, but these errors were encountered: