mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
195 lines
5.2 KiB
JavaScript
195 lines
5.2 KiB
JavaScript
module.exports = {
|
|
// Angular Universal server settings.
|
|
ui: {
|
|
ssl: false,
|
|
host: 'localhost',
|
|
port: 3000,
|
|
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
|
|
nameSpace: '/'
|
|
},
|
|
// The REST API server settings.
|
|
rest: {
|
|
ssl: true,
|
|
host: 'dspace7.4science.cloud',
|
|
port: 443,
|
|
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
|
|
nameSpace: '/server/api'
|
|
},
|
|
// Caching settings
|
|
cache: {
|
|
// NOTE: how long should objects be cached for by default
|
|
msToLive: {
|
|
default: 15 * 60 * 1000, // 15 minutes
|
|
},
|
|
// msToLive: 1000, // 15 minutes
|
|
control: 'max-age=60', // revalidate browser
|
|
autoSync: {
|
|
defaultTime: 0,
|
|
maxBufferSize: 100,
|
|
timePerMethod: {'PATCH': 3} //time in seconds
|
|
}
|
|
},
|
|
/* // Authentications
|
|
auth: {
|
|
target: {
|
|
host: 'https://fis.tiss.tuwien.ac.at',
|
|
page: ''
|
|
}
|
|
},*/
|
|
// Form settings
|
|
form: {
|
|
// NOTE: Map server-side validators to comparative Angular form validators
|
|
validatorMap: {
|
|
required: 'required',
|
|
regex: 'pattern'
|
|
}
|
|
},
|
|
// Notifications
|
|
notifications: {
|
|
rtl: false,
|
|
position: ['top', 'right'],
|
|
maxStack: 8,
|
|
// NOTE: after how many seconds notification is closed automatically. If set to zero notifications are not closed automatically
|
|
timeOut: 5000, // 5 second
|
|
clickToClose: true,
|
|
// NOTE: 'fade' | 'fromTop' | 'fromRight' | 'fromBottom' | 'fromLeft' | 'rotate' | 'scale'
|
|
animate: 'scale'
|
|
},
|
|
// Submission settings
|
|
submission: {
|
|
autosave: {
|
|
// NOTE: which metadata trigger an autosave
|
|
metadata: ['dc.title', 'dc.identifier.doi', 'dc.identifier.pmid', 'dc.identifier.arxiv'],
|
|
// NOTE: every how many minutes submission is saved automatically
|
|
timer: 5
|
|
},
|
|
icons: {
|
|
metadata: [
|
|
/**
|
|
* NOTE: example of configuration
|
|
* {
|
|
* // NOTE: metadata name
|
|
* name: 'dc.author',
|
|
* // NOTE: fontawesome (v5.x) icon classes and bootstrap utility classes can be used
|
|
* style: 'fa-user'
|
|
* }
|
|
*/
|
|
{
|
|
name: 'dc.author',
|
|
style: 'fas fa-user'
|
|
},
|
|
// default configuration
|
|
{
|
|
name: 'default',
|
|
style: ''
|
|
}
|
|
],
|
|
authority: {
|
|
confidence: [
|
|
/**
|
|
* NOTE: example of configuration
|
|
* {
|
|
* // NOTE: confidence value
|
|
* value: 'dc.author',
|
|
* // NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
|
|
* style: 'fa-user'
|
|
* }
|
|
*/
|
|
{
|
|
value: 600,
|
|
style: 'text-success'
|
|
},
|
|
{
|
|
value: 500,
|
|
style: 'text-info'
|
|
},
|
|
{
|
|
value: 400,
|
|
style: 'text-warning'
|
|
},
|
|
// default configuration
|
|
{
|
|
value: 'default',
|
|
style: 'text-muted'
|
|
},
|
|
|
|
]
|
|
}
|
|
}
|
|
},
|
|
// Angular Universal settings
|
|
universal: {
|
|
preboot: true,
|
|
async: true,
|
|
time: false
|
|
},
|
|
// Google Analytics tracking id
|
|
gaTrackingId: '',
|
|
// Log directory
|
|
logDirectory: '.',
|
|
// NOTE: will log all redux actions and transfers in console
|
|
debug: false,
|
|
// Default Language in which the UI will be rendered if the user's browser language is not an active language
|
|
defaultLanguage: 'en',
|
|
// Languages. DSpace Angular holds a message catalog for each of the following languages. When set to active, users will be able to switch to the use of this language in the user interface.
|
|
languages: [{
|
|
code: 'en',
|
|
label: 'English',
|
|
active: true,
|
|
}, {
|
|
code: 'de',
|
|
label: 'Deutsch',
|
|
active: true,
|
|
}, {
|
|
code: 'cs',
|
|
label: 'Čeština',
|
|
active: true,
|
|
}, {
|
|
code: 'nl',
|
|
label: 'Nederlands',
|
|
active: false,
|
|
}],
|
|
// Browse-By Pages
|
|
browseBy: {
|
|
// Amount of years to display using jumps of one year (current year - oneYearLimit)
|
|
oneYearLimit: 10,
|
|
// Limit for years to display using jumps of five years (current year - fiveYearLimit)
|
|
fiveYearLimit: 30,
|
|
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
|
|
defaultLowerLimit: 1900,
|
|
// List of all the active Browse-By types
|
|
// Adding a type will activate their Browse-By page and add them to the global navigation menu, as well as community and collection pages
|
|
// Allowed fields and their purpose:
|
|
// id: The browse id to use for fetching info from the rest api
|
|
// type: The type of Browse-By page to display
|
|
// metadataField: The metadata-field used to create starts-with options (only necessary when the type is set to 'date')
|
|
types: [
|
|
{
|
|
id: 'title',
|
|
type: 'title'
|
|
},
|
|
{
|
|
id: 'dateissued',
|
|
type: 'date',
|
|
metadataField: 'dc.date.issued'
|
|
},
|
|
{
|
|
id: 'author',
|
|
type: 'metadata'
|
|
},
|
|
{
|
|
id: 'subject',
|
|
type: 'metadata'
|
|
}
|
|
]
|
|
},
|
|
item: {
|
|
edit: {
|
|
undoTimeout: 10000 // 10 seconds
|
|
}
|
|
},
|
|
theme: {
|
|
name: 'default',
|
|
}
|
|
};
|