Add notes for 2016-05-20

This commit is contained in:
Alan Orth 2016-05-20 14:35:36 +03:00
parent 30fbe72f0a
commit c3c54000de
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 87 additions and 0 deletions

View File

@ -162,3 +162,21 @@ value.replace('_','').replace('-','')
``` ```
# select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like 'PN%' or text_value like 'PHASE%' or text_value = 'CBA' or text_value = 'IA'); # select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like 'PN%' or text_value like 'PHASE%' or text_value = 'CBA' or text_value = 'IA');
``` ```
## 2016-05-20
- More work on CCAFS Video and Images records
- For SAFBuilder we need to modify filename column to have the thumbnail bundle:
```
value + "__bundle:THUMBNAIL"
```
- Also, I fixed some weird characters using OpenRefine's transform with the following GREL:
```
value.replace(/\u0081/,'')
```
- Write shell script to resize thumbnails with height larger than 400: https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256
- Upload 707 CCAFS records to DSpace Test

View File

@ -278,6 +278,29 @@ fi
<pre><code># select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like 'PN%' or text_value like 'PHASE%' or text_value = 'CBA' or text_value = 'IA'); <pre><code># select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like 'PN%' or text_value like 'PHASE%' or text_value = 'CBA' or text_value = 'IA');
</code></pre> </code></pre>
<h2 id="2016-05-20:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-20</h2>
<ul>
<li>More work on CCAFS Video and Images records</li>
<li>For SAFBuilder we need to modify filename column to have the thumbnail bundle:
<br /></li>
</ul>
<pre><code>value + &quot;__bundle:THUMBNAIL&quot;
</code></pre>
<ul>
<li>Also, I fixed some weird characters using OpenRefine&rsquo;s transform with the following GREL:</li>
</ul>
<pre><code>value.replace(/\u0081/,'')
</code></pre>
<ul>
<li>Write shell script to resize thumbnails with height larger than 400: <a href="https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256">https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256</a></li>
<li>Upload 707 CCAFS records to DSpace Test</li>
</ul>
</section> </section>
<footer> <footer>

View File

@ -215,6 +215,29 @@ fi
&lt;pre&gt;&lt;code&gt;# select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like &#39;PN%&#39; or text_value like &#39;PHASE%&#39; or text_value = &#39;CBA&#39; or text_value = &#39;IA&#39;); &lt;pre&gt;&lt;code&gt;# select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like &#39;PN%&#39; or text_value like &#39;PHASE%&#39; or text_value = &#39;CBA&#39; or text_value = &#39;IA&#39;);
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;2016-05-20:b7bf1a0f8f2415a40e1e11e343b04c0d&#34;&gt;2016-05-20&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;More work on CCAFS Video and Images records&lt;/li&gt;
&lt;li&gt;For SAFBuilder we need to modify filename column to have the thumbnail bundle:
&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;value + &amp;quot;__bundle:THUMBNAIL&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Also, I fixed some weird characters using OpenRefine&amp;rsquo;s transform with the following GREL:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;value.replace(/\u0081/,&#39;&#39;)
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Write shell script to resize thumbnails with height larger than 400: &lt;a href=&#34;https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256&#34;&gt;https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Upload 707 CCAFS records to DSpace Test&lt;/li&gt;
&lt;/ul&gt;
</description> </description>
</item> </item>

View File

@ -215,6 +215,29 @@ fi
&lt;pre&gt;&lt;code&gt;# select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like &#39;PN%&#39; or text_value like &#39;PHASE%&#39; or text_value = &#39;CBA&#39; or text_value = &#39;IA&#39;); &lt;pre&gt;&lt;code&gt;# select text_value from metadatavalue where resource_type_id=2 and metadata_field_id=75 and (text_value like &#39;PN%&#39; or text_value like &#39;PHASE%&#39; or text_value = &#39;CBA&#39; or text_value = &#39;IA&#39;);
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;2016-05-20:b7bf1a0f8f2415a40e1e11e343b04c0d&#34;&gt;2016-05-20&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;More work on CCAFS Video and Images records&lt;/li&gt;
&lt;li&gt;For SAFBuilder we need to modify filename column to have the thumbnail bundle:
&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;value + &amp;quot;__bundle:THUMBNAIL&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Also, I fixed some weird characters using OpenRefine&amp;rsquo;s transform with the following GREL:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;value.replace(/\u0081/,&#39;&#39;)
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Write shell script to resize thumbnails with height larger than 400: &lt;a href=&#34;https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256&#34;&gt;https://gist.github.com/alanorth/131401dcd39d00e0ce12e1be3ed13256&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Upload 707 CCAFS records to DSpace Test&lt;/li&gt;
&lt;/ul&gt;
</description> </description>
</item> </item>