Change to add doi to metadata reference only if it is not already there
Closes #1105 (closed). Check if the reference is already in the metadata to avoid appending it again.
Closes #1105 (closed). Check if the reference is already in the metadata to avoid appending it again.