-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add initial EDTFYear processor #68
Add initial EDTFYear processor #68
Conversation
@seth-shaw-unlv how do you want to take this forward? i did a test in a vanilla (bartik) D9 instance built from the playbook.
|
@elizoller, first, let's get this merged. 😁 Second, add instructions for creating the slider facet to the Islandora 8 Cookbook. Ideally we would be able to add the facet to islandora_defaults, but I don't think we should while the D9 solution requires a patch. |
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 tested with date intervals and single dates as well as configuration to allow single or multiple fields. Seems good to go from my perspective.
@elizoller, do you have admin rights to squash and merge despite Travis holding it up? |
i do not :( |
@dannylamb, I know you're in a meeting, but would you please use your admin powers to merge this based on @elizoller's review when you are done? |
cookbook PR up: Islandora-Labs/Islandora-Cookbook#13 |
@elizoller, it looks like it is no longer looking for Travis' approval. You should be able to merge it now. I'll checkout the cookbook in a minute. |
@seth-shaw-unlv FYI, on applying this to an existing Islandora instance, when actually using the facet I get a PHP warning. I haven't had a chance to dig into the data yet.
|
Huh. Let me know what you find with this. I didn't run into this myself and I don't know how to replicate it. |
GitHub Issue: Partially addresses Islandora/documentation#962
What does this Pull Request do?
Builds on ASU's IssueYear search_api plugin to transform EDTF dates into Year integers suitable for searching and facets. This one also supports intervals and sets.
This one also allows sites to pick which EDTF fields they want to include and, for open intervals, the beginning and end years to use. (We currently need set year boundaries; we can't support truly open intervals, yet.)
What's new?
src/Plugin/search_api/processor/EDTFYear.php
(i.e. Regeneration activity, etc.)? If added to a search index config a site would have to re-index (as usual for adding search fields).
How should this be tested?
/admin/config/search/search-api/index/default_solr_index/processors
)/admin/config/search/search-api/index/default_solr_index/fields
)Additional Notes
The facets range widget (the primary use-case for this processor) has a bug for D9 (https://www.drupal.org/project/facets/issues/3186953 and https://www.drupal.org/project/facets/issues/3153622) but @elizoller was able to get it working. It should be okay for D8 sites.
Interested parties
@Islandora/8-x-committers, esp @elizoller