f1e46be3cc
1. contexts.service.ts: Add BehaviorSubject for getting communities (with status) only once (providedIn: 'root') - used by searchResearchResults.component.ts & claimContextSearchForm.component.ts. 2. claimContextSearchForm.component.ts & claimContextSearchForm.module.ts: Use 'getPublicCommunitiesByState()' instead of 'getPublicCommunities()' (contexts.service.ts) | Do not import in module (singlet$ 3. refineResults.class.ts: In 'includeValue()' add checks if name is empty or undefined (do not include filter value in that case). 4. searchResearchResults.component.ts: For 'community' filter, add query for getting communities with public status and filtering values accordingly (timeout 300ms after filters request is over). 5. searchResearchResults.component.ts: & searchDataProviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts: Add methods "filtersReturned()" and "resultsReturned()" - when refine or search query returns with no results or page is out of bounds, stop the other query and initialize statuses and values (stop loading when we know there are no results). 6. newSearchPage.component.html: Improve some checks to better display filters and results (out of bounds message, loading for filters, etc..). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59648 d315682c-612b-4755-9ff5-7f18f6832af3 |
||
---|---|---|
.. | ||
claims.service.ts | ||
claimsService.module.ts | ||
contexts.service.ts | ||
contextsService.module.ts | ||
searchCrossref.service.ts | ||
searchCrossrefService.module.ts | ||
searchDatacite.service.ts | ||
searchDataciteService.module.ts | ||
searchOrcid.service.ts |