diff --git a/content/post/2017-03.md b/content/post/2017-03.md index cce51bf36..92064878c 100644 --- a/content/post/2017-03.md +++ b/content/post/2017-03.md @@ -148,3 +148,18 @@ google.citation_doi = cg.identifier.doi dspace=# \copy (select text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship') group by text_value order by count desc) to /tmp/sponsorship.csv with csv; COPY 285 ``` + +## 2017-03-12 + +- Test the sponsorship fixes and deletes from Peter: + +``` +$ ./fix-metadata-values.py -i Investors-Fix-51.csv -f dc.description.sponsorship -t Action -m 29 -d dspace -u dspace -p fuuuu +$ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.sponsorship -m 29 -d dspace -u dspace -p fuuu +``` + +- Generate a new list of unique sponsors so we can update the controlled vocabulary: + +``` +dspace=# \copy (select distinct text_value from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship')) to /tmp/sponsorship.csv with csv; +``` diff --git a/public/2017-03/index.html b/public/2017-03/index.html index c1b00f83f..69aa9d1ae 100644 --- a/public/2017-03/index.html +++ b/public/2017-03/index.html @@ -37,7 +37,7 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg - + @@ -94,13 +94,13 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg "headline": "March, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-03/", - "wordCount": "978", + "wordCount": "1059", "datePublished": "2017-03-01T17:08:52+02:00", - "dateModified": "2017-03-08T16:08:47+02:00", + "dateModified": "2017-03-09T14:29:50+02:00", "author": { @@ -342,6 +342,23 @@ DirectClass sRGB Alpha COPY 285 +

2017-03-12

+ + + +
$ ./fix-metadata-values.py -i Investors-Fix-51.csv -f dc.description.sponsorship -t Action -m 29 -d dspace -u dspace -p fuuuu
+$ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.sponsorship -m 29 -d dspace -u dspace -p fuuu
+
+ + + +
dspace=# \copy (select distinct text_value from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship')) to /tmp/sponsorship.csv with csv;
+
+ diff --git a/public/index.xml b/public/index.xml index a4b794597..770c4e7c2 100644 --- a/public/index.xml +++ b/public/index.xml @@ -186,6 +186,23 @@ DirectClass sRGB Alpha <pre><code>dspace=# \copy (select text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship') group by text_value order by count desc) to /tmp/sponsorship.csv with csv; COPY 285 +</code></pre> + +<h2 id="2017-03-12">2017-03-12</h2> + +<ul> +<li>Test the sponsorship fixes and deletes from Peter:</li> +</ul> + +<pre><code>$ ./fix-metadata-values.py -i Investors-Fix-51.csv -f dc.description.sponsorship -t Action -m 29 -d dspace -u dspace -p fuuuu +$ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.sponsorship -m 29 -d dspace -u dspace -p fuuu +</code></pre> + +<ul> +<li>Generate a new list of unique sponsors so we can update the controlled vocabulary:</li> +</ul> + +<pre><code>dspace=# \copy (select distinct text_value from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship')) to /tmp/sponsorship.csv with csv; </code></pre> diff --git a/public/post/index.xml b/public/post/index.xml index 4145a8fdc..0035e329f 100644 --- a/public/post/index.xml +++ b/public/post/index.xml @@ -186,6 +186,23 @@ DirectClass sRGB Alpha <pre><code>dspace=# \copy (select text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship') group by text_value order by count desc) to /tmp/sponsorship.csv with csv; COPY 285 +</code></pre> + +<h2 id="2017-03-12">2017-03-12</h2> + +<ul> +<li>Test the sponsorship fixes and deletes from Peter:</li> +</ul> + +<pre><code>$ ./fix-metadata-values.py -i Investors-Fix-51.csv -f dc.description.sponsorship -t Action -m 29 -d dspace -u dspace -p fuuuu +$ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.sponsorship -m 29 -d dspace -u dspace -p fuuu +</code></pre> + +<ul> +<li>Generate a new list of unique sponsors so we can update the controlled vocabulary:</li> +</ul> + +<pre><code>dspace=# \copy (select distinct text_value from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship')) to /tmp/sponsorship.csv with csv; </code></pre> diff --git a/public/sitemap.xml b/public/sitemap.xml index c287aaebf..5ed7187ab 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,7 +3,7 @@ https://alanorth.github.io/cgspace-notes/2017-03/ - 2017-03-08T16:08:47+02:00 + 2017-03-09T14:29:50+02:00 @@ -88,19 +88,19 @@ https://alanorth.github.io/cgspace-notes/ - 2017-03-08T16:08:47+02:00 + 2017-03-09T14:29:50+02:00 0 https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-03-08T16:08:47+02:00 + 2017-03-09T14:29:50+02:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-03-08T16:08:47+02:00 + 2017-03-09T14:29:50+02:00 0 diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index 74ed82a74..f73576467 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -185,6 +185,23 @@ DirectClass sRGB Alpha <pre><code>dspace=# \copy (select text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship') group by text_value order by count desc) to /tmp/sponsorship.csv with csv; COPY 285 +</code></pre> + +<h2 id="2017-03-12">2017-03-12</h2> + +<ul> +<li>Test the sponsorship fixes and deletes from Peter:</li> +</ul> + +<pre><code>$ ./fix-metadata-values.py -i Investors-Fix-51.csv -f dc.description.sponsorship -t Action -m 29 -d dspace -u dspace -p fuuuu +$ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.sponsorship -m 29 -d dspace -u dspace -p fuuu +</code></pre> + +<ul> +<li>Generate a new list of unique sponsors so we can update the controlled vocabulary:</li> +</ul> + +<pre><code>dspace=# \copy (select distinct text_value from metadatavalue where resource_type_id=2 and metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'description' and qualifier = 'sponsorship')) to /tmp/sponsorship.csv with csv; </code></pre>