Add notes for 2016-07-02

This commit is contained in:
Alan Orth 2016-07-02 17:04:52 +03:00
parent 1544a5cade
commit 4335039e50
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
8 changed files with 46 additions and 10 deletions

View File

@ -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,';
```

View File

@ -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))

View File

@ -420,7 +420,7 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D
<li>We need to use something like this to fix them, need to write a proper regex later:</li>
</ul>
<pre><code># update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where text_value = 'Poole, J,';
<pre><code># update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where metadata_field_id=3 and text_value = 'Poole, J,';
</code></pre>
</section>

View File

@ -83,7 +83,7 @@
<ul>
<li>Add <code>dc.description.sponsorship</code> to Discovery sidebar facets and make investors clickable in item view (<a href="https://github.com/ilri/DSpace/issues/232">#232</a>)</li>
<li>I think this query should find and replace all authors that have &ldquo;,&rdquo; at the end of their names (there were 95 matching the select before):</li>
<li>I think this query should find and replace all authors that have &ldquo;,&rdquo; at the end of their names:</li>
</ul>
<pre><code>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)
</code></pre>
<ul>
<li>In this case the select query was showing 95 results before the update</li>
</ul>
<h2 id="2016-07-02:edc14796891c14dec087b4bb89c38aa9">2016-07-02</h2>
<ul>
<li>Comment on DSpace Jira ticket about author lookup search text (<a href="https://jira.duraspace.org/browse/DS-2329">DS-2329</a>)</li>
</ul>
</section>
<footer>

View File

@ -71,7 +71,7 @@
</div>
</header>
<div>
2016-07-01 Add dc.description.sponsorship to Discovery sidebar facets and make investors clickable in item view (#232) I think this query should find and replace all authors that have &ldquo;,&rdquo; at the end of their names (there were 95 matching the select before): dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$'; UPDATE 95 dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and text_value ~ '^.+?,$'; text_value
2016-07-01 Add dc.description.sponsorship to Discovery sidebar facets and make investors clickable in item view (#232) I think this query should find and replace all authors that have &ldquo;,&rdquo; 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 ~ '^.+?,$'; UPDATE 95 dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and text_value ~ '^.+?,$'; text_value ------------ (0 rows) In this case the
</div>
<footer>

View File

@ -21,7 +21,7 @@
&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;dc.description.sponsorship&lt;/code&gt; to Discovery sidebar facets and make investors clickable in item view (&lt;a href=&#34;https://github.com/ilri/DSpace/issues/232&#34;&gt;#232&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;I think this query should find and replace all authors that have &amp;ldquo;,&amp;rdquo; at the end of their names (there were 95 matching the select before):&lt;/li&gt;
&lt;li&gt;I think this query should find and replace all authors that have &amp;ldquo;,&amp;rdquo; at the end of their names:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, &#39;(^.+?),$&#39;, &#39;\1&#39;) where metadata_field_id=3 and text_value ~ &#39;^.+?,$&#39;;
@ -31,6 +31,16 @@ dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and
------------
(0 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;In this case the select query was showing 95 results before the update&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;2016-07-02:edc14796891c14dec087b4bb89c38aa9&#34;&gt;2016-07-02&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Comment on DSpace Jira ticket about author lookup search text (&lt;a href=&#34;https://jira.duraspace.org/browse/DS-2329&#34;&gt;DS-2329&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
@ -383,7 +393,7 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D
&lt;li&gt;We need to use something like this to fix them, need to write a proper regex later:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# update metadatavalue set text_value = regexp_replace(text_value, &#39;(Poole, J),&#39;, &#39;\1&#39;) where text_value = &#39;Poole, J,&#39;;
&lt;pre&gt;&lt;code&gt;# update metadatavalue set text_value = regexp_replace(text_value, &#39;(Poole, J),&#39;, &#39;\1&#39;) where metadata_field_id=3 and text_value = &#39;Poole, J,&#39;;
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>

View File

@ -75,7 +75,7 @@
</div>
</header>
<div>
2016-07-01 Add dc.description.sponsorship to Discovery sidebar facets and make investors clickable in item view (#232) I think this query should find and replace all authors that have &ldquo;,&rdquo; at the end of their names (there were 95 matching the select before): dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$'; UPDATE 95 dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and text_value ~ '^.+?,$'; text_value
2016-07-01 Add dc.description.sponsorship to Discovery sidebar facets and make investors clickable in item view (#232) I think this query should find and replace all authors that have &ldquo;,&rdquo; 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 ~ '^.+?,$'; UPDATE 95 dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and text_value ~ '^.+?,$'; text_value ------------ (0 rows) In this case the
</div>
<footer>

View File

@ -21,7 +21,7 @@
&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;dc.description.sponsorship&lt;/code&gt; to Discovery sidebar facets and make investors clickable in item view (&lt;a href=&#34;https://github.com/ilri/DSpace/issues/232&#34;&gt;#232&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;I think this query should find and replace all authors that have &amp;ldquo;,&amp;rdquo; at the end of their names (there were 95 matching the select before):&lt;/li&gt;
&lt;li&gt;I think this query should find and replace all authors that have &amp;ldquo;,&amp;rdquo; at the end of their names:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, &#39;(^.+?),$&#39;, &#39;\1&#39;) where metadata_field_id=3 and text_value ~ &#39;^.+?,$&#39;;
@ -31,6 +31,16 @@ dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and
------------
(0 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;In this case the select query was showing 95 results before the update&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;2016-07-02:edc14796891c14dec087b4bb89c38aa9&#34;&gt;2016-07-02&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Comment on DSpace Jira ticket about author lookup search text (&lt;a href=&#34;https://jira.duraspace.org/browse/DS-2329&#34;&gt;DS-2329&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
@ -383,7 +393,7 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D
&lt;li&gt;We need to use something like this to fix them, need to write a proper regex later:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# update metadatavalue set text_value = regexp_replace(text_value, &#39;(Poole, J),&#39;, &#39;\1&#39;) where text_value = &#39;Poole, J,&#39;;
&lt;pre&gt;&lt;code&gt;# update metadatavalue set text_value = regexp_replace(text_value, &#39;(Poole, J),&#39;, &#39;\1&#39;) where metadata_field_id=3 and text_value = &#39;Poole, J,&#39;;
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>