From 9c12117b41abfef4134aa2cf9d0d9a9a3199fc78 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 30 May 2016 09:59:13 +0300 Subject: [PATCH] Add notes for 2016-05-30 --- content/2016-05.md | 20 ++++++++++++++++++++ public/2016-05/index.html | 24 ++++++++++++++++++++++++ public/index.xml | 24 ++++++++++++++++++++++++ public/tags/notes/index.xml | 24 ++++++++++++++++++++++++ 4 files changed, 92 insertions(+) diff --git a/content/2016-05.md b/content/2016-05.md index 32a264019..67a70537a 100644 --- a/content/2016-05.md +++ b/content/2016-05.md @@ -189,3 +189,23 @@ value.replace(/\u0081/,'') - LibreOffice excludes empty cells when it exports and all the fields shift over to the left and cause URLs to go to Subjects, etc. - Google Docs does this better, but somehow reorders the rows and when I paste the thumbnail/filename row in they don't match! - I will have to try later + +## 2016-05-30 + +- Export CCAFS video and image records from DSpace Test using the migrate option (`-m`): + +``` +$ mkdir ~/ccafs-images +$ /home/dspacetest.cgiar.org/bin/dspace export -t COLLECTION -i 10568/79355 -d ~/ccafs-images -n 0 -m +``` + +- And then imprt to CGSpace: + +``` +$ JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8" /home/cgspace.cgiar.org/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/70974 --source /tmp/ccafs-images --mapfile=/tmp/ccafs-images-may30.map &> /tmp/ccafs-images-may30.log +``` + +- But now we have double authors for "CGIAR Research Program on Climate Change, Agriculture and Food Security" in the authority +- I'm trying to do a Discovery index before messing with the authority index +- Looks like we are missing the `index-authority` cron job, so who knows what's up with our authority index +- Run system updates on DSpace Test, re-deploy code, and reboot the server diff --git a/public/2016-05/index.html b/public/2016-05/index.html index 71d665515..b2abb5349 100644 --- a/public/2016-05/index.html +++ b/public/2016-05/index.html @@ -310,6 +310,30 @@ fi
  • LibreOffice excludes empty cells when it exports and all the fields shift over to the left and cause URLs to go to Subjects, etc.
  • Google Docs does this better, but somehow reorders the rows and when I paste the thumbnail/filename row in they don’t match!
  • I will have to try later
  • + + +

    2016-05-30

    + + + +
    $ mkdir ~/ccafs-images
    +$ /home/dspacetest.cgiar.org/bin/dspace export -t COLLECTION -i 10568/79355 -d ~/ccafs-images -n 0 -m
    +
    + + + +
    $ JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8" /home/cgspace.cgiar.org/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/70974 --source /tmp/ccafs-images --mapfile=/tmp/ccafs-images-may30.map &> /tmp/ccafs-images-may30.log
    +
    + + diff --git a/public/index.xml b/public/index.xml index edd0cc91e..337d0946b 100644 --- a/public/index.xml +++ b/public/index.xml @@ -249,6 +249,30 @@ fi <li>Google Docs does this better, but somehow reorders the rows and when I paste the thumbnail/filename row in they don&rsquo;t match!</li> <li>I will have to try later</li> </ul> + +<h2 id="2016-05-30:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-30</h2> + +<ul> +<li>Export CCAFS video and image records from DSpace Test using the migrate option (<code>-m</code>):</li> +</ul> + +<pre><code>$ mkdir ~/ccafs-images +$ /home/dspacetest.cgiar.org/bin/dspace export -t COLLECTION -i 10568/79355 -d ~/ccafs-images -n 0 -m +</code></pre> + +<ul> +<li>And then imprt to CGSpace:</li> +</ul> + +<pre><code>$ JAVA_OPTS=&quot;-Xmx512m -Dfile.encoding=UTF-8&quot; /home/cgspace.cgiar.org/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/70974 --source /tmp/ccafs-images --mapfile=/tmp/ccafs-images-may30.map &amp;&gt; /tmp/ccafs-images-may30.log +</code></pre> + +<ul> +<li>But now we have double authors for &ldquo;CGIAR Research Program on Climate Change, Agriculture and Food Security&rdquo; in the authority</li> +<li>I&rsquo;m trying to do a Discovery index before messing with the authority index</li> +<li>Looks like we are missing the <code>index-authority</code> cron job, so who knows what&rsquo;s up with our authority index</li> +<li>Run system updates on DSpace Test, re-deploy code, and reboot the server</li> +</ul> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index 0b8d6485d..384a91c7e 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -249,6 +249,30 @@ fi <li>Google Docs does this better, but somehow reorders the rows and when I paste the thumbnail/filename row in they don&rsquo;t match!</li> <li>I will have to try later</li> </ul> + +<h2 id="2016-05-30:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-30</h2> + +<ul> +<li>Export CCAFS video and image records from DSpace Test using the migrate option (<code>-m</code>):</li> +</ul> + +<pre><code>$ mkdir ~/ccafs-images +$ /home/dspacetest.cgiar.org/bin/dspace export -t COLLECTION -i 10568/79355 -d ~/ccafs-images -n 0 -m +</code></pre> + +<ul> +<li>And then imprt to CGSpace:</li> +</ul> + +<pre><code>$ JAVA_OPTS=&quot;-Xmx512m -Dfile.encoding=UTF-8&quot; /home/cgspace.cgiar.org/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/70974 --source /tmp/ccafs-images --mapfile=/tmp/ccafs-images-may30.map &amp;&gt; /tmp/ccafs-images-may30.log +</code></pre> + +<ul> +<li>But now we have double authors for &ldquo;CGIAR Research Program on Climate Change, Agriculture and Food Security&rdquo; in the authority</li> +<li>I&rsquo;m trying to do a Discovery index before messing with the authority index</li> +<li>Looks like we are missing the <code>index-authority</code> cron job, so who knows what&rsquo;s up with our authority index</li> +<li>Run system updates on DSpace Test, re-deploy code, and reboot the server</li> +</ul>