mods_display 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -150,7 +150,7 @@ class ModsDisplay::Imprint < ModsDisplay::Field
150
150
  end
151
151
  end
152
152
  def normalize_date(date)
153
- date.strip.gsub(/^\s*c\s*|\[|\]|\?/, "")
153
+ date.strip.gsub(/^\s*\[*ca\.\s*|\[|\]|\?/, "")
154
154
  end
155
155
  def other_pub_info(element)
156
156
  element.children.select do |child|
@@ -1,3 +1,3 @@
1
1
  module ModsDisplay
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -105,7 +105,7 @@ describe ModsDisplay::Imprint do
105
105
  it "should use the non-encoded date when prsent" do
106
106
  fields = mods_display_imprint(@dup_unencoded_date).fields
107
107
  fields.length.should == 1
108
- fields.first.values.should == ["c1820"]
108
+ fields.first.values.should == ["[ca. 1820]"]
109
109
  end
110
110
  it "should only return one when no attributes are present" do
111
111
  fields = mods_display_imprint(@dup_date).fields
@@ -116,7 +116,7 @@ module ImprintFixtures
116
116
  <mods>
117
117
  <originInfo>
118
118
  <dateCreated encoding="marc">1820</dateCreated>
119
- <dateCreated>c1820</dateCreated>
119
+ <dateCreated>[ca. 1820]</dateCreated>
120
120
  </originInfo>
121
121
  </mods>
122
122
  MODS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mods_display
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-13 00:00:00.000000000 Z
12
+ date: 2013-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: stanford-mods
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: 726538465989289498
154
+ hash: -181009527688708347
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements:
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: 726538465989289498
163
+ hash: -181009527688708347
164
164
  requirements: []
165
165
  rubyforge_project:
166
166
  rubygems_version: 1.8.25