From 23a51e1f45b32064c4d5737916c4cc9182293f49 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 6 Sep 2016 17:15:25 +0300 Subject: [PATCH] Update notes for 2016-09-06 --- content/2016-09.md | 7 +++++++ public/2016-09/index.html | 6 ++++++ public/index.xml | 6 ++++++ public/tags/notes/index.xml | 6 ++++++ 4 files changed, 25 insertions(+) diff --git a/content/2016-09.md b/content/2016-09.md index fbb1d752a..7e61c6bac 100644 --- a/content/2016-09.md +++ b/content/2016-09.md @@ -160,3 +160,10 @@ value.replace("'","").replace(",","").replace('"','') - Seems that the latter method causes a null pointer exception, so I will just have to use the former method - In the end I was able to import the files after unzipping them ONLY on Linux - The CSV file was giving file names in UTF-8, and unzipping the zip on Mac OS X and transferring it was converting the file names to Unicode equivalence like I saw above +- Import CIAT Gender Network records to CGSpace, first creating the SAF bundles as my user, then importing as the `tomcat7` user, and deleting the bundle, for each collection's items: + +``` +$ ./safbuilder.sh -c /home/aorth/ciat-gender-2016-09-06/66601.csv +$ JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx512m" /home/cgspace.cgiar.org/bin/dspace import -a -e aorth@mjanja.ch -c 10568/66601 -s /home/aorth/ciat-gender-2016-09-06/SimpleArchiveFormat -m 66601.map +$ rm -rf ~/ciat-gender-2016-09-06/SimpleArchiveFormat/ +``` diff --git a/public/2016-09/index.html b/public/2016-09/index.html index 2de7e4749..0164295b9 100644 --- a/public/2016-09/index.html +++ b/public/2016-09/index.html @@ -263,8 +263,14 @@ TLSv1/EDH-RSA-DES-CBC3-SHA +
  • Import CIAT Gender Network records to CGSpace, first creating the SAF bundles as my user, then importing as the tomcat7 user, and deleting the bundle, for each collection’s items:
  • +
    $ ./safbuilder.sh -c /home/aorth/ciat-gender-2016-09-06/66601.csv
    +$ JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx512m" /home/cgspace.cgiar.org/bin/dspace import -a -e aorth@mjanja.ch -c 10568/66601 -s /home/aorth/ciat-gender-2016-09-06/SimpleArchiveFormat -m 66601.map
    +$ rm -rf ~/ciat-gender-2016-09-06/SimpleArchiveFormat/
    +
    +