mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-11 14:33:21 +01:00
Add notes for 2016-07-02
This commit is contained in:
parent
1544a5cade
commit
4335039e50
@ -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:
|
- 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,';
|
||||||
```
|
```
|
||||||
|
@ -9,7 +9,7 @@ image = "../images/bg.jpg"
|
|||||||
## 2016-07-01
|
## 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))
|
- 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 ~ '^.+?,$';
|
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)
|
(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))
|
||||||
|
@ -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>
|
<li>We need to use something like this to fix them, need to write a proper regex later:</li>
|
||||||
</ul>
|
</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>
|
</code></pre>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<ul>
|
<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>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 “,” 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 “,” at the end of their names:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
|
<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)
|
(0 rows)
|
||||||
</code></pre>
|
</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>
|
</section>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<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 “,” 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 “,” 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>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<ul>
|
<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>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>
|
</ul>
|
||||||
|
|
||||||
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
|
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
|
||||||
@ -31,6 +31,16 @@ dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and
|
|||||||
------------
|
------------
|
||||||
(0 rows)
|
(0 rows)
|
||||||
</code></pre>
|
</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>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
@ -383,7 +393,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>
|
<li>We need to use something like this to fix them, need to write a proper regex later:</li>
|
||||||
</ul>
|
</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>
|
</code></pre>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<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 “,” 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 “,” 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>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<ul>
|
<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>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>
|
</ul>
|
||||||
|
|
||||||
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
|
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, '(^.+?),$', '\1') where metadata_field_id=3 and text_value ~ '^.+?,$';
|
||||||
@ -31,6 +31,16 @@ dspacetest=# select text_value from metadatavalue where metadata_field_id=3 and
|
|||||||
------------
|
------------
|
||||||
(0 rows)
|
(0 rows)
|
||||||
</code></pre>
|
</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>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
@ -383,7 +393,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>
|
<li>We need to use something like this to fix them, need to write a proper regex later:</li>
|
||||||
</ul>
|
</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>
|
</code></pre>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user