Update notes for 2017-07-04

This commit is contained in:
Alan Orth 2017-07-04 10:53:39 +03:00
parent 571a3d09b9
commit 4a811c531f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 25 additions and 8 deletions

View File

@ -14,3 +14,11 @@ tags = ["Notes"]
## 2017-07-04 ## 2017-07-04
- Merge changes for WLE Phase II theme rename ([#329](https://github.com/ilri/DSpace/pull/329)) - Merge changes for WLE Phase II theme rename ([#329](https://github.com/ilri/DSpace/pull/329))
- Looking at extracting the metadata registries from ICARDA's MEL DSpace database so we can compare fields with CGSpace
- We can use PostgreSQL's extended output format (`-x`) plus `sed` to format the output into quasi XML:
```
$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::'
```
- The `sed` script is from a post on the [PostgreSQL mailing list](https://www.postgresql.org/message-id/437E44A5.508%40ultimeth.com)

View File

@ -19,7 +19,7 @@ Run system updates and reboot DSpace Test
<meta property="article:published_time" content="2017-07-01T18:03:52&#43;03:00"/> <meta property="article:published_time" content="2017-07-01T18:03:52&#43;03:00"/>
<meta property="article:modified_time" content="2017-07-01T18:03:19&#43;03:00"/> <meta property="article:modified_time" content="2017-07-04T08:04:46&#43;03:00"/>
@ -57,9 +57,9 @@ Run system updates and reboot DSpace Test
"@type": "BlogPosting", "@type": "BlogPosting",
"headline": "July, 2017", "headline": "July, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-07/", "url": "https://alanorth.github.io/cgspace-notes/2017-07/",
"wordCount": "18", "wordCount": "93",
"datePublished": "2017-07-01T18:03:52&#43;03:00", "datePublished": "2017-07-01T18:03:52&#43;03:00",
"dateModified": "2017-07-01T18:03:19&#43;03:00", "dateModified": "2017-07-04T08:04:46&#43;03:00",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "Alan Orth" "name": "Alan Orth"
@ -134,6 +134,15 @@ Run system updates and reboot DSpace Test
<ul> <ul>
<li>Merge changes for WLE Phase II theme rename (<a href="https://github.com/ilri/DSpace/pull/329">#329</a>)</li> <li>Merge changes for WLE Phase II theme rename (<a href="https://github.com/ilri/DSpace/pull/329">#329</a>)</li>
<li>Looking at extracting the metadata registries from ICARDA&rsquo;s MEL DSpace database so we can compare fields with CGSpace</li>
<li>We can use PostgreSQL&rsquo;s extended output format (<code>-x</code>) plus <code>sed</code> to format the output into quasi XML:</li>
</ul>
<pre><code>$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:&lt;/dc-type&gt;\n&lt;dc-type&gt;:;s:([^ ]*) +\| (.*): &lt;\1&gt;\2&lt;/\1&gt;:;s:^$:&lt;/dc-type&gt;:;1s:&lt;/dc-type&gt;\n::'
</code></pre>
<ul>
<li>The <code>sed</code> script is from a post on the <a href="https://www.postgresql.org/message-id/437E44A5.508%40ultimeth.com">PostgreSQL mailing list</a></li>
</ul> </ul>

View File

@ -4,7 +4,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/2017-07/</loc> <loc>https://alanorth.github.io/cgspace-notes/2017-07/</loc>
<lastmod>2017-07-01T18:03:19+03:00</lastmod> <lastmod>2017-07-04T08:04:46+03:00</lastmod>
</url> </url>
<url> <url>
@ -109,7 +109,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-07-01T18:03:19+03:00</lastmod> <lastmod>2017-07-04T08:04:46+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
@ -120,19 +120,19 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-07-01T18:03:19+03:00</lastmod> <lastmod>2017-07-04T08:04:46+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc> <loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-07-01T18:03:19+03:00</lastmod> <lastmod>2017-07-04T08:04:46+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>2017-07-01T18:03:19+03:00</lastmod> <lastmod>2017-07-04T08:04:46+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>