cdmbl 0.8.0 → 0.10.0

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: 818b769be7195ae37538de0892e275545da57a44
4
- data.tar.gz: 5a1a6c25b618ea2cd1d047e3ef3047e29e54db87
3
+ metadata.gz: bc43a4716aa77944ce8d78617e077a3fb15c00c7
4
+ data.tar.gz: 397b0cb921b422ccacfffefa717507d2d700d0a1
5
5
  SHA512:
6
- metadata.gz: aba7fdaefa7ca9e8031b9ac42c9384ebd41ca7bff629d978715aa57cb416248c2b4f5e5e234cf223b61406ffa597591e1906584e4657ed39fc60a361641c7c1d
7
- data.tar.gz: 7a1e280b31c57cdf98207481f02946bfdaa6abe2dbfebe36ae9722ea9b444da3dec939859d8db66ce01565b476b4e211ec65d679c707a1378c3f882d3fd9e9bd
6
+ metadata.gz: eefb4c99654dc0cf850bbc4d91cc6a009fc19e4f8d2d84d9de1654c973512dfbefebb8c3ad2dd87c4d418344403c46e46ec2dd492e238041f1a5f2267b995bd4
7
+ data.tar.gz: 533b043c2f0235556611bf8553174a58b18f9cb40b0ac92607b7151f62c9eb2f234c89760f4871c5d1175ac838cde37e9f172b2bc556dc75ee7ee2e94ed46140
@@ -53,6 +53,16 @@ module CDMBL
53
53
  end
54
54
  end
55
55
 
56
+ class UniqueFormatter
57
+ def self.format(value)
58
+ if value.respond_to?(:uniq)
59
+ value.uniq
60
+ else
61
+ value.titleize
62
+ end
63
+ end
64
+ end
65
+
56
66
  class IDFormatter
57
67
  def self.format(value)
58
68
  value.split('/').join(':')
@@ -107,6 +117,12 @@ module CDMBL
107
117
  end
108
118
  end
109
119
 
120
+ class JoinFormatter
121
+ def self.format(value)
122
+ (value.respond_to?(:join)) ? value.join('; ') : value
123
+ end
124
+ end
125
+
110
126
  class AddSetSpecFormatter
111
127
  def self.format(value)
112
128
  value.merge('setSpec' => value['id'].split('/').first)
@@ -47,20 +47,21 @@ module CDMBL
47
47
  {dest_path: 'parent_collection_name_ssi', origin_path: 'par', formatters: [StripFormatter]},
48
48
  {dest_path: 'parent_collection_name_tei', origin_path: 'par', formatters: [StripFormatter]},
49
49
  {dest_path: 'parent_collection_description_tei', origin_path: 'par', formatters: [StripFormatter]},
50
- {dest_path: 'title_tei', origin_path: 'title', formatters: [StripFormatter]},
50
+ {dest_path: 'title_tesi', origin_path: 'title', formatters: [StripFormatter]},
51
51
  {dest_path: 'title_ssi', origin_path: 'title', formatters: [StripFormatter]},
52
52
  {dest_path: 'title_sort', origin_path: 'title', formatters: [StripFormatter]},
53
53
  {dest_path: 'title_unstem_search', origin_path: 'title', formatters: [StripFormatter]},
54
54
  {dest_path: 'contributor_teim', origin_path: 'contri', formatters: [StripFormatter]},
55
55
  {dest_path: 'contributor_unstem_search', origin_path: 'contri', formatters: [StripFormatter]},
56
56
  {dest_path: 'contributor_ssim', origin_path: 'contri', formatters: [SplitFormatter, StripFormatter]},
57
- {dest_path: 'creator_teim', origin_path: 'photog', formatters: [StripFormatter]},
57
+ {dest_path: 'creator_tesi', origin_path: 'photog', formatters: [JoinFormatter, StripFormatter]},
58
58
  {dest_path: 'creator_unstem_search', origin_path: 'photog', formatters: [StripFormatter]},
59
59
  {dest_path: 'creator_ssim', origin_path: 'photog', formatters: [SplitFormatter, StripFormatter]},
60
60
  {dest_path: 'creator_sort', origin_path: 'photog', formatters: [StripFormatter]},
61
61
  {dest_path: 'description_tei', origin_path: 'descri', formatters: [StripFormatter]},
62
62
  {dest_path: 'description_ts', origin_path: 'descri', formatters: [StripFormatter]},
63
63
  {dest_path: 'dat_ssi', origin_path: 'dat', formatters: [StripFormatter]},
64
+ {dest_path: 'dat_tesi', origin_path: 'dat', formatters: [StripFormatter]},
64
65
  {dest_path: 'dat_sort', origin_path: 'dat', formatters: [StripFormatter]},
65
66
  {dest_path: 'publishing_agency_tei', origin_path: 'publia', formatters: [StripFormatter]},
66
67
  {dest_path: 'publishing_agency_unstem_search', origin_path: 'publia', formatters: [StripFormatter]},
@@ -70,17 +71,18 @@ module CDMBL
70
71
  {dest_path: 'topic_ssim', origin_path: 'genera', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
71
72
  {dest_path: 'topic_unstem_search', origin_path: 'genera', formatters: [StripSemicolonFormatter, StripFormatter]},
72
73
  {dest_path: 'type_ssi', origin_path: 'type', formatters: [Titlieze, StripSemicolonFormatter, StripFormatter]},
74
+ {dest_path: 'type_tesi', origin_path: 'type', formatters: [Titlieze, StripSemicolonFormatter, StripFormatter]},
73
75
  {dest_path: 'physical_format_ssi', origin_path: 'physic', formatters: [StripSemicolonFormatter]},
74
- {dest_path: 'physical_format_tei', origin_path: 'physic', formatters: [StripSemicolonFormatter]},
76
+ {dest_path: 'physical_format_tesi', origin_path: 'physic', formatters: [StripSemicolonFormatter]},
75
77
  {dest_path: 'formal_subject_unstem_search', origin_path: 'specif', formatters: [StripFormatter]},
76
78
  {dest_path: 'formal_subject_ssim', origin_path: 'specif', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
77
79
  {dest_path: 'formal_subject_teim', origin_path: 'specif', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
78
80
  {dest_path: 'subject_unstem_search', origin_path: 'subjec', formatters: [StripFormatter]},
79
81
  {dest_path: 'subject_teim', origin_path: 'subjec', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
80
82
  {dest_path: 'subject_ssim', origin_path: 'subjec', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
81
- {dest_path: 'keyword_unstem_search', origin_path: '/', formatters: [KeywordFormatter, Titlieze, StripFormatter]},
82
- {dest_path: 'keyword_teim', origin_path: '/', formatters: [KeywordFormatter, Titlieze, StripFormatter]},
83
- {dest_path: 'keyword_ssim', origin_path: '/', formatters: [KeywordFormatter, Titlieze, StripFormatter]},
83
+ {dest_path: 'keyword_unstem_search', origin_path: '/', formatters: [KeywordFormatter, Titlieze, UniqueFormatter, StripFormatter]},
84
+ {dest_path: 'keyword_tesi', origin_path: '/', formatters: [KeywordFormatter, Titlieze, UniqueFormatter, JoinFormatter, StripFormatter]},
85
+ {dest_path: 'keyword_ssim', origin_path: '/', formatters: [KeywordFormatter, Titlieze, UniqueFormatter, StripFormatter]},
84
86
  {dest_path: 'city_ssim', origin_path: 'city', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
85
87
  {dest_path: 'city_unstem_search', origin_path: 'city', formatters: [StripFormatter]},
86
88
  {dest_path: 'district_ssi', origin_path: 'distri', formatters: [StripFormatter]},
@@ -94,7 +96,7 @@ module CDMBL
94
96
  {dest_path: 'language_ssi', origin_path: 'langua', formatters: [StripFormatter]},
95
97
  {dest_path: 'language_unstem_search', origin_path: 'langua', formatters: [StripFormatter]},
96
98
  {dest_path: 'contributing_unstem_search', origin_path: 'contra', formatters: [StripFormatter]},
97
- {dest_path: 'contributing_organization_tei', origin_path: 'contra', formatters: [StripFormatter]},
99
+ {dest_path: 'contributing_organization_tesi', origin_path: 'contra', formatters: [StripFormatter]},
98
100
  {dest_path: 'contributing_organization_ssi', origin_path: 'contra', formatters: [Titlieze, StripFormatter]},
99
101
  {dest_path: 'contact_information_ssi', origin_path: 'contac', formatters: [StripFormatter]},
100
102
  {dest_path: 'rights_ssi', origin_path: 'righta', formatters: [StripFormatter]},
@@ -104,7 +106,7 @@ module CDMBL
104
106
  {dest_path: 'fiscal_sponsor_ssi', origin_path: 'fiscal', formatters: [StripFormatter]},
105
107
  {dest_path: 'publisher_ssi', origin_path: 'publis', formatters: [StripFormatter]},
106
108
  {dest_path: 'date_ssi', origin_path: 'date', formatters: [StripFormatter]},
107
- {dest_path: 'format_ssi', origin_path: 'format', formatters: [StripFormatter]},
109
+ {dest_path: 'format_tesi', origin_path: 'format', formatters: [StripFormatter]},
108
110
  {dest_path: 'digspa_ssi', origin_path: 'digspa'},
109
111
  {dest_path: 'digspb_ssi', origin_path: 'digspb'},
110
112
  {dest_path: 'digspc_ssi', origin_path: 'digspc'},
@@ -118,7 +120,7 @@ module CDMBL
118
120
  {dest_path: 'digspk_ssi', origin_path: 'digspk'},
119
121
  {dest_path: 'transcription_tesi', origin_path: 'transc', formatters: [StripFormatter]},
120
122
  {dest_path: 'translation_tesi', origin_path: 'transl', formatters: [StripFormatter]},
121
- {dest_path: 'fullrs_tes', origin_path: 'fullrs', formatters: [StripFormatter]},
123
+ {dest_path: 'fullrs_tesi', origin_path: 'fullrs', formatters: [StripFormatter]},
122
124
  {dest_path: 'find_ssi', origin_path: 'find', formatters: [StripFormatter]},
123
125
  {dest_path: 'dmaccess_ssi', origin_path: 'dmaccess', formatters: [StripFormatter]},
124
126
  {dest_path: 'dmimage_ssi', origin_path: 'dmimage', formatters: [StripFormatter]},
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.8.0"
2
+ VERSION = "0.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  requirements: []
265
265
  rubyforge_project:
266
- rubygems_version: 2.5.1
266
+ rubygems_version: 2.6.13
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: Use Blacklight (Solr) as a front end for your CONTENTdm instance.