Update notes for 2016-09-06

This commit is contained in:
Alan Orth 2016-09-06 17:15:25 +03:00
parent 31f36b37b8
commit 23a51e1f45
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 25 additions and 0 deletions

View File

@ -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/
```

View File

@ -263,8 +263,14 @@ TLSv1/EDH-RSA-DES-CBC3-SHA
<ul>
<li>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</li>
</ul></li>
<li>Import CIAT Gender Network records to CGSpace, first creating the SAF bundles as my user, then importing as the <code>tomcat7</code> user, and deleting the bundle, for each collection&rsquo;s items:</li>
</ul>
<pre><code>$ ./safbuilder.sh -c /home/aorth/ciat-gender-2016-09-06/66601.csv
$ JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx512m&quot; /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/
</code></pre>
</section>
<footer>

View File

@ -201,7 +201,13 @@ TLSv1/EDH-RSA-DES-CBC3-SHA
&lt;ul&gt;
&lt;li&gt;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&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Import CIAT Gender Network records to CGSpace, first creating the SAF bundles as my user, then importing as the &lt;code&gt;tomcat7&lt;/code&gt; user, and deleting the bundle, for each collection&amp;rsquo;s items:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ ./safbuilder.sh -c /home/aorth/ciat-gender-2016-09-06/66601.csv
$ JAVA_OPTS=&amp;quot;-Dfile.encoding=UTF-8 -Xmx512m&amp;quot; /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/
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>

View File

@ -201,7 +201,13 @@ TLSv1/EDH-RSA-DES-CBC3-SHA
&lt;ul&gt;
&lt;li&gt;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&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Import CIAT Gender Network records to CGSpace, first creating the SAF bundles as my user, then importing as the &lt;code&gt;tomcat7&lt;/code&gt; user, and deleting the bundle, for each collection&amp;rsquo;s items:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ ./safbuilder.sh -c /home/aorth/ciat-gender-2016-09-06/66601.csv
$ JAVA_OPTS=&amp;quot;-Dfile.encoding=UTF-8 -Xmx512m&amp;quot; /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/
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>