spec/fixtures/imprint_fixtures.rb in mods_display-0.1.3 vs spec/fixtures/imprint_fixtures.rb in mods_display-0.1.4
- old
+ new
@@ -202,20 +202,54 @@
def encoded_place
<<-MODS
<mods>
<originInfo>
<place>
- <placeTerm type="code">ne</placeTerm>
+ <placeTerm type="code" authority="marccountry">ne</placeTerm>
</place>
<place>
- <placeTerm type="text">[Amsterdam]</placeTerm>
+ <placeTerm type="text" authority="marccountry">[Amsterdam]</placeTerm>
</place>
</originInfo>
<originInfo>
<place>
<placeTerm type="code">us</placeTerm>
<placeTerm type="text">[United States]</placeTerm>
</place>
+ </originInfo>
+ <originInfo>
+ <place>
+ <placeTerm type="code" authority="marccountry">ne</placeTerm>
+ </place>
+ </originInfo>
+ </mods>
+ MODS
+ end
+ def encoded_dates
+ <<-MODS
+ <mods>
+ <originInfo>
+ <dateOther encoding="w3cDtF">2013</dateOther>
+ <dateCreated encoding="W3CdTf">2013-07-10</dateCreated>
+ <dateCaptured encoding="W3CDTF">2013-07</dateCaptured>
+ <dateModified encoding="w3cdtf">Jul. 22, 2013</dateModified>
+ </originInfo>
+ </mods>
+ MODS
+ end
+ def bad_dates
+ <<-MODS
+ <mods>
+ <originInfo>
+ <place>
+ <placeTerm>United States</placeTerm>
+ </place>
+ <dateIssued>
+ 9999
+ </dateIssued>
+ <dateModified>
+ 9999
+ </dateModified>
</originInfo>
</mods>
MODS
end
end
\ No newline at end of file