Revision 52452
Added by Argiro Kokogiannaki over 6 years ago
modules/uoa-connect-portal/trunk/connect-production-properties.json | ||
---|---|---|
2 | 2 |
"enablePiwikTrack" : true, |
3 | 3 |
"enableHelper" : true, |
4 | 4 |
"useCache" : true, |
5 |
"showContent" : false, |
|
5 | 6 |
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/", |
6 | 7 |
"framesAPIURL" : "https://beta.openaire.eu/stats3/", |
7 | 8 |
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/", |
modules/uoa-connect-portal/trunk/prepareDeploy.sh | ||
---|---|---|
1 | 1 |
cp connect-production-properties.json src/assets/env-properties.json; |
2 | 2 |
rm -rf src/assets/common-assets/.svn/; |
3 | 3 |
rm -rf src/app/openaireLibrary/.svn/; |
4 |
pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts; |
|
4 | 5 |
npm run build:dynamic; |
5 | 6 |
rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh; |
6 | 7 |
echo 'Ready!'; |
modules/uoa-connect-portal/trunk/src/app/community/community.component.html | ||
---|---|---|
24 | 24 |
</blockquote> |
25 | 25 |
<div *ngIf="community.subjects != null"> |
26 | 26 |
<span *ngFor="let subject of community.subjects.slice(0,10) let i=index"> |
27 |
<span *ngIf="subject != ''" class="uk-label">{{subject}}</span> |
|
27 |
<span *ngIf="subject != ''" class="uk-label uk-margin-small-bottom">{{subject}}</span>
|
|
28 | 28 |
<!-- <span *ngIf=" i<9 && i<(community.subjects.length-1)"> </span> --> |
29 | 29 |
</span> |
30 | 30 |
<span *ngIf="showAll"> |
modules/uoa-connect-portal/trunk/src/app/app.component.ts | ||
---|---|---|
36 | 36 |
</span></a> |
37 | 37 |
</cookie-law> |
38 | 38 |
<bottom *ngIf= "isClient && showMenu && !community" [menuItems]=bottomMenuItems></bottom> |
39 |
<bottom *ngIf= "isClient && community" [showSocialButton] = "false" [showMenu]=false [showDnet] =false showOpenaire=true [(communityId)]="community.id" [(APIUrl)]="properties.adminToolsAPIURL" ></bottom>
|
|
39 |
<bottom *ngIf= "isClient && community" [showSocialButton] = "false" [showMenu]=true [showDnet] =false showOpenaire=true [(communityId)]="community.id" [(APIUrl)]="properties.adminToolsAPIURL" [menuItems]=bottomMenuItems ></bottom>
|
|
40 | 40 |
|
41 | 41 |
` |
42 | 42 |
|
... | ... | |
116 | 116 |
new MenuItem("","Blog","https://blogs.openaire.eu/","",false,[],[],{}), |
117 | 117 |
new MenuItem("","Contact us","https://beta.openaire.eu/contact-us","",false,[],[],{}) |
118 | 118 |
]; |
119 |
if(this.properties.showContent){ |
|
120 |
this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{})); |
|
121 |
} |
|
119 | 122 |
|
120 | 123 |
}else{ |
121 |
this.bottomMenuItems = [] |
|
124 |
this.bottomMenuItems = [ |
|
125 |
new MenuItem("","About","","/about",false,[],["/about"],(typeof document !== 'undefined' && ConnectHelper.isProduction(document.location.hostname))?{}:{communityId:community.communityId}), |
|
126 |
new MenuItem("","Organizations","","/organizations",false,[],["/organizations"],(typeof document !== 'undefined' && ConnectHelper.isProduction(document.location.hostname))?{}:{communityId:community.communityId}) |
|
127 |
]; |
|
128 |
if(this.properties.showContent){ |
|
129 |
this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{})); |
|
130 |
} |
|
122 | 131 |
} |
123 | 132 |
this.showMenu = true; |
124 | 133 |
|
modules/uoa-connect-portal/trunk/src/app/app-routing.module.ts | ||
---|---|---|
12 | 12 |
// { path: 'communities', loadChildren: './communities/communities.module#CommunitiesModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
13 | 13 |
{ path: 'my-communities', loadChildren: './my-communities/communities.module#MyCommunitiesModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
14 | 14 |
{ path: 'about', loadChildren: './htmlPages/about/aboutPage.module#AboutPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
15 |
{ path: 'content', loadChildren: './content/contentPage.module#ContentPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
|
15 | 16 |
{ path: 'organizations', loadChildren: './htmlPages/organizations/organizationsPage.module#OrganizationsPageModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
16 | 17 |
{ path: 'monitor', loadChildren: './statistics/statistics.module#StatisticsModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
17 | 18 |
{ path: 'search/publication', loadChildren: './landingPages/publication/libPublication.module#LibPublicationModule', resolve: { envSpecific: EnvironmentSpecificResolver }}, |
modules/uoa-connect-portal/trunk/src/assets/env-properties.json | ||
---|---|---|
2 | 2 |
"enablePiwikTrack" : false, |
3 | 3 |
"enableHelper" : true, |
4 | 4 |
"useCache" : false, |
5 |
"showContent" : true, |
|
5 | 6 |
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/", |
6 | 7 |
"framesAPIURL" : "https://beta.openaire.eu/stats3/", |
7 | 8 |
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/", |
... | ... | |
55 | 56 |
|
56 | 57 |
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=", |
57 | 58 |
|
58 |
"adminToolsAPIURL" :"http://duffy.di.uoa.gr:8080/uoa-admin-tools",
|
|
59 |
"adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools",
|
|
59 | 60 |
|
60 | 61 |
"adminToolsCommunity" :"openaire", |
61 | 62 |
|
Also available in: Unified diff
Add new Content Page, add property in order to add or not the link in bottom menu