Skip to content

Commit d2c0749

Browse files
[DURACOM-426] add config example, remove unnecessary config
1 parent 36e34a2 commit d2c0749

2 files changed

Lines changed: 57 additions & 16 deletions

File tree

config/config.example.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ submission:
235235
style: text-muted
236236
icon: fa-circle-xmark
237237

238+
# Icons to be displayed next to an authority controlled value, to give indication of the source.
239+
sourceIcons:
240+
# Example of configuration for authority logo based on sources.
241+
# The condigured icon will be displayed next to the authority value in submission and on item page or search results.
242+
- source: orcid
243+
- path: assets/images/orcid.logo.icon.svg
238244
# Fallback language in which the UI will be rendered if the user's browser language is not an active language
239245
fallbackLanguage: en
240246

@@ -673,3 +679,54 @@ followAuthorityMaxItemLimit: 100
673679
# The maximum number of metadata values to process for each metadata key
674680
# when following authority metadata values.
675681
followAuthorityMetadataValuesLimit: 5
682+
683+
# Configuration for customization of search results
684+
searchResults:
685+
# Metadata fields to be displayed in the search results under the standard ones
686+
additionalMetadataFields:
687+
- dc.contributor.author
688+
- dc.date.issued
689+
- dc.type
690+
# Metadata fields to be displayed in the search results for the author section
691+
authorMetadata:
692+
- dc.contributor.author
693+
- dc.creator
694+
- dc.contributor.*
695+
696+
# Configuration of metadata to be displayed in the item metadata link view popover
697+
metadataLinkViewPopoverData:
698+
# Metdadata list to be displayed for entities without a specific configuration
699+
fallbackMetdataList:
700+
- dc.description.abstract
701+
- dc.description.note
702+
# Configuration for each entity type
703+
entityDataConfig:
704+
- entityType: Person
705+
# Descriptive metadata (popover body)
706+
metadataList:
707+
- person.affiliation.name
708+
- person.email
709+
# Title metadata (popover header)
710+
titleMetadataList:
711+
- person.givenName
712+
- person.familyName
713+
# Configuration for identifier subtypes, based on metadata like dc.identifier.ror where ror is the subtype.
714+
# This is used to map the layout of the identifier in the popover and the icon displayed next to the metadata value.
715+
identifierSubtypes:
716+
- name: ror
717+
icon: assets/images/ror.logo.icon.svg
718+
iconPosition: IdentifierSubtypesIconPositionEnum.LEFT
719+
link: https://ror.org
720+
721+
# The maximum number of item to process when following authority metadata values.
722+
followAuthorityMaxItemLimit: 100
723+
724+
# The maximum number of metadata values to process for each metadata key
725+
# when following authority metadata values.
726+
followAuthorityMetadataValuesLimit: 5;
727+
728+
# When the search results are retrieved, for each item type the metadata with a valid authority value are inspected.
729+
# Referenced items will be fetched with a find all by id strategy to avoid individual rest requests to efficiently display the search results.
730+
followAuthorityMetadata:
731+
- type: Publication
732+
metadata: dc.contributor.author

src/config/default-app-config.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -734,22 +734,6 @@ export class DefaultAppConfig implements AppConfig {
734734
metadataList: ['person.affiliation.name', 'person.email', 'person.identifier.orcid', 'dc.description.abstract'],
735735
titleMetadataList: ['person.givenName', 'person.familyName' ],
736736
},
737-
{
738-
entityType: 'OrgUnit',
739-
metadataList: ['organization.parentOrganization', 'organization.identifier.ror', 'dc.description.abstract'],
740-
},
741-
{
742-
entityType: 'Project',
743-
metadataList: ['oairecerif.project.status', 'dc.description.abstract'],
744-
},
745-
{
746-
entityType: 'Funding',
747-
metadataList: ['oairecerif.funder', 'oairecerif.fundingProgram', 'dc.description.abstract'],
748-
},
749-
{
750-
entityType: 'Publication',
751-
metadataList: ['dc.identifier.doi', 'dc.identifier.uri', 'dc.description.abstract'],
752-
},
753737
],
754738
};
755739

0 commit comments

Comments
 (0)