Module: PDCMetadata
- Defined in:
- app/models/pdc_metadata/title.rb,
app/models/pdc_metadata/funder.rb,
app/models/pdc_metadata/rights.rb,
app/models/pdc_metadata/creator.rb,
app/models/pdc_metadata/resource.rb,
app/models/pdc_metadata/affiliation.rb,
app/models/pdc_metadata/related_object.rb,
app/models/pdc_metadata/name_identifier.rb
Overview
Class for storing a named identifier for the creator in our local representation. This identifier can be a person or organization. **Please Note:** The class name NameIdentifier is being utilized becuase it matches with the DataCite Schema: support.datacite.org/docs/datacite-metadata-schema-v44-mandatory-properties#24-nameidentifier It also matches with the DataCite xml mapping gem that we are utilizing: github.com/CDLUC3/datacite-mapping/blob/master/lib/datacite/mapping/name_identifier.rb
Defined Under Namespace
Classes: Affiliation, Creator, Funder, NameIdentifier, RelatedObject, Resource, Rights, Title
Class Method Summary collapse
-
.fuzzy_match(obj, value) ⇒ Object
Represents a PUL Datacite resource support.datacite.org/docs/datacite-metadata-schema-v44-properties-overview.
Class Method Details
.fuzzy_match(obj, value) ⇒ Object
Represents a PUL Datacite resource support.datacite.org/docs/datacite-metadata-schema-v44-properties-overview
6 7 8 |
# File 'app/models/pdc_metadata/resource.rb', line 6 def self.fuzzy_match(obj, value) obj.key.to_s == value or obj.value.casecmp(value).zero? end |