Class: Atrium::OrderController

Inherits:
ApplicationController show all
Defined in:
app/controllers/atrium/order_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#atrium_config

Methods included from ShowcasesHelper

#facet_element, #get_parent_path, #get_showcase_parent_edit_path, #get_showcase_parent_show_path, #render_showcase_facet_selection

Methods included from ApplicationHelper

#application_name

Methods included from CollectionsHelper

#get_saved_items, #get_saved_search, #saved_searches_for_select

Instance Method Details

#collection_showcase_indexObject



18
19
20
21
22
# File 'app/controllers/atrium/order_controller.rb', line 18

def collection_showcase_index
  respond_to do |format|
    format.json  { render json: collection.showcase_order }
  end
end

#exhibit_facet_indexObject



11
12
13
14
15
# File 'app/controllers/atrium/order_controller.rb', line 11

def exhibit_facet_index
  respond_to do |format|
    format.json  { render json: exhibit.facet_order }
  end
end

#exhibit_indexObject



5
6
7
8
9
# File 'app/controllers/atrium/order_controller.rb', line 5

def exhibit_index
  respond_to do |format|
    format.json  { render json: collection.exhibit_order }
  end
end

#exhibit_showcase_indexObject



25
26
27
28
29
# File 'app/controllers/atrium/order_controller.rb', line 25

def exhibit_showcase_index
  respond_to do |format|
    format.json  { render json: exhibit.showcase_order }
  end
end

#update_collection_exhibits_orderObject

NOTE this action is not currently protected from unauthorized use.



33
34
35
36
37
38
39
# File 'app/controllers/atrium/order_controller.rb', line 33

def update_collection_exhibits_order
  collection.exhibit_order= params[:collection]

  respond_to do |format|
    format.json  { render json: collection.exhibit_order }
  end
end

#update_collection_showcases_orderObject



57
58
59
60
61
62
63
# File 'app/controllers/atrium/order_controller.rb', line 57

def update_collection_showcases_order
  collection.showcase_order = params[:collection]

  respond_to do |format|
    format.json  { render json: collection.showcase_order }
  end
end

#update_exhibit_facets_orderObject



41
42
43
44
45
46
47
# File 'app/controllers/atrium/order_controller.rb', line 41

def update_exhibit_facets_order
  exhibit.facet_order = params[:collection]

  respond_to do |format|
    format.json  { render json: exhibit.facet_order }
  end
end

#update_exhibit_showcases_orderObject



49
50
51
52
53
54
55
# File 'app/controllers/atrium/order_controller.rb', line 49

def update_exhibit_showcases_order
  exhibit.showcase_order = params[:collection]

  respond_to do |format|
    format.json  { render json: exhibit.showcase_order }
  end
end