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

Some elements don't display #4

Closed
senyzspalding opened this issue Jun 17, 2020 · 1 comment
Closed

Some elements don't display #4

senyzspalding opened this issue Jun 17, 2020 · 1 comment

Comments

@senyzspalding
Copy link
Contributor

This is a know bug
projectblacklight/arclight#898 (comment)

We are mainly looking for note

@senyzspalding senyzspalding transferred this issue from another repository Aug 4, 2020
@gwiedeman
Copy link
Collaborator

This issue is hard for me to look at because I don't have a working example, but it should be an easy fix. It looks like notes should be getting indexed here: https://github.com/SENYLRC/ArclightEmpireADC/blob/master/lib/arclight/traject/ead2_config.rb#L36

Adding config.add_background_field 'note_ssm', label: 'General Note', helper_method: :render_html_tags in the catalog controller might do it. For collection-level I would try adding it here: https://github.com/SENYLRC/ArclightEmpireADC/blob/master/app/controllers/catalog_controller.rb#L274

For the component field, try adding config.add_component_field 'note_ssm', label: 'General Note', helper_method: :render_html_tags here: https://github.com/SENYLRC/ArclightEmpireADC/blob/master/app/controllers/catalog_controller.rb#L332

If you want them displayed at both levels, add both lines. There's a really long tail of EAD elements, so that's generally why it might not display all of them out-of-the-box.

Catalog Controller is an upstream Blacklight thing. There are some helpful docs here: https://github.com/projectblacklight/blacklight/wiki#blacklight-configuration

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

No branches or pull requests

2 participants