From 5848ed1eecb408259717cc5a3a6920da0f33d890 Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Mon, 4 Jan 2021 13:04:46 -0800 Subject: [PATCH] Add comment. --- app/indexers/plum_jsonld_converter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/indexers/plum_jsonld_converter.rb b/app/indexers/plum_jsonld_converter.rb index e80c95b7..5a2113e9 100644 --- a/app/indexers/plum_jsonld_converter.rb +++ b/app/indexers/plum_jsonld_converter.rb @@ -263,6 +263,8 @@ def collections end end + # Return all collections which aren't boxes (have a barcode) and which + # aren't the LAE collection (which is every item.) def eligible_collections Array.wrap(json["memberOf"]).select do |member| member["barcode"].blank? && member["title"] != "Latin American Ephemera"