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

documents: open aggregation with filters and add more facets for documents search #867

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

vgranata
Copy link
Contributor

@vgranata vgranata commented Jun 9, 2022

  • Marks the aggregation as open if the url contains a corresponding filter including children filters.
  • Adds the ActivatedRoute service for the document route class.

Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
Co-Authored-by: Valeria Granata valeria@chaw.com

Why are you opening this PR?

US: rero/rero-ils#2763

Dependencies

My PR depends on rero-ils#<xx>'s PR(s):

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@github-actions github-actions bot added f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface labels Jun 9, 2022
@vgranata vgranata marked this pull request as ready for review June 20, 2022 15:29
@vgranata vgranata requested review from Garfield-fr, zannkukai, lauren-d and jma and removed request for lauren-d June 20, 2022 15:30
projects/admin/src/app/routes/documents-route.ts Outdated Show resolved Hide resolved
projects/admin/src/app/routes/route.service.ts Outdated Show resolved Hide resolved
projects/admin/src/app/routes/documents-route.ts Outdated Show resolved Hide resolved
@@ -16,6 +16,7 @@
*/

import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
Copy link
Contributor

Choose a reason for hiding this comment

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

same for this file, all changes could be removed

Copy link
Contributor Author

@vgranata vgranata Jun 28, 2022

Choose a reason for hiding this comment

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

I believe these changes are needed because of the changes made in file documents-route.service.ts. The tests fail if I remove these changes.

@jma jma requested review from zannkukai and removed request for jma and zannkukai June 22, 2022 07:14
@vgranata vgranata force-pushed the grv-open-facets branch 3 times, most recently from f000380 to ef0a758 Compare June 23, 2022 13:41
aggregationsBucketSize: 10,
searchFilters: [
{
label: this._translateService.instant('Online'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why you don't use label: _('Online') ? (same as line 108)

* Marks the aggregation as open if the url contains a corresponding
  filter including children filters.
* Adds the ActivatedRoute service for the document route class.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@vgranata vgranata force-pushed the grv-open-facets branch 2 times, most recently from f23d173 to 2988ec2 Compare July 27, 2022 15:32
Co-Authored-by: Valeria Granata <valeria@chaw.com>
@vgranata vgranata merged commit 4b7ea13 into rero:staging Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants