-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Precursor to #283
3c3b47f
to
1e98b38
Compare
@@ -47,7 +47,8 @@ def output | |||
"date_created" => date_created, | |||
"description" => description, | |||
"series" => series, | |||
"provenance" => provenance | |||
"provenance" => provenance, | |||
"collections_label" => collections |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Precursor to #283