Revision 58626
Added by Argiro Kokogiannaki almost 4 years ago
app.component.ts | ||
---|---|---|
25 | 25 |
<navbar *ngIf="properties && showMenu && community" [portal]="properties.dashboard" [onlyTop]=false |
26 | 26 |
[communityId]="community.id" |
27 | 27 |
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user" |
28 |
[community]=community [showMenu]=showMenu [properties]="properties" [enableSearch]="true"
|
|
28 |
[community]=community [showMenu]=showMenu [properties]="properties" [enableSearch]="false"
|
|
29 | 29 |
searchRoute="/search/find/research-outcomes" |
30 | 30 |
[showHomeMenuItem]="false"></navbar> |
31 | 31 |
<customization *ngIf="properties && community" [properties]="properties" |
... | ... | |
168 | 168 |
}; |
169 | 169 |
this.menuItems = []; |
170 | 170 |
|
171 |
/* this.menuItems.push( |
|
172 |
{ |
|
173 |
rootItem: new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find", "/search/find/publications", "/search/find/datasets", "/search/find/software", "/search/find/other", "/search/find/projects", "/search/find/dataproviders"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
174 |
items: [ |
|
175 |
new MenuItem("", "Research outcomes", "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
176 |
new MenuItem("", "Projects", "", "/search/find/projects/", false, ["project"], ["/search/find/projects"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
177 |
new MenuItem("", "Content Providers", "", "/search/find/dataproviders", false, ["datasource"], ["/search/find/dataproviders"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
178 |
] |
|
179 |
});*/ |
|
180 |
|
|
181 | 171 |
this.menuItems.push({ |
182 | 172 |
rootItem: new MenuItem("deposit", "Deposit", "", "/participate/deposit/learn-how", false, [], ["/participate/deposit/learn-how"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
183 | 173 |
items: [] |
... | ... | |
186 | 176 |
{ |
187 | 177 |
rootItem: new MenuItem("link", "Link", "", "/participate/claim", false, [], ["/participate/claim"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
188 | 178 |
items: [ |
189 |
/*new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], this.properties.environment != "development" ? {} : {communityId: community.communityId}),
|
|
190 |
new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {})*/
|
|
179 |
new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
180 |
new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {}) |
|
191 | 181 |
] |
192 | 182 |
}); |
193 | 183 |
this.menuItems.push( |
194 | 184 |
{ |
185 |
rootItem: new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find", "/search/find/publications", "/search/find/datasets", "/search/find/software", "/search/find/other", "/search/find/projects", "/search/find/dataproviders"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
186 |
items: [ |
|
187 |
new MenuItem("", "Research outcomes", "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
188 |
new MenuItem("", "Projects", "", "/search/find/projects/", false, ["project"], ["/search/find/projects"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
189 |
new MenuItem("", "Content Providers", "", "/search/find/dataproviders", false, ["datasource"], ["/search/find/dataproviders"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
|
190 |
] |
|
191 |
}); |
|
192 |
this.menuItems.push( |
|
193 |
{ |
|
195 | 194 |
rootItem: new MenuItem("about", "About", "", "", false, [], [], {}), |
196 | 195 |
items: [ |
197 | 196 |
new MenuItem("", "Supporting organizations", "", "/organizations", false, [], ["/organizations"], this.properties.environment != "development" ? {} : {communityId: community.communityId}), |
Also available in: Unified diff
[Connect|Trunk]
Remove search bar in menu
Add search form back for search results, projects, datasources
Rearrange the menu items and add back search menu
Community page: add search form