mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-10 17:15:46 +01:00
Update notes for 2018-08-26
This commit is contained in:
parent
1d95989c1c
commit
809faab7a5
@ -302,5 +302,22 @@ $ sudo su -
|
|||||||
```
|
```
|
||||||
|
|
||||||
- After reboot I logged in and cleared all the XMLUI caches and everything looked to be working fine
|
- After reboot I logged in and cleared all the XMLUI caches and everything looked to be working fine
|
||||||
|
- Adam from WLE had asked a few weeks ago about getting the metadata for a bunch of items related to gender from 2013 until now
|
||||||
|
- They want a CSV with *all* metadata, which the Atmire Listings and Reports module can't do
|
||||||
|
- I exported a list of items from Listings and Reports with the following criteria: from year 2013 until now, have WLE subject `GENDER` or `GENDER POVERTY AND INSTITUTIONS`, and CRP `Water, Land and Ecosystems`
|
||||||
|
- Then I extracted the Handle links from the report so I could export each item's metadata as CSV
|
||||||
|
|
||||||
|
```
|
||||||
|
$ grep -o -E "[0-9]{5}/[0-9]{0,5}" listings-export.txt > /tmp/iwmi-gender-items.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
- Then on the DSpace server I exported the metadata for each item one by one:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ while read -r line; do dspace metadata-export -f "/tmp/${line/\//-}.csv" -i $line; sleep 2; done < /tmp/iwmi-gender-items.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
- But from here I realized that each of the fifty-nine items will have different columns in their CSVs, making it difficult to combine them
|
||||||
|
- I'm not sure how to proceed without writing some script to parse and join the CSVs, and I don't think it's worth my time
|
||||||
|
|
||||||
<!-- vim: set sw=2 ts=2: -->
|
<!-- vim: set sw=2 ts=2: -->
|
||||||
|
@ -34,7 +34,7 @@ I ran all system updates on DSpace Test and rebooted it
|
|||||||
|
|
||||||
<meta property="article:published_time" content="2018-08-01T11:52:54+03:00"/>
|
<meta property="article:published_time" content="2018-08-01T11:52:54+03:00"/>
|
||||||
|
|
||||||
<meta property="article:modified_time" content="2018-08-23T16:34:16+03:00"/>
|
<meta property="article:modified_time" content="2018-08-26T09:38:15+03:00"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -79,9 +79,9 @@ I ran all system updates on DSpace Test and rebooted it
|
|||||||
"@type": "BlogPosting",
|
"@type": "BlogPosting",
|
||||||
"headline": "August, 2018",
|
"headline": "August, 2018",
|
||||||
"url": "https://alanorth.github.io/cgspace-notes/2018-08/",
|
"url": "https://alanorth.github.io/cgspace-notes/2018-08/",
|
||||||
"wordCount": "2245",
|
"wordCount": "2426",
|
||||||
"datePublished": "2018-08-01T11:52:54+03:00",
|
"datePublished": "2018-08-01T11:52:54+03:00",
|
||||||
"dateModified": "2018-08-23T16:34:16+03:00",
|
"dateModified": "2018-08-26T09:38:15+03:00",
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "Alan Orth"
|
"name": "Alan Orth"
|
||||||
@ -481,6 +481,25 @@ $ dspace database migrate ignored
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>After reboot I logged in and cleared all the XMLUI caches and everything looked to be working fine</li>
|
<li>After reboot I logged in and cleared all the XMLUI caches and everything looked to be working fine</li>
|
||||||
|
<li>Adam from WLE had asked a few weeks ago about getting the metadata for a bunch of items related to gender from 2013 until now</li>
|
||||||
|
<li>They want a CSV with <em>all</em> metadata, which the Atmire Listings and Reports module can’t do</li>
|
||||||
|
<li>I exported a list of items from Listings and Reports with the following criteria: from year 2013 until now, have WLE subject <code>GENDER</code> or <code>GENDER POVERTY AND INSTITUTIONS</code>, and CRP <code>Water, Land and Ecosystems</code></li>
|
||||||
|
<li>Then I extracted the Handle links from the report so I could export each item’s metadata as CSV</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ grep -o -E "[0-9]{5}/[0-9]{0,5}" listings-export.txt > /tmp/iwmi-gender-items.txt
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Then on the DSpace server I exported the metadata for each item one by one:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ while read -r line; do dspace metadata-export -f "/tmp/${line/\//-}.csv" -i $line; sleep 2; done < /tmp/iwmi-gender-items.txt
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>But from here I realized that each of the fifty-nine items will have different columns in their CSVs, making it difficult to combine them</li>
|
||||||
|
<li>I’m not sure how to proceed without writing some script to parse and join the CSVs, and I don’t think it’s worth my time</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- vim: set sw=2 ts=2: -->
|
<!-- vim: set sw=2 ts=2: -->
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/2018-08/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/2018-08/</loc>
|
||||||
<lastmod>2018-08-23T16:34:16+03:00</lastmod>
|
<lastmod>2018-08-26T09:38:15+03:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
@ -179,7 +179,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||||
<lastmod>2018-08-23T16:34:16+03:00</lastmod>
|
<lastmod>2018-08-26T09:38:15+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -190,7 +190,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||||
<lastmod>2018-08-23T16:34:16+03:00</lastmod>
|
<lastmod>2018-08-26T09:38:15+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -202,13 +202,13 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||||
<lastmod>2018-08-23T16:34:16+03:00</lastmod>
|
<lastmod>2018-08-26T09:38:15+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||||
<lastmod>2018-08-23T16:34:16+03:00</lastmod>
|
<lastmod>2018-08-26T09:38:15+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user