Skip to content

Discrepancy between sample identifier format and real identifier #38

@simonlamb

Description

@simonlamb

Within OAI::Provider::Response::Identify, the sample identifier is set as...

r.sampleIdentifier "#{provider.prefix}:#{provider.identifier}"

Which will result in a sample in the form of "oai:test.edu:123"

Within OAI::Provider::Response::RecordResponse the identifier is formatted with the following code:-

def identifier_for(record)
  "#{provider.prefix}/#{record.id}"
end

This results in the format "oai:test.edu/123"

The easiest (and the one less likely to cause issues for existing users) is to change the Identify class to use:-

r.sampleIdentifier "#{provider.prefix}/#{provider.identifier}"

This will accurately reflect a real identifier format returned by the service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions