environment.defaults.ts 3.67 KB
Newer Older
1
2
// This file should contains all the defaults settings shared in all environment files
// If you want to override properties for specific environment, do it in these files
3

4
import {ErrorBackendKeyEnum} from "@app/shared/enums/error-backend-key.enum";
5
import {ThemeEnum} from "@app/shared/enums/theme.enum";
Florent POITTEVIN's avatar
Florent POITTEVIN committed
6
import {Enums} from "@enums";
7
8
9
10
import {
  AppRoutesEnum,
  RoutesEnum,
} from "@shared/enums/routes.enum";
11
import {ViewModeTableEnum} from "@shared/enums/view-mode-table.enum";
12
import {defaultSolidifyEnvironment} from "solidify-frontend";
13
import {DlcmEnvironment} from "./environment.defaults.model";
14
15

export const defaultEnvironment: DlcmEnvironment = {
16
  ...defaultSolidifyEnvironment,
17
  appTitle: "DLCM - Portal",
18
  appDescription: "Platform for archiving research data",
19
20
  listTagsComponentsWhereClickAllowToEnterInEditMode: [
    "dlcm-shared-table-person-orgunit-role-container",
21
    "dlcm-shared-table-orgunit-container",
22
  ],
Florent POITTEVIN's avatar
Florent POITTEVIN committed
23
  defaultLanguage: Enums.Language.LanguageEnum.en,
24
  appLanguages: [Enums.Language.LanguageEnum.en, Enums.Language.LanguageEnum.fr],
25
26
27
28
29
30
31
32
33
34
  appLanguagesTranslate: Enums.Language.LanguageEnumTranslate,
  appThemes: [ThemeEnum.dlcm, ThemeEnum.yareta, ThemeEnum.olos],
  appThemesTranslate: [
    {key: ThemeEnum.dlcm, value: "DLCM"},
    {key: ThemeEnum.yareta, value: "Yareta"},
    {key: ThemeEnum.olos, value: "Olos"},
  ],
  theme: ThemeEnum.dlcm,
  routeHomePage: RoutesEnum.homePage,
  routeSegmentEdit: AppRoutesEnum.edit,
35
  googleAnalyticsLearnMorePage: undefined,
36
37
38
  displayPrivacyPolicyAndTermsOfUseApprovalDialog: false,
  privacyPolicyLink: "",
  termsOfUseLink: "",
39

Homada.Boumedane's avatar
Homada.Boumedane committed
40
  // Base URL For Module Applications (override by AppAction.LoadModules)
41
  admin: "http://localhost:16105/dlcm/admin",
42

43
44
45
46
  // Documentation
  documentationTocApisGuide: "DLCM-APIs-toc.html",
  documentationTocIntegrationGuide: "DLCM-IntegrationGuide-toc.html",
  documentationTocToolsGuide: "DLCM-ToolsGuide-toc.html",
47
  documentationTocUserGuidePath: undefined,
48
49
  documentationTocUserGuide: undefined,

50
  // Orcid
51
  orcidQueryParam: "orcid",
52
  orcidAuthorizeUrl: "https://orcid.org/oauth/authorize",
53
  orcidUrl: "http://orcid.org",
54

55
56
57
  // Access request
  accessRequestRoute: "accessRequest",

58
  institutionUrl: "https://www.unige.ch/",
59

60
61
62
  // === Solidify Upload Environment ===
  errorUploadDuplicateFile: ErrorBackendKeyEnum.UPLOAD_DUPLICATE_DATA_FILES,

63
64
  // Home
  defaultHomeViewModeTableEnum: ViewModeTableEnum.tiles,
65
66
67
  defaultPageSizeHomePage: 10,
  defaultHomeOrgUnitSize: 1000,
  carouselUrl: undefined,
68
  frequencyChangeCarouselTileInSecond: 5,
Florent Poittevin's avatar
Florent Poittevin committed
69
  twitterAccount: "dlcm_ch",
70
  twitterTweetToDisplay: 4,
Florent Poittevin's avatar
Florent Poittevin committed
71

72
73
  urlNationalArchivePronom: "https://www.nationalarchives.gov.uk/PRONOM/",

74
  doiLink: "https://doi.org/",
75
  oaiProviderUrlEnd: "/oai-provider/oai?verb=Identify&smartView=dlcm_oai2.xsl",
76

Florent Poittevin's avatar
Florent Poittevin committed
77
  // Polling
78
  refreshTabStatusCounterIntervalInSecond: 60,
Florent Poittevin's avatar
Florent Poittevin committed
79
  refreshOrderAvailableIntervalInSecond: 5,
80
  refreshNotificationInboxAvailableIntervalInSecond: 60,
81
  refreshDepositSubmittedIntervalInSecond: 2,
82
  refreshSipProcessIntervalInSecond: 2,
83

84
  // Errors
85
86
87
  httpErrorKeyToSkipInErrorHandler: [
    ErrorBackendKeyEnum.UPLOAD_DUPLICATE_DATA_FILES,
  ],
88
89
90
91
92
93

  archivalStorageName: [
    "File",
    "S2",
  ],
  defaultStorageIndex: 0,
94
  fileSizeLimitForChecksumGenerationInMegabytes: 20,
95
96

  listFacetUseOperatorAnd: [Enums.Facet.Name.CREATOR_FACET],
97
98
99
100
101
102
103
104
105
};

/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
106
// import 'zone.js/plugins/zone-error';  // Included with Angular CLI.