Project

General

Profile

« Previous | Next » 

Revision 60750

[Library|Trunk]
- Cache Interceptor service: add explore home page search queries (stats numbers)
- Result Landing: enhance noindex filter (avoid common title/authors/abstract)
- Search module: remove unused module

View differences:

cache-interceptor.service.ts
23 23

  
24 24
    "/projects/?format=json&refine=true&page=1&size=0&fields=funder",
25 25

  
26
    "/resources/?format=json&query=( oaftype exact datasource  )&refine=true&fields=datasourcetypeuiname&fields=country&fields=datasourceodsubjects&fields=datasourceodcontenttypes&fields=datasourcecompatibilityname&&type=datasources&page=0&size=0"
26
    "/resources/?format=json&query=( oaftype exact datasource  )&refine=true&fields=datasourcetypeuiname&fields=country&fields=datasourceodsubjects&fields=datasourceodcontenttypes&fields=datasourcecompatibilityname&&type=datasources&page=0&size=0",
27

  
28
    "/search/v2/api/datasources/count?format=json", "/search/v2/api/publications/count?format=json", "/search/v2/api/datasets/count?format=json", "/search/v2/api/software/count?format=json", "/search/v2/api/other/count?format=json",
29
    "relresulttype%3Dpublication"
27 30
  ];
28 31

  
29 32

  
......
41 44
  }
42 45

  
43 46
  public checkForCachedRequests(url){
44
    if(url.indexOf("refine=true") !== -1) {
47
    if(url.indexOf("refine=true") !== -1 || url.indexOf("/count?format=json") !== -1 || url.indexOf("relresulttype%3Dpublication") !== -1) {
45 48
      return this.cachingRequests.some(partUrl => (url.indexOf(partUrl) !== -1));
46 49
    }
47 50
    return false;

Also available in: Unified diff