From 5c5380d7bd7cae4fdd1a97c5a02de52806771ad3 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 24 Jun 2016 15:17:19 +0300 Subject: [PATCH] Add notes for 2016-06-24 --- content/2016-06.md | 13 +++++++++++++ public/2016-06/index.html | 19 +++++++++++++++++++ public/index.xml | 19 +++++++++++++++++++ public/tags/notes/index.xml | 19 +++++++++++++++++++ 4 files changed, 70 insertions(+) diff --git a/content/2016-06.md b/content/2016-06.md index 738534147..d0ef4622e 100644 --- a/content/2016-06.md +++ b/content/2016-06.md @@ -213,3 +213,16 @@ UPDATE 960 ``` - I really need to fix that cron job... + +## 2016-06-24 + +- Run the replacements/deletes for `dc.description.sponsorship` (investors) on CGSpace: + +``` +$ ./fix-metadata-values.py -i investors-not-blank-not-delete-85.csv -f dc.description.sponsorship -t 'correct investor' -m 29 -d cgspace -p 'fuuu' -u cgspace +$ ./delete-metadata-values.py -i investors-delete-82.csv -f dc.description.sponsorship -m 29 -d cgspace -p 'fuuu' -u cgspace +``` + +- The scripts for this are here: + - [fix-metadata-values.py](https://gist.github.com/alanorth/df92cbfb54d762ba21b28f7cd83b6897) + - [delete-metadata-values.py](https://gist.github.com/alanorth/bd7d58c947f686401a2b1fadc78736be) diff --git a/public/2016-06/index.html b/public/2016-06/index.html index 4bd4e3674..37709a48d 100644 --- a/public/2016-06/index.html +++ b/public/2016-06/index.html @@ -330,6 +330,25 @@ UPDATE 960 + +

2016-06-24

+ + + +
$ ./fix-metadata-values.py -i investors-not-blank-not-delete-85.csv -f dc.description.sponsorship -t 'correct investor' -m 29 -d cgspace -p 'fuuu' -u cgspace
+$ ./delete-metadata-values.py -i investors-delete-82.csv -f dc.description.sponsorship -m 29 -d cgspace -p 'fuuu' -u cgspace
+
+ + diff --git a/public/index.xml b/public/index.xml index 6b30737de..7d0b2bb96 100644 --- a/public/index.xml +++ b/public/index.xml @@ -269,6 +269,25 @@ UPDATE 960 <ul> <li>I really need to fix that cron job&hellip;</li> </ul> + +<h2 id="2016-06-24:6783872e82b68b1517e00f494e6b6504">2016-06-24</h2> + +<ul> +<li>Run the replacements/deletes for <code>dc.description.sponsorship</code> (investors) on CGSpace:</li> +</ul> + +<pre><code>$ ./fix-metadata-values.py -i investors-not-blank-not-delete-85.csv -f dc.description.sponsorship -t 'correct investor' -m 29 -d cgspace -p 'fuuu' -u cgspace +$ ./delete-metadata-values.py -i investors-delete-82.csv -f dc.description.sponsorship -m 29 -d cgspace -p 'fuuu' -u cgspace +</code></pre> + +<ul> +<li>The scripts for this are here: + +<ul> +<li><a href="https://gist.github.com/alanorth/df92cbfb54d762ba21b28f7cd83b6897">fix-metadata-values.py</a></li> +<li><a href="https://gist.github.com/alanorth/bd7d58c947f686401a2b1fadc78736be">delete-metadata-values.py</a></li> +</ul></li> +</ul> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index 6c8c58ea6..d94961cdb 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -269,6 +269,25 @@ UPDATE 960 <ul> <li>I really need to fix that cron job&hellip;</li> </ul> + +<h2 id="2016-06-24:6783872e82b68b1517e00f494e6b6504">2016-06-24</h2> + +<ul> +<li>Run the replacements/deletes for <code>dc.description.sponsorship</code> (investors) on CGSpace:</li> +</ul> + +<pre><code>$ ./fix-metadata-values.py -i investors-not-blank-not-delete-85.csv -f dc.description.sponsorship -t 'correct investor' -m 29 -d cgspace -p 'fuuu' -u cgspace +$ ./delete-metadata-values.py -i investors-delete-82.csv -f dc.description.sponsorship -m 29 -d cgspace -p 'fuuu' -u cgspace +</code></pre> + +<ul> +<li>The scripts for this are here: + +<ul> +<li><a href="https://gist.github.com/alanorth/df92cbfb54d762ba21b28f7cd83b6897">fix-metadata-values.py</a></li> +<li><a href="https://gist.github.com/alanorth/bd7d58c947f686401a2b1fadc78736be">delete-metadata-values.py</a></li> +</ul></li> +</ul>