Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/maven/fixes/9.0' into maven/rele…
Browse files Browse the repository at this point in the history
…ase/9.0
  • Loading branch information
metaventis-build committed Nov 11, 2024
2 parents a0cd8ec + ffb472f commit 153680b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static HashMap<String, Serializable> profileToMap(UserProfileEdit profil
newUserInfo.put(CCConstants.PROP_USER_LASTNAME, profile.getLastName());
newUserInfo.put(CCConstants.PROP_USER_EMAIL, profile.getEmail());
newUserInfo.put(CCConstants.CM_PROP_PERSON_ABOUT, profile.getAbout());
newUserInfo.put(CCConstants.CM_PROP_PERSON_SKILLS, new ArrayList(Arrays.asList(profile.getSkills())));
newUserInfo.put(CCConstants.CM_PROP_PERSON_SKILLS, profile.getSkills() != null ? new ArrayList<>(Arrays.asList(profile.getSkills())) : null);
newUserInfo.put(CCConstants.CM_PROP_PERSON_VCARD, profile.getVCard());
if(AuthorityServiceFactory.getLocalService().isGlobalAdmin()) {
newUserInfo.put(CCConstants.CM_PROP_PERSON_EDU_SCHOOL_PRIMARY_AFFILIATION, profile.getPrimaryAffiliation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,26 @@ export class TranslationsService {
if (supportedLanguages.indexOf(params.locale) !== -1) {
selectedLanguage = params.locale;
} else if (params.locale) {
console.warn(
`Url requested language ${params.locale}, ` +
'but it was not found or is not configured in the allowed languages: ' +
supportedLanguages,
);
if (params.locale === 'de') {
const deVariants = supportedLanguages.filter((l) =>
l.startsWith('de-'),
);
if (deVariants?.length === 1) {
selectedLanguage = deVariants[0];
} else {
console.warn(
`Url requested language ${params.locale}, ` +
'but ambiguous variants are present: ' +
supportedLanguages,
);
}
} else {
console.warn(
`Url requested language ${params.locale}, ` +
'but it was not found or is not configured in the allowed languages: ' +
supportedLanguages,
);
}
}
return {
supportedLanguages,
Expand Down
12 changes: 8 additions & 4 deletions config/defaults/src/main/resources/metadatasets/xml/mds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,14 @@
</property>
</query>
<query join="AND" id="mediacenter_filter">
<basequery>{"term":{"type":"ccm:io"}}</basequery>
<basequery>{"bool":{"must":[
{"term":{"type":"ccm:io"}}
],
"must_not":[
{"term":{"aspects":"ccm:mediacenter_statistics"}},
{"term":{"aspects":"ccm:collection_io_reference"}}
]}}
</basequery>
<specialFilter>exclude_system_folder</specialFilter>
<specialFilter>exclude_sites_folder</specialFilter>
<specialFilter>exclude_people_folder</specialFilter>
Expand All @@ -1526,9 +1533,6 @@
{"wildcard":{"properties.cm:name.keyword":{"value":"*${value}*"}}},
{"wildcard":{"properties.cclom:title":{"value":"*${value}*"}}},
{"wildcard":{"properties.ccm:replicationsourceid.keyword":{"value":"*${value}*"}}}
],
"must_not":[
{"term":{"aspects":"ccm:mediacenter_statistics"}}
]}}
</statement>
</property>
Expand Down

0 comments on commit 153680b

Please sign in to comment.