curation_concerns 0.12.0.pre6 → 0.12.0.pre7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f36dfe3aa91727d022c395d9ecf77afab2d5843
4
- data.tar.gz: 3d33f42c2909c683f78f23557b70a121649fdc59
3
+ metadata.gz: c391f4cafeaf126bf03b0d5bfb00cc73a064ee9e
4
+ data.tar.gz: 288a18be58a7d6f529e469688a01870e1838aae3
5
5
  SHA512:
6
- metadata.gz: 7f89a1474a4e438832ce73090e9ca5bdc1d88a705305b6a276d87685e21392ee8bb079034da146f9f8e7b0854d738b314a51d2cce43c433095653bf153676205
7
- data.tar.gz: 9f726193ec1c8ac22c741a8ce7ecb4a272c1491781c5d83f2e53c129aca5b33d9618f95d0b2876dc98559a6c36b0e1c289734b6c6c0e9e9399a012486404a1f5
6
+ metadata.gz: a1bbdb3943a11c78edc5cdebcacdb0adbc616d76d7df2fc334228ee0436ce03d0951999a71f1db340081281948b36c89fbca97ad1a95b36cec72b58f810c43b8
7
+ data.tar.gz: 803b3f489174894eee8a183c68f92d0410bdeb9c754cc89cfcb9f1fc4c20abc09b04f49168db98003c67bcf684680601ce1e22fd0f7342e01b560aa0e060c197
@@ -62,9 +62,9 @@ module CurationConcerns
62
62
 
63
63
  # @return [Array<String>] ids of the collections that this work is a member of
64
64
  def in_collection_ids
65
- ActiveFedora::SolrService.query("{!field f=ordered_targets_ssim}#{id}",
66
- fl: 'proxy_in_ssi')
67
- .map { |x| x.fetch('proxy_in_ssi') }
65
+ ActiveFedora::SolrService.query("{!field f=member_ids_ssim}#{id}",
66
+ fl: ActiveFedora.id_field)
67
+ .map { |x| x.fetch(ActiveFedora.id_field) }
68
68
  end
69
69
 
70
70
  # TODO: Extract this to ActiveFedora::Aggregations::ListSource
@@ -78,9 +78,9 @@ module CurationConcerns
78
78
  # in order.
79
79
  def file_set_ids
80
80
  ActiveFedora::SolrService.query("{!field f=has_model_ssim}FileSet",
81
- fl: "id",
81
+ fl: ActiveFedora.id_field,
82
82
  fq: "{!join from=ordered_targets_ssim to=id}id:\"#{id}/list_source\"")
83
- .flat_map { |x| x.fetch("id", []) }
83
+ .flat_map { |x| x.fetch(ActiveFedora.id_field, []) }
84
84
  end
85
85
  end
86
86
  end
@@ -1,3 +1,3 @@
1
1
  module CurationConcerns
2
- VERSION = "0.12.0.pre6".freeze
2
+ VERSION = "0.12.0.pre7".freeze
3
3
  end
@@ -105,7 +105,7 @@ describe CurationConcerns::WorkShowPresenter do
105
105
  let(:attributes) { obj.to_solr }
106
106
 
107
107
  before do
108
- collection.ordered_members << obj
108
+ collection.members << obj
109
109
  collection.save!
110
110
  obj.save!
111
111
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curation_concerns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.pre6
4
+ version: 0.12.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt