Update notes for 2017-03-39

This commit is contained in:
Alan Orth 2017-03-29 15:57:01 +03:00
parent de1161dcfc
commit 394e477fcb
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
6 changed files with 93 additions and 15 deletions

View File

@ -211,8 +211,22 @@ $ ./fix-metadata-values.py -i ccafs-flagships-feb7.csv -f cg.subject.ccafs -t co
- Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:
```
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;
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;
```
- I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc
- Test, squash, and merge Sisay's RTB theme into `5_x-prod`: https://github.com/ilri/DSpace/pull/316
## 2017-03-29
- Dump a list of fields in the DC and CG schemas to compare with CG Core:
```
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);
```
- Ooh, a better one!
```
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);
```

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>

View File

@ -264,13 +264,29 @@ $ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.spon
&lt;li&gt;Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;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;
&lt;pre&gt;&lt;code&gt;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;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc&lt;/li&gt;
&lt;li&gt;Test, squash, and merge Sisay&amp;rsquo;s RTB theme into &lt;code&gt;5_x-prod&lt;/code&gt;: &lt;a href=&#34;https://github.com/ilri/DSpace/pull/316&#34;&gt;https://github.com/ilri/DSpace/pull/316&lt;/a&gt;&lt;/li&gt;
&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>

View File

@ -264,13 +264,29 @@ $ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.spon
&lt;li&gt;Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;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;
&lt;pre&gt;&lt;code&gt;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;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc&lt;/li&gt;
&lt;li&gt;Test, squash, and merge Sisay&amp;rsquo;s RTB theme into &lt;code&gt;5_x-prod&lt;/code&gt;: &lt;a href=&#34;https://github.com/ilri/DSpace/pull/316&#34;&gt;https://github.com/ilri/DSpace/pull/316&lt;/a&gt;&lt;/li&gt;
&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>

View File

@ -3,7 +3,7 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/2017-03/</loc>
<lastmod>2017-03-24T14:27:31+02:00</lastmod>
<lastmod>2017-03-28T18:39:09+03:00</lastmod>
</url>
<url>
@ -88,19 +88,19 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-03-24T14:27:31+02:00</lastmod>
<lastmod>2017-03-28T18:39:09+03:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-03-24T14:27:31+02:00</lastmod>
<lastmod>2017-03-28T18:39:09+03:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-03-24T14:27:31+02:00</lastmod>
<lastmod>2017-03-28T18:39:09+03:00</lastmod>
<priority>0</priority>
</url>

View File

@ -263,13 +263,29 @@ $ ./delete-metadata-values.py -i Investors-Delete-121.csv -f dc.description.spon
&lt;li&gt;Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;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;
&lt;pre&gt;&lt;code&gt;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;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc&lt;/li&gt;
&lt;li&gt;Test, squash, and merge Sisay&amp;rsquo;s RTB theme into &lt;code&gt;5_x-prod&lt;/code&gt;: &lt;a href=&#34;https://github.com/ilri/DSpace/pull/316&#34;&gt;https://github.com/ilri/DSpace/pull/316&lt;/a&gt;&lt;/li&gt;
&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>