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
|
||||
*/
|
||||
private personQueryData(eperson: EPerson): string {
|
||||
if (eperson) {
|
||||
const firstname = eperson.firstMetadataValue('eperson.firstname');
|
||||
const lastname = eperson.firstMetadataValue('eperson.lastname');
|
||||
return '(dc.title:' + eperson.name + ') OR (person.familyName:' + lastname + ' AND person.givenName:' + firstname + ')';
|
||||
if (eperson && eperson.email) {
|
||||
return 'person.email:' + eperson.email;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user