mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-5307] Search claimable profiles by email
This commit is contained in:
@@ -70,10 +70,8 @@ export class ProfileClaimService {
|
|||||||
* @param eperson The eperson to use for the lookup
|
* @param eperson The eperson to use for the lookup
|
||||||
*/
|
*/
|
||||||
private personQueryData(eperson: EPerson): string {
|
private personQueryData(eperson: EPerson): string {
|
||||||
if (eperson) {
|
if (eperson && eperson.email) {
|
||||||
const firstname = eperson.firstMetadataValue('eperson.firstname');
|
return 'person.email:' + eperson.email;
|
||||||
const lastname = eperson.firstMetadataValue('eperson.lastname');
|
|
||||||
return '(dc.title:' + eperson.name + ') OR (person.familyName:' + lastname + ' AND person.givenName:' + firstname + ')';
|
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user