Class: BlacklightDynamicSitemap::Sitemap
- Inherits:
-
Object
- Object
- BlacklightDynamicSitemap::Sitemap
- Defined in:
- app/models/blacklight_dynamic_sitemap/sitemap.rb
Instance Method Summary collapse
Instance Method Details
#get(id) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/models/blacklight_dynamic_sitemap/sitemap.rb', line 9 def get(id) # if someone's hacking URLs (in ways that could potentially generate enormous requests), # just return an empty response return [] if id.length != exponent index_connection.public_send(solr_endpoint, params: show_params(id, engine_config.default_params.merge({ fq: ["{!prefix f=#{hashed_id_field} v=#{id}}"], fl: [unique_id_field, last_modified_field].join(',') })) ).dig('response', 'docs') end |
#list ⇒ Object
22 23 24 |
# File 'app/models/blacklight_dynamic_sitemap/sitemap.rb', line 22 def list access_list end |