Project

General

Profile

« Previous | Next » 

Revision 61003

[Trunk | Library]:
1. result-preview.ts: In Project interface, added optional boolean field "validated" (parsed in landing pages to show validated projects by funders).
2. parsingFunctions.class.ts: In method "parseFundingByProjects()" added parsing for "validated" field.
3. fundedBy.component.ts: ticket #6228 - Show "Validated by funder" message if "validate" field is true.
4. dataProvider.component.ts: [Bug fix] In method "getDataProviderAggregationStatus()" set "aggregationStatusIsInitialized" to true on success and on error
(not on complete, because after error it never completes and keeps on loading).
5. orcid.component.ts: [Bug fix]
a. In method "getToken()" set "showLoading" to false on success and on error (after error there is no complete).
b. In method "getPersonalDetails()" move "setTimeout" from complete to error.
6. showPublisher.component.ts: [Bug fix] Add "UTC" in pipe when showing published date ({{publishDate | date: 'dd MMM yyyy' : 'UTC'}}).
7. timeout-interceptor.service.ts: Timeout only GET requests.

View differences:

orcid.component.ts
105 105
          }
106 106
          // this.message = "Thank you for connecting your ORCID iD with OpenAIRE! Please close this window and continue!";
107 107
        }
108
        this.showLoading = false;
108 109
      },
109 110
      error => {
111
        this.showLoading = false;
112

  
110 113
        this.gotToken = true;
111 114

  
112 115
        console.error("Error getting token from code: "+code, error);
113 116
        this.message = "An error occured while trying to connect your ORCID iD with OpenAIRE. Please try again!";
114
      },
115
      () => {
116
        this.showLoading = false;
117 117
      }
118 118
    )
119 119
  }
......
147 147
            } else {
148 148
              this._router.navigate([properties.searchLinkToAdvancedResults], {});
149 149
            }
150
          },
151
          error => {
152
            setTimeout(() => {
153
              this.message += "<div class='uk-margin-top'>If you are not authomatically redirected, please navigate to our search pages.</div>";
154
            }, 3000);
150 155
          }));
151 156
        } else {
152 157
          this.getToken(this.code);
153 158
        }
154
      },
155
      () => {
156
        if(this.gotToken) {
157
          setTimeout(() => {
158
            this.message += "<div class='uk-margin-top'>If you are not authomatically redirected, please navigate to our search pages.</div>";
159
          }, 3000);
160
        }
161 159
      }
162 160
    ));
163 161
  }
......
175 173
  private updateUrl(url: string) {
176 174
    this._meta.updateTag({content: url}, "property='og:url'");
177 175
  }
178
}
176
}

Also available in: Unified diff