Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index collection memberships from Figgy. #299

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Conversation

tpendragon
Copy link
Contributor

Precursor to #283

@@ -47,7 +47,8 @@ def output
"date_created" => date_created,
"description" => description,
"series" => series,
"provenance" => provenance
"provenance" => provenance,
"collections_label" => collections
Copy link
Member

Choose a reason for hiding this comment

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

Maybe call this collection_labels since it's a multivalue field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't, the wildcard field is _label in the solr schema.

Copy link
Member

Choose a reason for hiding this comment

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

bummer


def eligible_collections
Array.wrap(json["memberOf"]).select do |member|
member["barcode"].blank? && member["title"] != "Latin American Ephemera"
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment explaining these checks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@tpendragon tpendragon requested a review from hackartisan January 4, 2021 21:05
@tpendragon tpendragon merged commit 8b4fde4 into master Jan 4, 2021
@tpendragon tpendragon deleted the index_collections branch January 4, 2021 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants