stanford-mods 3.3.4 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stanford-mods/imprint.rb +2 -0
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/origin_info_spec.rb +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c8cd48602aa7d71d0187cd6351dd4496e908bea0520c2ad168be06607e78e6
|
4
|
+
data.tar.gz: e6159c3b26883f55945f1b182c2243d6019ff0106558b07e8c13226c69cf0d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c837186247e98a97edcae6e53941df131cb63b3de584d5e8983cb96b161ee6f240d66497819a7e39fad9c0f3a91a50dfb40dadb95bd8b4ff390ba62eb96bcf44
|
7
|
+
data.tar.gz: e0461f103546a3f266ae61699765e0db14851034f7aacf1e03f138af49bcb823e6383b34dfafe333ca19ee6b0ce2cb4b227cc6b17016842c4987193a409aeabf
|
data/spec/origin_info_spec.rb
CHANGED
@@ -442,6 +442,22 @@ describe "computations from /originInfo field" do
|
|
442
442
|
end
|
443
443
|
end
|
444
444
|
|
445
|
+
context 'with a date not handled by EDTF' do
|
446
|
+
let(:modsxml) do
|
447
|
+
<<-EOF
|
448
|
+
<mods xmlns="http://www.loc.gov/mods/v3">
|
449
|
+
<originInfo>
|
450
|
+
<dateIssued encoding="marc">1uuu</dateIssued>
|
451
|
+
</originInfo>
|
452
|
+
</mods>
|
453
|
+
EOF
|
454
|
+
end
|
455
|
+
|
456
|
+
it 'ignores the date' do
|
457
|
+
expect(record.pub_year_sort_str).to eq nil
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
445
461
|
context 'when it has an open-ended date range' do
|
446
462
|
let(:modsxml) do
|
447
463
|
<<-EOF
|