cul_scv_hydra 0.16.6 → 0.16.7

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
- MjRhY2IxYTI1MWVkMjY2MzZlY2JlMDRiZjQ4Y2RlZmUxM2EwOTk5Yg==
4
+ MGE1OWJlZWZjMTBmMzY3YjU0OWY0OGFkNDYzYjRmMWU4ZmFhNmM2OQ==
5
5
  data.tar.gz: !binary |-
6
- Nzc2MTRmZDczZmFkYmIyNDM2NzhjZmI3OTc0NDdhMjIxZmRmYWNkNg==
6
+ ODM3NWJhZDc4ZTc5ZWE1MzY0ZTQ3MDcxYmUxYTNmNGM3ZjgyN2NhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTliNTMwMjVmZGY0MTU0ZTBkZGNiYjhiMThhNTNkOTUzZTVmYjUwMzljYmYw
10
- MTM1YzA5NTA1MWU0ZjVmY2RiNjVhYTAwOTczNmUxNzdmYWIyMjhjN2E0NTc3
11
- ZDBlMmJjZjVjYjE5ZjFiYmE4NDU5NmI2ZmVkZGNmYTUyZjJiYTM=
9
+ M2U2NjkyNTU4NjE1NDAyNTcxYzgyNGVmYmI3YWUyY2E5OWQ0ZTgzNTc3YzQ4
10
+ ODFiMjA4YjNiYjAyYzdkOTRlYmI5ZGE4YmQ4MGZhZmM3ZDU2MjJmMmY1ZmNj
11
+ OGFlMjZmZGFjMTQyYmI0NThlMThjYjM3YzY4ZjQzZmJlMDFjNzE=
12
12
  data.tar.gz: !binary |-
13
- YmMxMmUxZThlMDE5MDc4MDkyZjEyNGY1NjE4NDQ4YzA1OTRlM2UyZWE5ZDIy
14
- ODA3OTlkODhhNmE3MjgzNjUyNTM2MmRmMDBhMzU4MWIzMzEyZDEwNGMwZjJl
15
- NzNmNTg2MjcyNjcyZWM1ZDIzYWM3NDc2ZGZkZDk5ZTE2NGMwOTQ=
13
+ ZDhmMDBmMzYxY2M1Zjg4ZTI3MTUwODkxMmY2NTMzZDczYmM3OGNmN2QyNGI4
14
+ M2ViZjA0ZjM0NjUyNWU2ZDIwZjY0MjBiZTMxNDJjYjYzNTZiMmZiODU0Mjli
15
+ MmVhOTUxMjk5NGFmNTk4MWE5YTUzMTRiYTYyYjY2YjNhNmU5N2U=
@@ -10,9 +10,9 @@ class ModsDocument < ::ActiveFedora::OmDatastream
10
10
  include Cul::Scv::Hydra::Solrizer::TerminologyBasedSolrizer
11
11
  include Cul::Scv::Hydra::Solrizer::ScvModsFieldable
12
12
 
13
- map_field("lib_repo_sim", :marc_to_facet)
14
- map_field("lib_repo_ssm", :marc_to_display)
15
- map_field("lib_project_sim", :project_to_facet)
13
+ #map_field("lib_repo_sim", :marc_to_facet)
14
+ #map_field("lib_repo_long_ssim", :marc_to_display)
15
+ #map_field("lib_project_sim", :project_to_facet)
16
16
 
17
17
  set_terminology do |t|
18
18
  t.root(:path=>"mods",
@@ -44,12 +44,12 @@ class ModsDocument < ::ActiveFedora::OmDatastream
44
44
  }
45
45
  }
46
46
  t.collection(:path=>"relatedItem", :attributes=>{:type=>"host", :displayLabel=>"Collection"}, :index_as=>[]){
47
- t.collection_title_info(:path=>'titleInfo', :index_as=>[:facetable, :displayable]){
47
+ t.collection_title_info(:path=>'titleInfo', :index_as=>[]){
48
48
  t.lib_collection(:path=>'title', :index_as=>[])
49
49
  }
50
50
  }
51
- t.lib_project(:proxy=>[:project,:project_title_info], :index_as=>[:displayable, :searchable, :project_facetable, :project_textable])
52
- t.lib_collection(:proxy=>[:collection,:collection_title_info])
51
+ t.lib_project(:proxy=>[:project,:project_title_info], :index_as=>[:project_textable])
52
+ t.lib_collection(:proxy=>[:collection,:collection_title_info], :index_as=>[:displayable])
53
53
  t.lib_part(:proxy=>[:part,:part_title_info], :index_as=>[:displayable, :textable])
54
54
  # pattern matches
55
55
  t.identifier(:path=>"identifier", :attributes=>{:type=>"local"}, :type=>:string, :index_as=>[:symbol, :textable])
@@ -83,20 +83,20 @@ class ModsDocument < ::ActiveFedora::OmDatastream
83
83
  }
84
84
  t.top_level_location_url(:proxy=>[:mods, :location, :url])
85
85
  t.lib_repo(:proxy=>[:location, :lib_repo], :type=>:text,
86
- :index_as=>[:marc_code_facetable, :marc_code_displayable, :marc_code_textable])
87
- t.lib_name(
88
- :path=>'name',:attributes=>{:type=>'personal'},
89
- :index_as=>[:facetable, :displayable]){
90
- t.name_part(:path=>'namePart', :index_as=>[])
91
- }
92
- t.name_corporate(
93
- :path=>'name',:attributes=>{:type=>'corporate'},
94
- :index_as=>[:facetable, :displayable],
95
- :variant_of=>{:field_base=>:lib_name}){
96
- t.name_part(
97
- :path=>'namePart',
98
- :index_as=>[])
99
- }
86
+ :index_as=>[:marc_code_textable])
87
+ #t.lib_name(
88
+ # :path=>'name',:attributes=>{:type=>'personal'},
89
+ # :index_as=>[:facetable, :displayable]){
90
+ # t.name_part(:path=>'namePart', :index_as=>[])
91
+ #}
92
+ #t.name_corporate(
93
+ # :path=>'name',:attributes=>{:type=>'corporate'},
94
+ # :index_as=>[:facetable, :displayable],
95
+ # :variant_of=>{:field_base=>:lib_name}){
96
+ # t.name_part(
97
+ # :path=>'namePart',
98
+ # :index_as=>[])
99
+ #}
100
100
  t.note(:path=>"note", :index_as=>[:textable])
101
101
  t.access_condition(:path=>"accessCondition", :attributes=>{:type=>"useAndReproduction"}, :index_as => [:searchable, :symbol])
102
102
  t.record_info(:path=>"recordInfo", :index_as=>[]) {
data/config/fedora.yml ADDED
@@ -0,0 +1,11 @@
1
+ development:
2
+ :user: fedoraAdmin
3
+ :password: fedoraAdmin
4
+ :url: http://localhost:8983/fedora-test
5
+ :time_zone: "America/New_York"
6
+
7
+ test:
8
+ :user: fedoraAdmin
9
+ :password: fedoraAdmin
10
+ :url: http://localhost:8983/fedora-test
11
+ :time_zone: "America/New_York"
@@ -5,33 +5,51 @@ en:
5
5
  'NNBa' : 'Barnard College Library'
6
6
  'NNC' : 'Butler Library'
7
7
  'NNC-A' : 'Avery Library'
8
- 'NNC-ART' : 'Office of Art Properties'
9
8
  'NNC-EA' : 'East Asian Library'
10
9
  'NNC-L' : 'Law Library'
11
10
  'NNC-M' : 'Health Sciences Library'
12
11
  'NNC-MUS' : 'Music Library'
13
- 'NNC-RB' : 'Rare Book Library'
12
+ 'NNC-RB' : 'Rare Book & Manuscript Library'
14
13
  'NNC-UA' : 'University Archives'
15
14
  'NyNyCBL' : 'Burke Library'
16
- 'NyNyCOH' : 'Oral History'
17
15
  'NyNyCAP' : 'Art Properties'
16
+ 'NNC-ART' : 'Art Properties' # This is an unofficial form of NyNyCAP that we've used in the past
18
17
  'NyNyCMA' : 'Music Library'
19
- 'UkWC-A' : 'Royal Archives, Windsor Castle'
18
+ 'NNC-MUS' : 'Music Library' # This is an unofficial form of NyNyCMA that we've used in the past
19
+ 'NyNyCOH' : 'Oral History Center'
20
20
  project:
21
- 'Customer Order Collection' : 'Pres Orders'
22
21
  "Children's Drawings of the Spanish Civil War (online exhibition)" : 'Spanish Civil War'
23
- "Jewels in her crown: treasures of Columbia University Libraries special collections" : 'Jewels in her Crown'
24
- "Russian Imperial Corps of Pages" : 'Russian Corps of Pages'
25
- "Preserving Historic Audio Content" : 'Audio Preservation'
26
- 'The Papers of John Jay' : 'John Jay Papers'
27
- 'Project Facet Mapping Test' : 'Successful Project Mapping'
22
+ 'Chinese paper gods' : 'Chinese Paper Gods'
23
+ 'Community Service Society Photographs' : 'Community Service Society'
24
+ 'Customer Order Collection' : 'Pres Orders'
28
25
  'G.E.E. Lindquist Native American Photographs' : 'Lindquist Photographs'
26
+ 'Jewels in her crown: treasures of Columbia University Libraries special collections' : 'Jewels in Her Crown'
27
+ 'Preserving Historic Audio Content' : 'Audio Preservation'
28
+ 'Project Mapping Test' : 'Successful Project Mapping For Short Project Title'
29
+ 'Russian Imperial Corps of Pages' : 'Russian Corps of Pages'
30
+ 'The Papers of John Jay' : 'Jay Papers'
29
31
  long:
30
32
  repo:
31
33
  'NNBa' : 'Barnard College Library'
32
- 'NNC' : 'Columbia University Libraries'
34
+ 'NNC' : 'Butler Library'
35
+ 'NNC-A' : 'Avery Architectural & Fine Arts Library'
36
+ 'NNC-EA' : 'C.V. Starr East Asian Library'
37
+ 'NNC-L' : 'Arthur W. Diamond Law Library'
38
+ 'NNC-M' : 'Augustus C. Long Health Sciences Library'
39
+ 'NNC-MUS' : 'Music Library'
40
+ 'NNC-RB' : 'Rare Book & Manuscript Library'
41
+ 'NNC-UA' : 'University Archives'
42
+ 'NyNyCBL' : 'Burke Library at Union Theological Seminary'
43
+ 'NyNyCAP' : 'Art Properties'
44
+ 'NNC-ART' : 'Art Properties' # This is an unofficial form of NyNyCAP that we've used in the past
45
+ 'NyNyCMA' : 'Gabe M. Wiener Music & Arts Library'
46
+ 'NNC-MUS' : 'Gabe M. Wiener Music & Arts Library' # This is an unofficial form of NyNyCMA that we've used in the past
47
+ 'NyNyCOH' : 'Columbia Center for Oral History'
48
+ full:
49
+ repo:
50
+ 'NNBa' : 'Barnard College Library'
51
+ 'NNC' : 'Butler Library, Columbia University'
33
52
  'NNC-A' : 'Avery Architectural & Fine Arts Library, Columbia University'
34
- 'NNC-ART' : 'Office of Art Properties'
35
53
  'NNC-EA' : 'C.V. Starr East Asian Library, Columbia University'
36
54
  'NNC-L' : 'Arthur W. Diamond Law Library, Columbia University'
37
55
  'NNC-M' : 'Augustus C. Long Health Sciences Library, Columbia University'
@@ -39,7 +57,19 @@ en:
39
57
  'NNC-RB' : 'Rare Book & Manuscript Library, Columbia University'
40
58
  'NNC-UA' : 'University Archives, Columbia University'
41
59
  'NyNyCBL' : 'Burke Library at Union Theological Seminary, Columbia University'
42
- 'NyNyCOH' : 'Columbia Center for Oral History, Columbia University'
43
60
  'NyNyCAP' : 'Art Properties, Columbia University'
61
+ 'NNC-ART' : 'Art Properties, Columbia University' # This is an unofficial form of NyNyCAP that we've used in the past
44
62
  'NyNyCMA' : 'Gabe M. Wiener Music & Arts Library, Columbia University'
45
- 'UkWC-A' : 'Royal Archives, Windsor Castle'
63
+ 'NNC-MUS' : 'Gabe M. Wiener Music & Arts Library, Columbia University' # This is an unofficial form of NyNyCMA that we've used in the past
64
+ 'NyNyCOH' : 'Columbia Center for Oral History, Columbia University'
65
+ project:
66
+ "Children's Drawings of the Spanish Civil War (online exhibition)" : "Children's Drawings of the Spanish Civil War"
67
+ 'Chinese paper gods' : 'Chinese Paper Gods'
68
+ 'Community Service Society Photographs' : 'Community Service Society Photographs'
69
+ 'Customer Order Collection' : 'Customer Order Collection'
70
+ 'G.E.E. Lindquist Native American Photographs' : 'G.E.E. Lindquist Native American Photographs'
71
+ 'Jewels in her crown: treasures of Columbia University Libraries special collections' : 'Jewels in her Crown: Treasures of Columbia University Libraries Special Collections '
72
+ 'Preserving Historic Audio Content' : 'Preserving Historic Audio Content'
73
+ 'Project Mapping Test' : 'Successful Project Mapping For Full Project Title'
74
+ 'Russian Imperial Corps of Pages' : 'Russian Imperial Corps of Pages '
75
+ 'The Papers of John Jay' : 'Papers of John Jay'
data/config/solr.yml ADDED
@@ -0,0 +1,5 @@
1
+ development:
2
+ url: http://localhost:8983/solr/test
3
+
4
+ test:
5
+ url: http://localhost:8983/solr/test
@@ -18,15 +18,15 @@ module Solrizer::DefaultDescriptors
18
18
  @project_textable_type ||= ProjectTextableDescriptor.new(:text_en, :indexed, :multivalued)
19
19
  end
20
20
 
21
- # Produces _sim suffix and a value-mapping converter
22
- def self.marc_code_facetable
23
- @marc_code_facet_type ||= MarcCodeFacetDescriptor.new(:string, :indexed, :multivalued)
24
- end
21
+ ## Produces _sim suffix and a value-mapping converter
22
+ #def self.marc_code_facetable
23
+ # @marc_code_facet_type ||= MarcCodeFacetDescriptor.new(:string, :indexed, :multivalued)
24
+ #end
25
25
 
26
- # Produces _ssm suffix and a value-mapping converter
27
- def self.marc_code_displayable
28
- @marc_code_type ||= MarcCodeDisplayDescriptor.new(:string, :stored, :indexed, :multivalued)
29
- end
26
+ ## Produces _ssm suffix and a value-mapping converter
27
+ #def self.marc_code_displayable
28
+ # @marc_code_type ||= MarcCodeDisplayDescriptor.new(:string, :stored, :indexed, :multivalued)
29
+ #end
30
30
 
31
31
  # Produces all_text_timv fieldname and a value-mapping converter
32
32
  def self.marc_code_textable
@@ -71,8 +71,10 @@ module Solrizer::DefaultDescriptors
71
71
 
72
72
  module Normal
73
73
  SHORT_REPO = "ldpd.short.repo."
74
- SHORT_PROJ = "ldpd.short.project."
75
74
  LONG_REPO = "ldpd.long.repo."
75
+ FULL_REPO = "ldpd.full.repo."
76
+ SHORT_PROJ = "ldpd.short.project."
77
+ FULL_PROJ = "ldpd.full.project."
76
78
  def normal(value)
77
79
  normal!(value.clone)
78
80
  end
@@ -81,9 +83,9 @@ module Solrizer::DefaultDescriptors
81
83
  value.strip!
82
84
  value
83
85
  end
84
- def translate_with_default(prefix, value)
86
+ def translate_with_default(prefix, value, default)
85
87
  begin
86
- return I18n.t(prefix + value, default: value)
88
+ return I18n.t(prefix + value, default: default)
87
89
  rescue
88
90
  return value
89
91
  end
@@ -108,7 +110,11 @@ module Solrizer::DefaultDescriptors
108
110
  def converter(field_type)
109
111
  lambda do |value|
110
112
  if value.is_a? String
111
- translate_with_default(SHORT_PROJ, normal!(value))
113
+ normal!(value)
114
+ r = [translate_with_default(SHORT_PROJ, value, normal!(value))]
115
+ r << translate_with_default(FULL_PROJ, value, normal!(value))
116
+ r.uniq!
117
+ r.join(' ')
112
118
  else
113
119
  raise "unexpected project_textable #{value.inspect}"
114
120
  value
@@ -120,23 +126,23 @@ module Solrizer::DefaultDescriptors
120
126
  class ProjectFacetDescriptor < Solrizer::Descriptor
121
127
  include Normal
122
128
  def converter(field_type)
123
- lambda {|value| translate_with_default(SHORT_PROJ, normal!(value))}
129
+ lambda {|value| translate_with_default(SHORT_PROJ, normal!(value), normal!(value))}
124
130
  end
125
131
  end
126
132
 
127
- class MarcCodeFacetDescriptor < Solrizer::Descriptor
128
- include Normal
129
- def converter(field_type)
130
- lambda {|value| translate_with_default(SHORT_REPO, normal!(value))}
131
- end
132
- end
133
+ #class MarcCodeFacetDescriptor < Solrizer::Descriptor
134
+ # include Normal
135
+ # def converter(field_type)
136
+ # lambda {|value| translate_with_default(SHORT_REPO, normal!(value), 'Non-Columbia Location')}
137
+ # end
138
+ #end
133
139
 
134
- class MarcCodeDisplayDescriptor < Solrizer::Descriptor
135
- include Normal
136
- def converter(field_type)
137
- lambda {|value| translate_with_default(LONG_REPO, normal!(value))}
138
- end
139
- end
140
+ #class MarcCodeDisplayDescriptor < Solrizer::Descriptor
141
+ # include Normal
142
+ # def converter(field_type)
143
+ # lambda {|value| translate_with_default(LONG_REPO, normal!(value), 'Non-Columbia Location')}
144
+ # end
145
+ #end
140
146
 
141
147
  class MarcCodeTextableDescriptor < Solrizer::Descriptor
142
148
  include Normal
@@ -147,8 +153,8 @@ module Solrizer::DefaultDescriptors
147
153
  lambda do |value|
148
154
  if value.is_a? String
149
155
  normal!(value)
150
- r = [translate_with_default(SHORT_REPO, value)]
151
- r << translate_with_default(LONG_REPO, value)
156
+ r = [translate_with_default(SHORT_REPO, value, 'Non-Columbia Location')]
157
+ r << translate_with_default(LONG_REPO, value, 'Non-Columbia Location')
152
158
  r.uniq!
153
159
  r.join(' ')
154
160
  else
@@ -1,6 +1,7 @@
1
1
  module Cul::Scv::Hydra::Solrizer
2
2
  module ScvModsFieldable
3
3
  extend ActiveSupport::Concern
4
+ include Solrizer::DefaultDescriptors::Normal
4
5
 
5
6
  MODS_NS = {'mods'=>'http://www.loc.gov/mods/v3'}
6
7
 
@@ -84,11 +85,15 @@ module Cul::Scv::Hydra::Solrizer
84
85
  base_text = node.xpath('./mods:namePart', MODS_NS).collect { |c| c.text }.join(' ')
85
86
  ScvModsFieldable.normalize(base_text, true)
86
87
  end
87
- xpath = "./mods:subject" + xpath[1,xpath.length]
88
- mods.xpath(xpath, MODS_NS).each do |node|
89
- base_text = node.xpath('./mods:namePart', MODS_NS).collect { |c| c.text }.join(' ')
90
- names << ScvModsFieldable.normalize(base_text, true)
91
- end
88
+
89
+ # Note: Removing subject names from name field extraction.
90
+ # See: https://issues.cul.columbia.edu/browse/DCV-231 and https://issues.cul.columbia.edu/browse/SCV-102
91
+ #xpath = "./mods:subject" + xpath[1,xpath.length]
92
+ #mods.xpath(xpath, MODS_NS).each do |node|
93
+ # base_text = node.xpath('./mods:namePart', MODS_NS).collect { |c| c.text }.join(' ')
94
+ # names << ScvModsFieldable.normalize(base_text, true)
95
+ #end
96
+
92
97
  names
93
98
  end
94
99
 
@@ -103,13 +108,44 @@ module Cul::Scv::Hydra::Solrizer
103
108
  end
104
109
  end
105
110
 
106
- def repositories(node=mods)
107
- # get all the location/physicalLocation[@authority = 'marcorg']
108
- node.xpath("./mods:location/mods:physicalLocation[@authority = 'marcorg']", MODS_NS).collect do |n|
109
- ScvModsFieldable.normalize(n.text)
110
- end
111
+ def repository_code(node=mods)
112
+ # get the location/physicalLocation[@authority = 'marcorg']
113
+ repo_code_node = node.xpath("./mods:location/mods:physicalLocation[@authority = 'marcorg']", MODS_NS).first
114
+
115
+ if repo_code_node
116
+ ScvModsFieldable.normalize(repo_code_node.text)
117
+ else
118
+ return nil
119
+ end
120
+
111
121
  end
112
122
 
123
+ def translate_repo_marc_code(code, type)
124
+ #code = ScvModsFieldable.normalize(code)
125
+
126
+ if type == 'short'
127
+ return translate_with_default(SHORT_REPO, code, 'Non-Columbia Location')
128
+ elsif type == 'long'
129
+ return translate_with_default(LONG_REPO, code, 'Non-Columbia Location')
130
+ elsif type == 'full'
131
+ return translate_with_default(FULL_REPO, code, 'Non-Columbia Location')
132
+ end
133
+
134
+ return nil
135
+ end
136
+
137
+ def translate_project_title(project_title, type)
138
+ normalized_project_title = ScvModsFieldable.normalize(project_title)
139
+
140
+ if type == 'short'
141
+ return translate_with_default(SHORT_PROJ, normalized_project_title, normalized_project_title)
142
+ elsif type == 'full'
143
+ return translate_with_default(FULL_PROJ, normalized_project_title, normalized_project_title)
144
+ end
145
+
146
+ return nil
147
+ end
148
+
113
149
  def shelf_locators(node=mods)
114
150
  node.xpath("./mods:location/mods:shelfLocator", MODS_NS).collect do |n|
115
151
  ScvModsFieldable.normalize(n.text, true)
@@ -174,7 +210,6 @@ module Cul::Scv::Hydra::Solrizer
174
210
  solr_doc["title_si"] = sort_title
175
211
  solr_doc["title_ssm"] = titles
176
212
  solr_doc["lib_collection_sim"] = collections
177
- #solr_doc["lib_project_sim"] = projects
178
213
  solr_doc["lib_name_sim"] = names
179
214
  solr_doc["lib_name_teim"] = names
180
215
  solr_doc["all_text_teim"] ||= []
@@ -183,13 +218,31 @@ module Cul::Scv::Hydra::Solrizer
183
218
  solr_doc["lib_author_sim"] = names(:marcrelator, 'aut')
184
219
  solr_doc["lib_recipient_sim"] = names(:marcrelator, 'rcp')
185
220
  solr_doc["lib_format_sim"] = formats
186
- #solr_doc["lib_repo_sim"] = repositories
187
221
  solr_doc["lib_shelf_sim"] = shelf_locators
188
222
  solr_doc["lib_date_textual_ssm"] = textual_dates
189
223
  solr_doc["lib_date_notes_ssm"] = date_notes
190
224
  solr_doc["lib_non_date_notes_ssm"] = non_date_notes
191
225
  solr_doc["lib_item_in_context_url_ssm"] = item_in_context_url
192
226
 
227
+ repo_marc_code = repository_code
228
+ unless repo_marc_code.nil?
229
+ solr_doc["lib_repo_short_ssim"] = [translate_repo_marc_code(repo_marc_code, 'short')]
230
+ solr_doc["lib_repo_long_sim"] = [translate_repo_marc_code(repo_marc_code, 'long')]
231
+ solr_doc["lib_repo_full_ssim"] = [translate_repo_marc_code(repo_marc_code, 'full')]
232
+ end
233
+
234
+ project_titles = projects
235
+ unless project_titles.nil?
236
+ solr_doc["lib_project_short_ssim"] = []
237
+ solr_doc["lib_project_full_ssim"] = []
238
+ project_titles.each {|project_title|
239
+ solr_doc["lib_project_short_ssim"] << translate_project_title(project_title, 'short')
240
+ solr_doc["lib_project_full_ssim"] << translate_project_title(project_title, 'full')
241
+ }
242
+ solr_doc["lib_project_short_ssim"].uniq!
243
+ solr_doc["lib_project_full_ssim"].uniq!
244
+ end
245
+
193
246
  # Create convenient start and end date values based on one of the many possible originInfo/dateX elements.
194
247
  possible_start_date_fields = ['origin_info_date_issued_ssm', 'origin_info_date_issued_start_ssm', 'origin_info_date_created_ssm', 'origin_info_date_created_start_ssm', 'origin_info_date_other_ssm', 'origin_info_date_other_start_ssm']
195
248
  possible_end_date_fields = ['origin_info_date_issued_end_ssm', 'origin_info_date_created_end_ssm', 'origin_info_date_other_end_ssm']
@@ -1,7 +1,7 @@
1
1
  module Cul
2
2
  module Scv
3
3
  module Hydra
4
- VERSION = '0.16.6'
4
+ VERSION = '0.16.7'
5
5
  def self.version
6
6
  VERSION
7
7
  end
@@ -0,0 +1,10 @@
1
+ module Cul
2
+ module Scv
3
+ module Hydra
4
+ VERSION = '0.16.6'
5
+ def self.version
6
+ VERSION
7
+ end
8
+ end
9
+ end
10
+ end
data/lib/tasks/index.rake CHANGED
@@ -2,7 +2,7 @@ namespace :cul_scv_hydra do
2
2
 
3
3
  namespace :index do
4
4
 
5
- task :recursively_index_fedora_objects => :environment do
5
+ task :recursive => :environment do
6
6
 
7
7
  puts '---------------------------'
8
8
  puts 'Fedora URL: ' + ActiveFedora.config.credentials[:url]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.6
4
+ version: 0.16.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight
@@ -251,9 +251,11 @@ files:
251
251
  - app/models/static_audio_aggregator.rb
252
252
  - app/models/static_image_aggregator.rb
253
253
  - bin/rails
254
+ - config/fedora.yml
254
255
  - config/jetty.yml
255
256
  - config/locales/ldpd_hydra.en.yml
256
257
  - config/predicate_mappings.yml
258
+ - config/solr.yml
257
259
  - config/solr_mappings.yml
258
260
  - config/solr_value_maps.yml
259
261
  - lib/cul_scv_fedora/dummy_object.rb
@@ -291,6 +293,7 @@ files:
291
293
  - lib/cul_scv_hydra/solrizer/terminology_based_solrizer.rb
292
294
  - lib/cul_scv_hydra/solrizer/value_mapper.rb
293
295
  - lib/cul_scv_hydra/version.rb
296
+ - lib/cul_scv_hydra/version.rb~
294
297
  - lib/tasks/cmodel.rake
295
298
  - lib/tasks/cul_hydra_dev.rake
296
299
  - lib/tasks/index.rake
@@ -316,9 +319,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
319
  version: '0'
317
320
  requirements: []
318
321
  rubyforge_project:
319
- rubygems_version: 2.2.2
322
+ rubygems_version: 2.4.1
320
323
  signing_key:
321
324
  specification_version: 4
322
325
  summary: ActiveFedora, OM, and Solrizer implementations for CUL Staff Collection Viewer
323
326
  test_files: []
324
- has_rdoc: