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

Clean up discovery.xml #278

Merged
merged 2 commits into from
Oct 19, 2016
Merged

Conversation

alanorth
Copy link
Member

@alanorth alanorth commented Sep 28, 2016

A few improvements to discovery.xml after reading the DSpace manual:

  • Don't use facetLimit for date facets (they are automatically grouped by year, regardless of this setting)
  • Set lower facetLimit for accessibility status facet, as we only expect two values there, and anything else is an error and should not be displayed
  • Use DiscoverySearchFilter class for filters that aren't being used as facets

@alanorth alanorth added this to the 2016-10 milestone Sep 28, 2016
@alanorth alanorth self-assigned this Sep 28, 2016
@alanorth alanorth force-pushed the 5_x-discovery-cleanup branch 2 times, most recently from 717bb34 to 218069f Compare September 29, 2016 10:18
@alanorth
Copy link
Member Author

alanorth commented Oct 14, 2016

Hmm, the commit that changes some filters from configuration.DiscoverySearchFilterFacet to configuration.DiscoverySearchFilter seems to break them in the Atmire content analysis module. Perhaps just the ones that aren't date types...?

First, with the modified filters:

screen shot 2016-10-07 at 19 59 47-fs8

Second, without:

screen shot 2016-10-07 at 19 59 54-fs8

I need to delete that commit, but otherwise the other two are fine.

The DSpace manual says that this property is not used for date
facets because dates are automatically grouped.
On CGSpace the status field is either "Open Access" or "Limited
Access", so we are never expecting more than two values here. If
there are more values for some reason, they will be hidden behind
a "View more" link anyways.
@alanorth alanorth changed the title WIP: Clean up discovery.xml Clean up discovery.xml Oct 19, 2016
@alanorth alanorth merged commit 9bbc1f0 into ilri:5_x-prod Oct 19, 2016
@alanorth alanorth deleted the 5_x-discovery-cleanup branch October 19, 2016 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant