Project

General

Profile

« Previous | Next » 

Revision 60480

[Trunk | Library]:
1. orcidWork.ts: When description is >5000 characters, do not send it to ORCID work.
2. orcid.component.ts: When redirecting to /orcid by ORCID UI (source in not "openaire"), do not query for new tokens if user already has valid tokens in OpenAIRE.

View differences:

orcidWork.ts
62 62
  }
63 63

  
64 64
  public static resultLandingInfoConvert(resultLandingInfo: ResultLandingInfo, putCode: string) : WorkV3_0 {
65
    let description_limit: number = 5000;
66

  
65 67
    let work: WorkV3_0 = {};
66 68
    // let work = {};
67 69

  
......
104 106
      work['journal-title'] = { "value": resultLandingInfo.journal.journal };
105 107
    }
106 108

  
107
    if(resultLandingInfo.description) {
109
    if(resultLandingInfo.description && resultLandingInfo.description.length < description_limit) {
108 110
      work['short-description'] = resultLandingInfo.description;
109 111
    }
110 112

  

Also available in: Unified diff