Sha256: d97179813f1d4c3c0a41df0fec83f0985a56b47dbca9752df3e717d775471f61

Contents?: true

Size: 1.56 KB

Versions: 3

Compression:

Stored size: 1.56 KB

Contents

module AccessConditionFixtures
  def simple_access_condition_fixture
    <<-XML
      <mods>
        <accessCondition>Access Condition Note</accessCondition>
      </mods>
    XML
  end

  def restricted_access_fixture
    <<-XML
      <mods>
        <accessCondition type='restrictionOnAccess'>Restrict Access Note1</accessCondition>
        <accessCondition type='restriction on access'>Restrict Access Note2</accessCondition>
      </mods>
    XML
  end

  def copyright_access_fixture
    <<-XML
      <mods>
        <accessCondition type='copyright'>This is a (c) copyright Note.  Single instances of (c) should also be replaced in these notes.</accessCondition>
      </mods>
    XML
  end

  def cc_license_fixture
    <<-XML
      <mods>
        <accessCondition type='license'>CC by-sa: This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 Unported License</accessCondition>
      </mods>
    XML
  end

  def odc_license_fixture
    <<-XML
      <mods>
        <accessCondition type='license'>ODC pddl: This work is licensed under a Open Data Commons Public Domain Dedication and License (PDDL)</accessCondition>
      </mods>
    XML
  end

  def no_license_fixture
    <<-XML
      <mods>
        <accessCondition type='license'>Unknown something: This work is licensed under an Unknown License and will not be linked</accessCondition>
      </mods>
    XML
  end

  def garbage_license_fixture
    <<-XML
      <mods>
        <accessCondition type='license'>Unknown garbage that does not look like a license</accessCondition>
      </mods>
    XML
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mods_display-0.10.1 spec/fixtures/access_condition_fixtures.rb
mods_display-0.10.0 spec/fixtures/access_condition_fixtures.rb
mods_display-0.9.1 spec/fixtures/access_condition_fixtures.rb