Sha256: a8eda5676735dcb801187f5762fe90275359bb8468a64e008a63884ff70f9d0e

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 KB

Contents

# frozen_string_literal: true

module DigitalScriptorium
  # An item representing a Digital Scriptorium record (instance of Q3)
  class Record < DsItem
    include PropertyId

    def described_manuscript_id
      claims_by_property_id(DESCRIBED_MANUSCRIPT)&.first&.entity_id_value # P3
    end

    def title_as_recorded_claims
      claims_by_property_id TITLE_AS_RECORDED # P10
    end

    def uniform_title_as_recorded_claims
      claims_by_property_id UNIFORM_TITLE_AS_RECORDED # P12
    end

    def associated_name_as_recorded_claims
      claims_by_property_id ASSOCIATED_NAME_AS_RECORDED # P14
    end

    def genre_as_recorded_claims
      claims_by_property_id GENRE_AS_RECORDED # P18
    end

    def language_as_recorded_claims
      claims_by_property_id LANGUAGE_AS_RECORDED # P21
    end

    def production_date_as_recorded_claims
      claims_by_property_id PRODUCTION_DATE_AS_RECORDED # P23
    end

    def dated_claims
      claims_by_property_id DATED # P26
    end

    def production_place_as_recorded_claims
      claims_by_property_id PRODUCTION_PLACE_AS_RECORDED # P27
    end

    def physical_description_claims
      claims_by_property_id PHYSICAL_DESCRIPTION # P29
    end

    def material_as_recorded_claims
      claims_by_property_id MATERIAL_AS_RECORDED # P30
    end

    def note_claims
      claims_by_property_id NOTE # P32
    end

    def acknowledgements_claims
      claims_by_property_id ACKNOWLEDGEMENTS # P33
    end

    def date_added_claims
      claims_by_property_id DATE_ADDED # P34
    end

    def date_last_updated_claims
      claims_by_property_id DATE_LAST_UPDATED # P35
    end

    def iiif_manifest_claims
      claims_by_property_id IIIF_MANIFEST # P41
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digital_scriptorium-0.2.1 lib/digital_scriptorium/record.rb
digital_scriptorium-0.2.0 lib/digital_scriptorium/record.rb