Skip to content

Commit fd0f663

Browse files
[DSC-1529] fix logo file and app config
1 parent 1883d79 commit fd0f663

8 files changed

Lines changed: 22 additions & 18 deletions

File tree

src/app/core/metadata/metadata.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export class MetadataService {
8383
'application/epub+zip', // .epub
8484
];
8585

86-
private fallbackImagePath = environment.metaTagFallbacksConfig.logo;
87-
private defaultPageDescription = environment.metaTagFallbacksConfig.description;
86+
private fallbackImagePath = environment.metaTags.defaultLogo;
87+
private defaultPageDescription = environment.metaTags.defaultDescription;
8888

8989
constructor(
9090
private router: Router,
65 KB
Loading
-62.4 KB
Binary file not shown.

src/config/app-config.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { AttachmentRenderingConfig } from './attachment-rendering.config';
3333
import { SearchResultConfig } from './search-result-config.interface';
3434
import { MiradorConfig } from './mirador-config.interfaces';
3535
import { LoaderConfig } from './loader-config.interfaces';
36-
import { MetaTagFallbacksConfig } from './metatag-fallbacks.config';
36+
import { MetaTagsConfig } from './meta-tags.config';
3737

3838
interface AppConfig extends Config {
3939
ui: UIServerConfig;
@@ -73,7 +73,7 @@ interface AppConfig extends Config {
7373
searchResult: SearchResultConfig;
7474
mirador: MiradorConfig;
7575
loader: LoaderConfig;
76-
metaTagFallbacksConfig: MetaTagFallbacksConfig
76+
metaTags: MetaTagsConfig;
7777
}
7878

7979
/**

src/config/default-app-config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { AttachmentRenderingConfig } from './attachment-rendering.config';
3636
import { SearchResultConfig } from './search-result-config.interface';
3737
import { MiradorConfig } from './mirador-config.interfaces';
3838
import { LoaderConfig } from './loader-config.interfaces';
39+
import { MetaTagsConfig } from './meta-tags.config';
3940

4041
export class DefaultAppConfig implements AppConfig {
4142
production = false;
@@ -769,8 +770,11 @@ export class DefaultAppConfig implements AppConfig {
769770
errorMessageDelay: 15000, // 15 seconds
770771
};
771772

772-
metaTagFallbacksConfig = {
773-
logo: '/assets/images/dspace-cris-logo.png',
774-
description: 'DSpace is the most widely used repository software with more than 3000 installations around the world. It is free, open source and completely customisable to fit the needs of any organisation.'
773+
metaTags: MetaTagsConfig = {
774+
defaultLogo: '/assets/images/dspace-cris-logo-hd.png',
775+
defaultDescription: 'DSpace-CRIS is a comprehensive, free and open-source Research Information Management System (CRIS/RIMS).\n' +
776+
'It is based on DSpace, providing broader functionality and an expanded data model, relying on its large community.\n' +
777+
'It is compliant with and supports key international standards, facilitating interoperability and data transfer.\n' +
778+
'DSpace-CRIS enables secure, integrated and interoperable research information and data management – in a single solution.'
775779
};
776780
}

src/config/meta-tags.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Interface configuration for meta tag fallbacks information
3+
*/
4+
5+
export interface MetaTagsConfig {
6+
defaultLogo: string,
7+
defaultDescription: string
8+
}

src/config/metatag-fallbacks.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/environments/environment.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ export const environment: BuildConfig = {
584584
errorMessageDelay: 2000,
585585
},
586586

587-
metaTagFallbacksConfig: {
588-
logo: '/assets/images/dspace-cris-logo.png',
589-
description: 'DSpace is the most widely used repository software with more than 3000 installations around the world. It is free, open source and completely customisable to fit the needs of any organisation.'
587+
metaTags: {
588+
defaultLogo: '/assets/images/dspace-cris-logo.png',
589+
defaultDescription: 'DSpace is the most widely used repository software with more than 3000 installations around the world. It is free, open source and completely customisable to fit the needs of any organisation.'
590590
}
591591
};

0 commit comments

Comments
 (0)