diff --git a/content/2016-06.md b/content/2016-06.md index e60cdefd6..51fc62f20 100644 --- a/content/2016-06.md +++ b/content/2016-06.md @@ -285,5 +285,5 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D - 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,'; +# update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where metadata_field_id=3 and text_value = 'Poole, J,'; ``` diff --git a/content/2016-07.md b/content/2016-07.md index 498719a24..74ae2a4ce 100644 --- a/content/2016-07.md +++ b/content/2016-07.md @@ -9,7 +9,7 @@ image = "../images/bg.jpg" ## 2016-07-01 - Add `dc.description.sponsorship` to Discovery sidebar facets and make investors clickable in item view ([#232](https://github.com/ilri/DSpace/issues/232)) -- I think this query should find and replace all authors that have "," at the end of their names (there were 95 matching the select before): +- I think this query should find and replace all authors that have "," at the end of their names: ``` dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$'; @@ -19,3 +19,9 @@ dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and ------------ (0 rows) ``` + +- In this case the select query was showing 95 results before the update + +## 2016-07-02 + +- Comment on DSpace Jira ticket about author lookup search text ([DS-2329](https://jira.duraspace.org/browse/DS-2329)) diff --git a/public/2016-06/index.html b/public/2016-06/index.html index eb330ce1f..22bb6c75a 100644 --- a/public/2016-06/index.html +++ b/public/2016-06/index.html @@ -420,7 +420,7 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D
  • 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,';
    +
    # update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where metadata_field_id=3 and text_value = 'Poole, J,';
     
    diff --git a/public/2016-07/index.html b/public/2016-07/index.html index e5f63ff53..555ff4b2f 100644 --- a/public/2016-07/index.html +++ b/public/2016-07/index.html @@ -83,7 +83,7 @@
    dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
    @@ -94,6 +94,16 @@ dspacetest=# select text_value from  metadatavalue where metadata_field_id=3 and
     (0 rows)
     
    + + +

    2016-07-02

    + + +