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

@ -264,13 +264,29 @@ $ ./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>
<li>I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc</li>
<li>Test, squash, and merge Sisay’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>
&lt;/ul&gt;</description>
&lt;/ul&gt;
&lt;h2 id=&#34;2017-03-29&#34;&gt;2017-03-29&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Dump a list of fields in the DC and CG schemas to compare with CG Core:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select case when metadata_schema_id=1 then &#39;dc&#39; else &#39;cg&#39; end as schema, element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Ooh, a better one!&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select coalesce(case when metadata_schema_id=1 then &#39;dc.&#39; else &#39;cg.&#39; end) || concat_ws(&#39;.&#39;, element, qualifier) as field, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
&lt;/code&gt;&lt;/pre&gt;</description>
</item>
<item>