Update notes for 2017-03-39

This commit is contained in:
2017-03-29 15:57:01 +03:00
parent de1161dcfc
commit 394e477fcb
6 changed files with 93 additions and 15 deletions

View File

@ -37,7 +37,7 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg
<meta property="article:published_time" content="2017-03-01T17:08:52&#43;02:00"/>
<meta property="article:modified_time" content="2017-03-24T14:27:31&#43;02:00"/>
<meta property="article:modified_time" content="2017-03-28T18:39:09&#43;03:00"/>
@ -94,13 +94,13 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg
"headline": "March, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-03/",
"wordCount": "1428",
"wordCount": "1494",
"datePublished": "2017-03-01T17:08:52&#43;02:00",
"dateModified": "2017-03-24T14:27:31&#43;02:00",
"dateModified": "2017-03-28T18:39:09&#43;03:00",
"author": {
@ -418,7 +418,7 @@ $ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.spon
<li>Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:</li>
</ul>
<pre><code>dspacetest=# dspacetest=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=210 group by text_value order by count desc) to /tmp/ccafs.csv with csv;
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=210 group by text_value order by count desc) to /tmp/ccafs.csv with csv;
</code></pre>
<ul>
@ -426,6 +426,22 @@ $ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.spon
<li>Test, squash, and merge Sisay&rsquo;s RTB theme into <code>5_x-prod</code>: <a href="https://github.com/ilri/DSpace/pull/316">https://github.com/ilri/DSpace/pull/316</a></li>
</ul>
<h2 id="2017-03-29">2017-03-29</h2>
<ul>
<li>Dump a list of fields in the DC and CG schemas to compare with CG Core:</li>
</ul>
<pre><code>dspace=# select case when metadata_schema_id=1 then 'dc' else 'cg' end as schema, element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
</code></pre>
<ul>
<li>Ooh, a better one!</li>
</ul>
<pre><code>dspace=# select coalesce(case when metadata_schema_id=1 then 'dc.' else 'cg.' end) || concat_ws('.', element, qualifier) as field, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
</code></pre>