Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Remove some outdated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
carrickr committed Nov 5, 2014
1 parent deea645 commit 7c8011b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions app/controllers/apos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ class AposController < ApplicationController
# http://localhost:3000/apos?first_modified=2014-01-01T00:00:00Z # returns only the APOs published SINCE January of 2014 up until today in json format
# http://localhost:3000/apos?first_modified=2014-01-01T00:00:00Z&rows=0 # returns only the count of APOs published SINCE January of 2014 up until today in json format
def index
#/apo/
#TODO: Option for count
#Currently have no publically visible APOS
#objectType_t = adminpolicy
#"active_fedora_model_s": ["Dor::AdminPolicyObject"]
#target_type = "Dor::AdminPolicyObject"
#response = Solr.get 'select', :params => {:q => "(#{type_field}):\"#{target_type}\")", :wt => :json, :fl ="#{id}" }

result=find_all_fedora_type(params,:apo)
render_result(result)

Expand Down
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception

protected
# TODO this is where we take a solr response and convert it to the correct format
def render_result(result)
respond_to do |format|
format.json {render :json=>result.to_json}
Expand Down

0 comments on commit 7c8011b

Please sign in to comment.