Skip to content

Commit

Permalink
Delegate collection identifier to solr document
Browse files Browse the repository at this point in the history
  • Loading branch information
awead committed May 19, 2016
1 parent 987c5d0 commit 24635e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/sufia/collection_presenter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Sufia
class CollectionPresenter < CurationConcerns::CollectionPresenter
delegate :resource_type, :based_near, :related_url, to: :solr_document
delegate :resource_type, :based_near, :related_url, :identifier, to: :solr_document

# Terms is the list of fields displayed by app/views/collections/_show_descriptions.html.erb
def self.terms
Expand Down
5 changes: 5 additions & 0 deletions spec/presenters/sufia/collection_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@
subject { presenter.total_items }
it { is_expected.to eq 0 }
end

describe "#identifier" do
subject { presenter.identifier }
it { is_expected.to be_nil }
end
end

0 comments on commit 24635e8

Please sign in to comment.