Module: Blacklight::Routes::RouteSets
- Included in:
- Blacklight::Routes
- Defined in:
- lib/blacklight/routes.rb
Instance Method Summary (collapse)
- - (Object) bookmarks
- - (Object) catalog
-
- (Object) feedback
Feedback.
- - (Object) saved_searches
- - (Object) search_history
- - (Object) solr_document
Instance Method Details
- (Object) bookmarks
31 32 33 34 35 36 |
# File 'lib/blacklight/routes.rb', line 31 def bookmarks add_routes do || delete "bookmarks/clear", :to => "bookmarks#clear", :as => "clear_bookmarks" resources :bookmarks end end |
- (Object) catalog
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/blacklight/routes.rb', line 56 def catalog add_routes do || # Catalog stuff. get 'catalog/opensearch', :as => "opensearch_catalog" get 'catalog/citation', :as => "citation_catalog" get 'catalog/email', :as => "email_catalog" post 'catalog/email' get 'catalog/sms', :as => "sms_catalog" get 'catalog/endnote', :as => "endnote_catalog" get 'catalog/send_email_record', :as => "send_email_record_catalog" get "catalog/facet/:id", :to => 'catalog#facet', :as => 'catalog_facet' get "catalog", :to => 'catalog#index', :as => 'catalog_index' get 'catalog/:id/librarian_view', :to => "catalog#librarian_view", :as => "librarian_view_catalog" end end |
- (Object) feedback
Feedback
86 87 88 89 90 91 |
# File 'lib/blacklight/routes.rb', line 86 def feedback add_routes do || get "feedback", :to => "feedback#show" get "feedback/complete", :to => "feedback#complete" end end |
- (Object) saved_searches
46 47 48 49 50 51 52 53 54 |
# File 'lib/blacklight/routes.rb', line 46 def saved_searches add_routes do || delete "saved_searches/clear", :to => "saved_searches#clear", :as => "clear_saved_searches" get "saved_searches", :to => "saved_searches#index", :as => "saved_searches" put "saved_searches/save/:id", :to => "saved_searches#save", :as => "save_search" delete "saved_searches/forget/:id", :to => "saved_searches#forget", :as => "forget_search" post "saved_searches/forget/:id", :to => "saved_searches#forget" end end |
- (Object) search_history
38 39 40 41 42 43 |
# File 'lib/blacklight/routes.rb', line 38 def search_history add_routes do || get "search_history", :to => "search_history#index", :as => "search_history" delete "search_history/clear", :to => "search_history#clear", :as => "clear_search_history" end end |
- (Object) solr_document
75 76 77 78 79 80 81 82 |
# File 'lib/blacklight/routes.rb', line 75 def solr_document add_routes do || resources :solr_document, :path => 'catalog', :controller => 'catalog', :only => [:show, :update] # :show and :update are for backwards-compatibility with catalog_url named routes resources :catalog, :only => [:show, :update] end end |