1 |
43785
|
argiro.kok
|
export class OpenaireProperties {
|
2 |
|
|
//landing Pages
|
3 |
43953
|
argiro.kok
|
private static baseSearchLink="/";
|
4 |
43926
|
konstantin
|
private static searchLinkToPublication = "search/publication?articleId=";
|
5 |
|
|
private static searchLinkToProject = "search/project?projectId=";
|
6 |
|
|
private static searchLinkToPerson = "search/person?personId=";
|
7 |
|
|
private static searchLinkToDataProvider = "search/dataprovider?datasourceId=";
|
8 |
|
|
private static searchLinkToDataset = "search/dataset?datasetId=";
|
9 |
|
|
private static searchLinkToOrganization = "search/organization?organizationId=";
|
10 |
43955
|
argiro.kok
|
//Search pages
|
11 |
44309
|
argiro.kok
|
private static searchLinkToPublications = "search/find/publications";
|
12 |
|
|
private static searchLinkToDataProviders = "search/find/dataproviders";
|
13 |
|
|
private static searchLinkToProjects = "search/find/projects";
|
14 |
|
|
private static searchLinkToDatasets = "search/find/datasets";
|
15 |
|
|
private static searchLinkToOrganizations = "search/find/organizations";
|
16 |
|
|
private static searchLinkToPeople = "search/find/people";
|
17 |
44778
|
argiro.kok
|
public static searchLinkToCompatibleDataProviders = "search/data-providers";
|
18 |
|
|
public static searchLinkToEntityRegistriesDataProviders = "search/entity-registries";
|
19 |
44309
|
argiro.kok
|
//Advanced Search pages
|
20 |
44726
|
argiro.kok
|
public static searchLinkToAdvancedPublications = "search/advanced/publications";
|
21 |
|
|
public static searchLinkToAdvancedProjects = "search/advanced/projects";
|
22 |
|
|
public static searchLinkToAdvancedDatasets = "search/advanced/datasets";
|
23 |
|
|
public static searchLinkToAdvancedDataProviders = "search/advanced/dataproviders";
|
24 |
|
|
public static searchLinkToAdvancedOrganizations = "search/advanced/organizations";
|
25 |
|
|
public static searchLinkToAdvancedPeople = "search/advanced/people";
|
26 |
43785
|
argiro.kok
|
|
27 |
44309
|
argiro.kok
|
|
28 |
43785
|
argiro.kok
|
// Services - APIs
|
29 |
|
|
|
30 |
|
|
// public claimsAPIURL = "http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/"
|
31 |
|
|
private static claimsAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/";
|
32 |
|
|
|
33 |
44048
|
argiro.kok
|
|
34 |
44289
|
argiro.kok
|
// private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
35 |
44300
|
konstantin
|
// private static searchAPIURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
36 |
44048
|
argiro.kok
|
// private searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/";
|
37 |
44766
|
argiro.kok
|
// private static searchAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
38 |
43785
|
argiro.kok
|
|
39 |
44766
|
argiro.kok
|
private static searchAPIURLLAst = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT-new/rest/v2/api/";
|
40 |
44726
|
argiro.kok
|
|
41 |
44766
|
argiro.kok
|
private static searchResourcesAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT-new/rest/v2/api/resources";
|
42 |
44726
|
argiro.kok
|
|
43 |
44035
|
konstantin
|
//private static searchServiveURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
44 |
|
|
private static searchServiveURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
45 |
43785
|
argiro.kok
|
// private static searchServiveURL = "http://services.openaire.eu:8380/search/";
|
46 |
|
|
//private static searchServiveURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
47 |
|
|
|
48 |
|
|
private static searchCrossrefAPIURL = "http://api.crossref.org/works";
|
49 |
|
|
private static searchDataciteAPIURL = "http://search.datacite.org/api";
|
50 |
|
|
private static searchOrcidURL = "https://pub.orcid.org/";
|
51 |
|
|
|
52 |
|
|
// Identifiers
|
53 |
|
|
private static pmidURL = "http://www.ncbi.nlm.nih.gov/pubmed/";
|
54 |
|
|
private static doiURL = "http://dx.doi.org/";
|
55 |
|
|
private static cordisURL = "http://cordis.europa.eu/projects/";
|
56 |
|
|
private static pmcURL = "http://europepmc.org/articles/";
|
57 |
|
|
|
58 |
|
|
// Zenodo's url
|
59 |
|
|
private static zenodo = "https://zenodo.org/";
|
60 |
43926
|
konstantin
|
// Open access link
|
61 |
|
|
private static openAccess = "https://www.openaire.eu/support/faq#article-id-234";
|
62 |
|
|
// Open access repository link
|
63 |
|
|
private static openAccessRepo = "https://www.openaire.eu/support/faq#article-id-310";
|
64 |
|
|
// FP7 link
|
65 |
|
|
private static fp7Guidlines = "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme";
|
66 |
|
|
// H2020 link
|
67 |
|
|
private static h2020Guidlines = "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020";
|
68 |
|
|
// ERC Guidlines
|
69 |
|
|
private static ercGuidlines = "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf";
|
70 |
|
|
// helpdesk link
|
71 |
|
|
private static helpdesk = "https://www.openaire.eu/support/helpdesk";
|
72 |
43785
|
argiro.kok
|
|
73 |
|
|
|
74 |
|
|
//landing Pages' getters
|
75 |
|
|
public static getsearchLinkToPublication():string{
|
76 |
|
|
return this.baseSearchLink + this.searchLinkToPublication;
|
77 |
|
|
}
|
78 |
|
|
public static getsearchLinkToDataset():string{
|
79 |
|
|
return this.baseSearchLink + this.searchLinkToDataset;
|
80 |
|
|
}
|
81 |
|
|
public static getsearchLinkToProject():string{
|
82 |
|
|
return this.baseSearchLink + this.searchLinkToProject;
|
83 |
|
|
}
|
84 |
|
|
public static getsearchLinkToPerson():string{
|
85 |
|
|
return this.baseSearchLink + this.searchLinkToPerson;
|
86 |
|
|
}
|
87 |
|
|
public static getsearchLinkToOrganization():string{
|
88 |
|
|
return this.searchLinkToOrganization;
|
89 |
|
|
}
|
90 |
|
|
public static getsearchLinkToDataProvider():string{
|
91 |
|
|
return this.searchLinkToDataProvider;
|
92 |
|
|
}
|
93 |
43953
|
argiro.kok
|
//searchPages
|
94 |
|
|
public static getLinkToSearchPublications():string{
|
95 |
|
|
return this.baseSearchLink + this.searchLinkToPublications;
|
96 |
|
|
}
|
97 |
43957
|
argiro.kok
|
public static getLinkToSearchProjects():string{
|
98 |
|
|
return this.baseSearchLink + this.searchLinkToProjects;
|
99 |
|
|
}
|
100 |
|
|
public static getLinkToSearchDataProviders():string{
|
101 |
|
|
return this.baseSearchLink + this.searchLinkToDataProviders;
|
102 |
|
|
}
|
103 |
43990
|
konstantin
|
public static getLinkToSearchDatasets():string{
|
104 |
|
|
return this.baseSearchLink + this.searchLinkToDatasets;
|
105 |
|
|
}
|
106 |
|
|
public static getLinkToSearchOrganizations():string{
|
107 |
|
|
return this.baseSearchLink + this.searchLinkToOrganizations;
|
108 |
|
|
}
|
109 |
44035
|
konstantin
|
public static getLinkToSearchPeople():string{
|
110 |
|
|
return this.baseSearchLink + this.searchLinkToPeople;
|
111 |
|
|
}
|
112 |
44766
|
argiro.kok
|
|
113 |
43785
|
argiro.kok
|
// Services - APIs' getters
|
114 |
44766
|
argiro.kok
|
// public static getSearchAPIURL():string{
|
115 |
|
|
// return this.searchAPIURL;
|
116 |
|
|
// }
|
117 |
44726
|
argiro.kok
|
// Services - APIs' getters
|
118 |
|
|
public static getSearchAPIURLLast():string{
|
119 |
|
|
return this.searchAPIURLLAst;
|
120 |
|
|
}
|
121 |
44433
|
argiro.kok
|
//query using full query:
|
122 |
|
|
//
|
123 |
|
|
public static getSearchResourcesAPIURL():string{
|
124 |
|
|
return this.searchResourcesAPIURL;
|
125 |
|
|
}
|
126 |
44343
|
argiro.kok
|
public static getSearchAPIURLForEntity(entityType:string):string{
|
127 |
|
|
var suffix = "";
|
128 |
|
|
if(entityType == "project"){
|
129 |
|
|
suffix="projects/";
|
130 |
|
|
}else if(entityType == "publication"){
|
131 |
|
|
suffix="publications/";
|
132 |
|
|
}else if(entityType == "dataset"){
|
133 |
|
|
suffix="datasets/";
|
134 |
|
|
}else if(entityType == "organization"){
|
135 |
|
|
suffix="organizations/";
|
136 |
|
|
}else if(entityType == "dataprovider"){
|
137 |
44374
|
argiro.kok
|
suffix="datasources/";
|
138 |
44343
|
argiro.kok
|
}else if(entityType == "person"){
|
139 |
44374
|
argiro.kok
|
suffix="people/";
|
140 |
44343
|
argiro.kok
|
}
|
141 |
44766
|
argiro.kok
|
return this.searchAPIURLLAst + suffix;
|
142 |
44343
|
argiro.kok
|
}
|
143 |
43785
|
argiro.kok
|
public static getSearchServiceURL():string{
|
144 |
|
|
return this.searchServiveURL;
|
145 |
|
|
}
|
146 |
|
|
public static getClaimsAPIURL():string{
|
147 |
|
|
return this.claimsAPIURL;
|
148 |
|
|
}
|
149 |
|
|
public static getSearchCrossrefAPIURL():string{
|
150 |
|
|
return this.searchCrossrefAPIURL;
|
151 |
|
|
}
|
152 |
|
|
public static getSearchDataciteAPIURL():string{
|
153 |
|
|
return this.searchDataciteAPIURL;
|
154 |
|
|
}
|
155 |
|
|
public static getSearchOrcidURL():string{
|
156 |
|
|
return this.searchOrcidURL;
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
// Identifiers' getters
|
160 |
|
|
public static getPmidURL():string{
|
161 |
|
|
return this.pmidURL;
|
162 |
|
|
}
|
163 |
|
|
public static getDoiURL():string{
|
164 |
|
|
return this.doiURL;
|
165 |
|
|
}
|
166 |
|
|
public static getCordisURL():string{
|
167 |
|
|
return this.cordisURL;
|
168 |
|
|
}
|
169 |
|
|
public static getPmcURL():string{
|
170 |
|
|
return this.pmcURL;
|
171 |
|
|
}
|
172 |
|
|
|
173 |
|
|
// Zenodo's getter
|
174 |
|
|
public static getZenodoURL():string{
|
175 |
|
|
return this.zenodo;
|
176 |
|
|
}
|
177 |
43926
|
konstantin
|
// Open access getter
|
178 |
|
|
public static getOpenAccess():string{
|
179 |
|
|
return this.openAccess;
|
180 |
|
|
}
|
181 |
|
|
// Open access repository getter
|
182 |
|
|
public static getOpenAccessRepo():string{
|
183 |
|
|
return this.openAccessRepo;
|
184 |
|
|
}
|
185 |
|
|
// FP7 link getter
|
186 |
|
|
public static getFP7Guidlines():string{
|
187 |
|
|
return this.fp7Guidlines;
|
188 |
|
|
}
|
189 |
|
|
// H2020 link getter
|
190 |
|
|
public static getH2020Guidlines():string{
|
191 |
|
|
return this.h2020Guidlines;
|
192 |
|
|
}
|
193 |
|
|
// ERC Guidlines getter
|
194 |
|
|
public static getERCGuidlines():string{
|
195 |
|
|
return this.ercGuidlines;
|
196 |
|
|
}
|
197 |
|
|
// helpdesk link getter
|
198 |
|
|
public static getHelpdesk():string{
|
199 |
|
|
return this.helpdesk;
|
200 |
|
|
}
|
201 |
43785
|
argiro.kok
|
}
|
202 |
43953
|
argiro.kok
|
export class ErrorCodes {
|
203 |
|
|
public LOADING = 0;
|
204 |
|
|
public DONE = 1;
|
205 |
|
|
public NONE = 2;
|
206 |
|
|
public ERROR = 3;
|
207 |
|
|
public NOT_AVAILABLE = 4;
|
208 |
|
|
}
|