Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Changes indexing strategy for identifiers. Closes #257. #259

Merged
merged 1 commit into from
Jun 23, 2015

Conversation

coblej
Copy link
Contributor

@coblej coblej commented Jun 23, 2015

Removes Ddr::IndexFields::IDENTIFIER.
Adds Ddr::IndexFields::IDENTIFIER_ALL that includes dcterms:identifier, local_id, permanent_id, and pid.

identifier.each { |id| all_ids << id }
all_ids << local_id if local_id
all_ids << permanent_id if permanent_id
all_ids << pid if pid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to make this more compact, try:

def all_identifiers
  identifier + [local_id, permanent_id, pid].compact
end

Removes Ddr::IndexFields::IDENTIFIER.
Adds Ddr::IndexFields::IDENTIFIER_ALL that includes dcterms:identifier, local_id, permanent_id, and pid.
dchandekstark added a commit that referenced this pull request Jun 23, 2015
Changes indexing strategy for identifiers.  Closes #257.
@dchandekstark dchandekstark merged commit ae44961 into develop Jun 23, 2015
@dchandekstark dchandekstark deleted the 257-identifier-indexing branch June 23, 2015 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants