diff --git a/content/2016-06.md b/content/2016-06.md index 75714be87..ab506c3ef 100644 --- a/content/2016-06.md +++ b/content/2016-06.md @@ -273,3 +273,17 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D - Run all system updates on the servers and reboot - Start working on config changes for phase three of the metadata migrations + +## 2016-06-30 + +- Wow, there are 95 authors in the database who have ',' at the end of their name: + +``` +#select text_value from metadatavalue where metadata_field_id=3 and text_value like '%,'; +``` + +- We need to use something like this to fix them, need to write a proper regex later: + +``` +# update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where text_value = 'Poole, J,'; +``` diff --git a/public/2016-06/index.html b/public/2016-06/index.html index fdedf5b2f..21daf7d75 100644 --- a/public/2016-06/index.html +++ b/public/2016-06/index.html @@ -397,10 +397,32 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D + +

DSpace 5.1 XMLUI With Altmetric Badge

+ + +

2016-06-30

+ + + +
#select text_value from  metadatavalue where metadata_field_id=3 and text_value like '%,';
+
+ + + +
# update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where text_value = 'Poole, J,';
+
+