spec/fixtures/imprint_fixtures.rb in mods_display-0.0.3 vs spec/fixtures/imprint_fixtures.rb in mods_display-0.0.4

- old
+ new

@@ -1,12 +1,25 @@ module ImprintFixtures def imprint_mods <<-MODS <mods> <originInfo> + <edition>An edition</edition> <place>A Place</place> <publisher>A Publisher</publisher> + <dateIssued>An Issue Date</dateIssued> + <dateOther>Another Date</dateOther> + </originInfo> + </mods> + MODS + end + def no_edition_mods + <<-MODS + <mods> + <originInfo> + <place>A Place</place> + <publisher>A Publisher</publisher> <dateCreated>A Create Date</dateCreated> <dateIssued>An Issue Date</dateIssued> <dateCaptured>A Capture Date</dateCaptured> <dateOther>Another Date</dateOther> </originInfo> @@ -18,11 +31,11 @@ <mods> <originInfo> <dateValid>A Valid Date</dateValid> </originInfo> <originInfo> - <edition>The Edition</edition> + <issuance>The Issuance</issuance> </originInfo> </mods> MODS end def encoded_date @@ -48,11 +61,12 @@ <<-MODS <mods> <originInfo> <place>A Place</place> <publisher>A Publisher</publisher> - <edition>The Edition</edition> + <issuance>The Issuance</issuance> + <dateCaptured>The Capture Date</dateCaptured> </originInfo> </mods> MODS end def display_form @@ -73,16 +87,17 @@ end def display_label <<-MODS <mods> <originInfo displayLabel="TheLabel"> + <edition>The edition</edition> <place>A Place</place> <publisher>A Publisher</publisher> </originInfo> - <originInfo displayLabel="EditionLabel"> + <originInfo displayLabel="IssuanceLabel"> <place>A Place</place> <publisher>A Publisher</publisher> - <edition>The Edition</edition> + <issuance>The Edition</issuance> </originInfo> </mods> MODS end end \ No newline at end of file