diff --git a/content/post/2017-01.md b/content/post/2017-01.md index 1870591b6..43a82e45e 100644 --- a/content/post/2017-01.md +++ b/content/post/2017-01.md @@ -160,3 +160,14 @@ nt desc limit 500) to /tmp/journal-titles.csv with csv; ## 2017-01-13 - Add `FOOD SYSTEMS` to CIAT subjects, waiting to merge: https://github.com/ilri/DSpace/pull/296 + +## 2017-01-16 + +- Fix the two items Maria found with duplicate mappings with this script: + +``` +/* 184 in correct mappings: https://cgspace.cgiar.org/handle/10568/78596 */ +delete from collection2item where item_id = '80596' and id not in (90792, 90806, 90807); +/* 1 incorrect mapping: https://cgspace.cgiar.org/handle/10568/78658 */ +delete from collection2item where id = '91082'; +``` diff --git a/public/2017-01/index.html b/public/2017-01/index.html index ba6f210e9..033ed7ba5 100644 --- a/public/2017-01/index.html +++ b/public/2017-01/index.html @@ -28,7 +28,7 @@ - + @@ -289,6 +289,18 @@ nt desc limit 500) to /tmp/journal-titles.csv with csv;
  • Add FOOD SYSTEMS to CIAT subjects, waiting to merge: https://github.com/ilri/DSpace/pull/296
  • +

    2017-01-16

    + + + +
    /* 184 in correct mappings: https://cgspace.cgiar.org/handle/10568/78596 */
    +delete from collection2item where item_id = '80596' and id not in (90792, 90806, 90807);
    +/* 1 incorrect mapping: https://cgspace.cgiar.org/handle/10568/78658 */
    +delete from collection2item where id = '91082';
    +
    + diff --git a/public/index.xml b/public/index.xml index 84a8dd10d..877b025fd 100644 --- a/public/index.xml +++ b/public/index.xml @@ -195,6 +195,18 @@ nt desc limit 500) to /tmp/journal-titles.csv with csv; <ul> <li>Add <code>FOOD SYSTEMS</code> to CIAT subjects, waiting to merge: <a href="https://github.com/ilri/DSpace/pull/296">https://github.com/ilri/DSpace/pull/296</a></li> </ul> + +<h2 id="2017-01-16">2017-01-16</h2> + +<ul> +<li>Fix the two items Maria found with duplicate mappings with this script:</li> +</ul> + +<pre><code>/* 184 in correct mappings: https://cgspace.cgiar.org/handle/10568/78596 */ +delete from collection2item where item_id = '80596' and id not in (90792, 90806, 90807); +/* 1 incorrect mapping: https://cgspace.cgiar.org/handle/10568/78658 */ +delete from collection2item where id = '91082'; +</code></pre> diff --git a/public/post/index.xml b/public/post/index.xml index 1cb39838f..75bd2d4a9 100644 --- a/public/post/index.xml +++ b/public/post/index.xml @@ -195,6 +195,18 @@ nt desc limit 500) to /tmp/journal-titles.csv with csv; <ul> <li>Add <code>FOOD SYSTEMS</code> to CIAT subjects, waiting to merge: <a href="https://github.com/ilri/DSpace/pull/296">https://github.com/ilri/DSpace/pull/296</a></li> </ul> + +<h2 id="2017-01-16">2017-01-16</h2> + +<ul> +<li>Fix the two items Maria found with duplicate mappings with this script:</li> +</ul> + +<pre><code>/* 184 in correct mappings: https://cgspace.cgiar.org/handle/10568/78596 */ +delete from collection2item where item_id = '80596' and id not in (90792, 90806, 90807); +/* 1 incorrect mapping: https://cgspace.cgiar.org/handle/10568/78658 */ +delete from collection2item where id = '91082'; +</code></pre> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index 60f325f17..9ab63a25e 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -194,6 +194,18 @@ nt desc limit 500) to /tmp/journal-titles.csv with csv; <ul> <li>Add <code>FOOD SYSTEMS</code> to CIAT subjects, waiting to merge: <a href="https://github.com/ilri/DSpace/pull/296">https://github.com/ilri/DSpace/pull/296</a></li> </ul> + +<h2 id="2017-01-16">2017-01-16</h2> + +<ul> +<li>Fix the two items Maria found with duplicate mappings with this script:</li> +</ul> + +<pre><code>/* 184 in correct mappings: https://cgspace.cgiar.org/handle/10568/78596 */ +delete from collection2item where item_id = '80596' and id not in (90792, 90806, 90807); +/* 1 incorrect mapping: https://cgspace.cgiar.org/handle/10568/78658 */ +delete from collection2item where id = '91082'; +</code></pre>