spec/fixtures/imprint_fixtures.rb in mods_display-0.3.3 vs spec/fixtures/imprint_fixtures.rb in mods_display-0.3.4

- old
+ new

@@ -10,10 +10,11 @@ <dateOther>Another Date</dateOther> </originInfo> </mods> MODS end + def no_edition_mods <<-MODS <mods> <originInfo> <place><placeTerm>A Place</placeTerm></place> @@ -24,10 +25,11 @@ <dateOther>Another Date</dateOther> </originInfo> </mods> MODS end + def origin_info_mods <<-MODS <mods> <originInfo> <dateValid>A Valid Date</dateValid> @@ -36,10 +38,11 @@ <issuance>The Issuance</issuance> </originInfo> </mods> MODS end + def mixed_mods <<-MODS <mods> <originInfo> <place><placeTerm>A Place</placeTerm></place> @@ -48,10 +51,11 @@ <dateCaptured>The Capture Date</dateCaptured> </originInfo> </mods> MODS end + def display_form <<-MODS <mods> <originInfo> <place><placeTerm>A Place</placeTerm></place> @@ -64,10 +68,11 @@ <displayForm>The Display Form</displayForm> </originInfo> </mods> MODS end + def display_label <<-MODS <mods> <originInfo displayLabel="TheLabel"> <edition>The edition</edition> @@ -80,106 +85,117 @@ <issuance>The Edition</issuance> </originInfo> </mods> MODS end + def date_range <<-MODS <mods> <originInfo> <dateCreated point="end">1825</dateCreated> <dateCreated point="start">1820</dateCreated> </originInfo> </mods> MODS end + def open_date_range <<-MODS <mods> <originInfo> <dateCreated point="start">1820</dateCreated> </originInfo> </mods> MODS end + def encoded_date_range <<-MODS <mods> <originInfo> <dateCreated encoding="w3cdtf" keyDate="yes" point="start">2008-02-01</dateCreated> <dateCreated encoding="w3cdtf" point="end">2009-12-02</dateCreated> </originInfo> </mods> MODS end + def dup_qualified_date <<-MODS <mods> <originInfo> <dateCreated qualifier="questionable">1820</dateCreated> <dateCreated>1820</dateCreated> </originInfo> </mods> MODS end + def dup_unencoded_date <<-MODS <mods> <originInfo> <dateCreated encoding="marc">1820</dateCreated> <dateCreated>[ca. 1820]</dateCreated> </originInfo> </mods> MODS end + def dup_copyright_date <<-MODS <mods> <originInfo> <dateCreated encoding="marc">1820</dateCreated> <dateCreated>c1820</dateCreated> </originInfo> </mods> MODS end + def dup_date <<-MODS <mods> <originInfo> <dateCreated>1820</dateCreated> <dateCreated>1820</dateCreated> </originInfo> </mods> MODS end + def approximate_date <<-MODS <mods> <originInfo> <dateValid qualifier="approximate">1820</dateValid> </originInfo> </mods> MODS end + def questionable_date <<-MODS <mods> <originInfo> <dateValid qualifier="questionable">1820</dateValid> </originInfo> </mods> MODS end + def inferred_date <<-MODS <mods> <originInfo> <dateValid qualifier="inferred">1820</dateValid> </originInfo> </mods> MODS end + def three_imprint_dates <<-MODS <mods> <originInfo> <dateIssued>[1820-1825]</dateIssued> @@ -187,19 +203,21 @@ <dateIssued point="end" qualifier="questionable">1825</dateIssued> </originInfo> </mods> MODS end + def qualified_imprint_date <<-MODS <mods> <originInfo> <dateIssued qualifier="questionable">1820</dateIssued> </originInfo> </mods> MODS end + def imprint_date_range <<-MODS <mods> <originInfo> <dateIssued>[1820]</dateIssued> @@ -207,10 +225,11 @@ <dateIssued point="end">1825</dateIssued> </originInfo> </mods> MODS end + def encoded_place <<-MODS <mods> <originInfo> <place> @@ -232,10 +251,11 @@ </place> </originInfo> </mods> MODS end + def xx_country_code <<-MODS <mods> <originInfo> <place> @@ -244,10 +264,11 @@ <dateIssued>1994</dateIssued> </originInfo> </mods> MODS end + def encoded_dates <<-MODS <mods> <originInfo> <dateOther encoding="w3cDtF">2013</dateOther> @@ -256,10 +277,11 @@ <dateModified encoding="w3cdtf">Jul. 22, 2013</dateModified> </originInfo> </mods> MODS end + def bad_dates <<-MODS <mods> <originInfo> <place> @@ -273,10 +295,11 @@ </dateModified> </originInfo> </mods> MODS end + def invalid_dates <<-MODS <mods> <originInfo> <place> @@ -285,6 +308,31 @@ <dateModified encoding="w3cdtf">1920-09-00</dateModified> </originInfo> </mods> MODS end -end \ No newline at end of file + + def punctuation_imprint_fixture + <<-MODS + <mods> + <originInfo displayLabel="publisher"> + <place> + <placeTerm>San Francisco :</placeTerm> + </place> + <publisher>Chronicle Books,</publisher> + <dateIssued>2015.</dateIssued> + </originInfo> + </mods> + MODS + end + + def bc_ad_imprint_date_fixture + <<-MODS + <mods> + <originInfo> + <dateCreated encoding="edtf" keydate="yes" point="start">-0013</dateCreated> + <dateCreated point="end">0044</dateCreated> + </originInfo> + </mods> + MODS + end +end