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

I4 add units, I1 remove duplicate collection #14

Merged
merged 11 commits into from
Mar 20, 2020
Merged

Conversation

labradford
Copy link
Collaborator

@labradford labradford commented Mar 16, 2020

Related Issues:

#1 and #4
Issue 1: Child components with the attribute level="collection" are causing duplicate indexing issues. Added code to indexer to ignore child attributes that have the level="collection" attribute. It is not believed that there are any child components that will need to be indexed as collections. We may need to revisit this at a later time if we find that this is not the case.

Issue 4: IU would like to add the Campus level to indexing. This PR included an EAD with the attribute "mainagencycode" and includes modifications to the ead2_config file to add Campus to the index. The campus is now added to the show page tabs for overview and access. It has also been added as a search facet

Screenshots:

Duplicate Collections removed:

image

Indexing Campus:

Access Tab:

image

Facets:

image

Breadcrumbs:

image

@labradford labradford changed the title WIP: I4 add units, I1 remove duplicate collection I4 add units, I1 remove duplicate collection Mar 17, 2020
@@ -97,7 +97,7 @@ class CatalogController < ApplicationController
config.add_facet_field 'geogname_sim', label: 'Place', limit: 10
config.add_facet_field 'places_ssim', label: 'Places', show: false
config.add_facet_field 'access_subjects_ssim', label: 'Subject', limit: 10

config.add_facet_field 'campus_unit_sim', label: 'Campus', helper_method: :render_campus_facet
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
config.add_facet_field 'campus_unit_sim', label: 'Campus', helper_method: :render_campus_facet
config.add_facet_field 'campus_unit_sim', label: 'Campus', helper_method: :render_campus_facet

can we add the linebreak back to make the separation clearer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand this suggestion

Copy link
Collaborator

Choose a reason for hiding this comment

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

You replaced the one line of whitespace between that set of code and the next one

Copy link
Collaborator

Choose a reason for hiding this comment

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

I.e. it went from

  config.add_facet_field 'access_subjects_ssim', label: 'Subject', limit: 10

 # Have BL send all facet field names to Solr, which has been the default

to

    config.add_facet_field 'access_subjects_ssim', label: 'Subject', limit: 10
    config.add_facet_field 'campus_unit_sim', label: 'Campus', helper_method: :render_campus_facet
    # Have BL send all facet field names to Solr, which has been the default

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.

3 participants