author profile links
@@ -617,13 +617,14 @@ function getAuthorFormData(author, isPerson) {
// Person-exclusive fields
if (isPerson) {
+ let hydroshare_user_id = author.profileUrl.replace(/\D/g,'');
formData.append("creator-" + (author.order - 1) + "-name", author.name);
- formData.append("creator-" + (author.order - 1) + "-description", author.profileUrl !== null ? author.profileUrl : "");
+ formData.append("creator-" + (author.order - 1) + "-hydroshare_user_id", hydroshare_user_id !== null ? hydroshare_user_id : "");
}
else {
// Empty values still needed for valid request
formData.append("creator-" + (author.order - 1) + "-name", "");
- formData.append("creator-" + (author.order - 1) + "-description", "");
+ formData.append("creator-" + (author.order - 1) + "-hydroshare_user_id", "");
}
return formData;
