solr_ead 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWJmOTVjOGQ3OWMwODIwNjE4NWYyYjA3ZjU4YmM5Y2IwMzI1YzQ0YQ==
4
+ MmI1OGEzOTRkZjEzNjJjYTgwNmNiOTE4NzE2ZTZiMWM2ZjQwNWI2NQ==
5
5
  data.tar.gz: !binary |-
6
- MDA5ZjRiMGI3OTBlYzYzZTM1NDdiYmUwNWRhZmIyYzg0YjEwMDRiZQ==
6
+ M2Q0MGE3NDU3OWU3Mjk5MmRkYjE2ODIzNzRjZDcwZDA4M2JlMmMzNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDcxMjhkZjNiYTgwOTZjMDRkZGQyMzgwOTdmYTkxZDE1YTkxOTI2YzQ3ODlm
10
- ODk1MmJlZWY5MjQ1ZjM1ZWY3ODQ1MThiMDUzNTEyYjIzMjRjMDE0NTM3NTY3
11
- ODIzMjU1NmFmZWRiZDBjYzk2MmRmYjcwMjA1MDEzM2U1YThmMDk=
9
+ MmFhYzgzMmQ1MzhkZjE3M2UyMzU2ODhhZDM5MDIyNWEyMDQ1ZGE3NDA0ZWRh
10
+ YzQzZGZiMmE0MGY2ZGM0NjI5ZGExNDZlYjM3MzU5ZDQwZTU2OTNlOWI0ZDY3
11
+ ZTNlMjk5MmQzYzE0Nzc1NDVhN2ViZTRiMzJhNGFmN2EzYjMzZGM=
12
12
  data.tar.gz: !binary |-
13
- ZmI5N2NhY2U3MzY3MWUwNDkyNmFjOGJhNGMzNTBhYmE4ODhhYTZmYWQzOGMw
14
- ZGVmYmVlYjQyNmQ2MDUwZDkwYThjYjFkYjBlNjYxNDNiZjY4OTU3YzVmMzY3
15
- NDc3MmU5ZGE3NGE2MzI4ODkxMGZiYjdlMjVkZDJjZmU1NmI2OWU=
13
+ M2Y3ODk0NTk5MTJlZWYyNWQ5MzljMmZmMmZhZTQ1OWYxMWFhYjJiZmJlZTVl
14
+ ZDZmZTA4ZjY2ZmU1ZGI5ZmNiMWFhNzVjNDlhMTY1M2Y2ODE0MTljYWFhNWFh
15
+ OWM0M2E4NjcwODEyOTIwMjlkZjFmZjQyNDRhZjJjZDM3NjA4N2I=
@@ -57,6 +57,7 @@ module SolrEad::Behaviors
57
57
  # component_level_ii:: numeric level of the component
58
58
  # component_children_bsi:: Boolean field indicating whether or not the component has any child <c> nodes attached to it
59
59
  # collection_sim:: Title field of the ead document so we can facet on all components in a collection
60
+ # collection_ssm:: Displayable collection field
60
61
  #
61
62
  # These fields are used so that we may reconstruct placement of a single component
62
63
  # within the hierarchy of the original ead.
@@ -70,6 +71,7 @@ module SolrEad::Behaviors
70
71
  addl_fields[Solrizer.solr_name("component_level", :type => :integer)] = parent_id_list(node).length + 1
71
72
  addl_fields[Solrizer.solr_name("component_children", :type => :boolean)] = component_children?(node)
72
73
  addl_fields[Solrizer.solr_name("collection", :facetable)] = node.xpath("//archdesc/did/unittitle").text
74
+ addl_fields[Solrizer.solr_name("collection", :displayable)] = node.xpath("//archdesc/did/unittitle").text
73
75
  return addl_fields
74
76
  end
75
77
 
@@ -9,17 +9,17 @@ class SolrEad::Component
9
9
  t.root(:path=>"c")
10
10
  t.ref_(:path=>"/c/@id")
11
11
  t.level(:path=>"/c/@level", :index_as=>[:facetable])
12
- t.title(:path=>"unittitle", :attributes=>{ :type => :none }, :index_as=>[:displayable])
12
+ t.title(:path=>"unittitle", :attributes=>{ :type => :none }, :index_as=>[:displayable, :sortable])
13
13
  t.unitdate(:index_as=>[:displayable])
14
14
 
15
15
  # Facets
16
- t.corpname(:index_as=>[:facetable])
17
- t.famname(:index_as=>[:facetable])
18
- t.genreform(:index_as=>[:facetable])
19
- t.geogname(:index_as=>[:facetable])
20
- t.name(:index_as=>[:facetable])
21
- t.persname(:index_as=>[:facetable])
22
- t.subject(:index_as=>[:facetable])
16
+ t.corpname(:index_as=>[:facetable, :displayable])
17
+ t.famname(:index_as=>[:facetable, :displayable])
18
+ t.genreform(:index_as=>[:facetable, :displayable])
19
+ t.geogname(:index_as=>[:facetable, :displayable])
20
+ t.name(:index_as=>[:facetable, :displayable])
21
+ t.persname(:index_as=>[:facetable, :displayable])
22
+ t.subject(:index_as=>[:facetable, :displayable])
23
23
 
24
24
  # Item
25
25
  t.container {
@@ -30,11 +30,11 @@ class SolrEad::Component
30
30
  t.container_label(:proxy=>[:container, :label])
31
31
  t.container_type(:proxy=>[:container, :type])
32
32
  t.container_id(:proxy=>[:container, :id])
33
- t.material(:proxy=>[:container, :label], :index_as=>[:facetable])
33
+ t.material(:proxy=>[:container, :label], :index_as=>[:facetable, :displayable])
34
34
  t.physdesc(:path=>"did/physdesc[not(dimensions)]", :index_as=>[:displayable])
35
35
  t.dimensions(:path=>"did/physdesc/dimensions", :index_as=>[:displayable])
36
36
  t.langcode(:path=>"did/langmaterial/language/@langcode")
37
- t.language(:path=>"did/langmaterial", :index_as=>[:displayable])
37
+ t.language(:path=>"did/langmaterial", :index_as=>[:facetable, :displayable])
38
38
 
39
39
  # Description
40
40
  t.accessrestrict(:path=>"accessrestrict/p", :index_as=>[:displayable])
@@ -16,19 +16,19 @@ class SolrEad::Document
16
16
  t.unitdate(:path=>"archdesc/did/unitdate[not(@type)]", :index_as=>[:searchable])
17
17
  t.unitdate_bulk(:path=>"archdesc/did/unitdate[@type='bulk']", :index_as=>[:searchable])
18
18
  t.unitdate_inclusive(:path=>"archdesc/did/unitdate[@type='inclusive']", :index_as=>[:searchable])
19
- t.language(:path=>"archdesc/did/langmaterial", :index_as=>[:displayable])
19
+ t.language(:path=>"archdesc/did/langmaterial", :index_as=>[:displayable, :facetable])
20
20
  t.langcode(:path=>"did/langmaterial/language/@langcode")
21
21
  t.abstract(:path=>"archdesc/did/abstract", :index_as=>[:searchable])
22
22
 
23
23
  # Facets
24
- t.corpname(:index_as=>[:facetable])
25
- t.famname(:index_as=>[:facetable])
26
- t.genreform(:index_as=>[:facetable])
27
- t.geogname(:index_as=>[:facetable])
28
- t.name(:index_as=>[:facetable])
29
- t.persname(:index_as=>[:facetable])
30
- t.subject(:index_as=>[:facetable])
31
- t.collection(:proxy=>[:title], :index_as=>[:facetable])
24
+ t.corpname(:index_as=>[:facetable, :displayable])
25
+ t.famname(:index_as=>[:facetable, :displayable])
26
+ t.genreform(:index_as=>[:facetable, :displayable])
27
+ t.geogname(:index_as=>[:facetable, :displayable])
28
+ t.name(:index_as=>[:facetable, :displayable])
29
+ t.persname(:index_as=>[:facetable, :displayable])
30
+ t.subject(:index_as=>[:facetable, :displayable])
31
+ t.collection(:proxy=>[:title], :index_as=>[:facetable, :displayable])
32
32
 
33
33
  # General field available within archdesc
34
34
  t.accessrestrict(:path=>"archdesc/accessrestrict/p", :index_as=>[:searchable])
@@ -1,3 +1,3 @@
1
1
  module SolrEad
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solr_ead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: om
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.1.8
233
+ rubygems_version: 2.2.1
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: A gem for indexing ead into solr using OM