From cbb7d63ef5feabd8a5f5f39cd827c89190b41ae1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 18 May 2016 17:51:15 +0300 Subject: [PATCH] Add notes for 2016-05-18 --- content/2016-05.md | 14 ++++++++++++++ public/2016-05/index.html | 17 +++++++++++++++++ public/index.xml | 17 +++++++++++++++++ public/tags/notes/index.xml | 17 +++++++++++++++++ 4 files changed, 65 insertions(+) diff --git a/content/2016-05.md b/content/2016-05.md index 756d11eea..f3109c29b 100644 --- a/content/2016-05.md +++ b/content/2016-05.md @@ -129,3 +129,17 @@ fi - dc.place → cg.place - `dc.place` is our own field, so it's easy to move - I've removed `dc.title.jtitle` from the list for now because there's no use moving it out of DC until we know where it will go (see discussion yesterday) + +## 2016-05-18 + +- Work on 707 CCAFS records +- They have thumbnails on Flickr and elsewhere +- In OpenRefine I created a new `filename` column based on the `thumbnail` column with the following GREL: + +``` +if(cells['thumbnails'].value.contains('hqdefault'), cells['thumbnails'].value.split('/')[-2] + '.jpg', cells['thumbnails'].value.split('/')[-1]) +``` + +- Because ~400 records had the same filename on Flickr (hqdefault.jpg) but different UUIDs in the URL +- So for the `hqdefault.jpg` ones I just take the UUID (-2) and use it as the filename +- Before importing with SAFBuilder I tested adding "__bundle:THUMBNAIL" to the `filename` column and it works fine diff --git a/public/2016-05/index.html b/public/2016-05/index.html index bdbe9a30e..7f37f4a3b 100644 --- a/public/2016-05/index.html +++ b/public/2016-05/index.html @@ -235,6 +235,23 @@ fi
  • dc.place is our own field, so it’s easy to move
  • I’ve removed dc.title.jtitle from the list for now because there’s no use moving it out of DC until we know where it will go (see discussion yesterday)
  • + + +

    2016-05-18

    + + + +
    if(cells['thumbnails'].value.contains('hqdefault'), cells['thumbnails'].value.split('/')[-2] + '.jpg', cells['thumbnails'].value.split('/')[-1])
    +
    + + diff --git a/public/index.xml b/public/index.xml index 5b0a9357a..7e969c65c 100644 --- a/public/index.xml +++ b/public/index.xml @@ -174,6 +174,23 @@ fi <li><code>dc.place</code> is our own field, so it&rsquo;s easy to move</li> <li>I&rsquo;ve removed <code>dc.title.jtitle</code> from the list for now because there&rsquo;s no use moving it out of DC until we know where it will go (see discussion yesterday)</li> </ul> + +<h2 id="2016-05-18:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-18</h2> + +<ul> +<li>Work on 707 CCAFS records</li> +<li>They have thumbnails on Flickr and elsewhere</li> +<li>In OpenRefine I created a new <code>filename</code> column based on the <code>thumbnail</code> column with the following GREL:</li> +</ul> + +<pre><code>if(cells['thumbnails'].value.contains('hqdefault'), cells['thumbnails'].value.split('/')[-2] + '.jpg', cells['thumbnails'].value.split('/')[-1]) +</code></pre> + +<ul> +<li>Because ~400 records had the same filename on Flickr (hqdefault.jpg) but different UUIDs in the URL</li> +<li>So for the <code>hqdefault.jpg</code> ones I just take the UUID (-2) and use it as the filename</li> +<li>Before importing with SAFBuilder I tested adding &ldquo;__bundle:THUMBNAIL&rdquo; to the <code>filename</code> column and it works fine</li> +</ul> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index 885ee2922..c57f15345 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -174,6 +174,23 @@ fi <li><code>dc.place</code> is our own field, so it&rsquo;s easy to move</li> <li>I&rsquo;ve removed <code>dc.title.jtitle</code> from the list for now because there&rsquo;s no use moving it out of DC until we know where it will go (see discussion yesterday)</li> </ul> + +<h2 id="2016-05-18:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-18</h2> + +<ul> +<li>Work on 707 CCAFS records</li> +<li>They have thumbnails on Flickr and elsewhere</li> +<li>In OpenRefine I created a new <code>filename</code> column based on the <code>thumbnail</code> column with the following GREL:</li> +</ul> + +<pre><code>if(cells['thumbnails'].value.contains('hqdefault'), cells['thumbnails'].value.split('/')[-2] + '.jpg', cells['thumbnails'].value.split('/')[-1]) +</code></pre> + +<ul> +<li>Because ~400 records had the same filename on Flickr (hqdefault.jpg) but different UUIDs in the URL</li> +<li>So for the <code>hqdefault.jpg</code> ones I just take the UUID (-2) and use it as the filename</li> +<li>Before importing with SAFBuilder I tested adding &ldquo;__bundle:THUMBNAIL&rdquo; to the <code>filename</code> column and it works fine</li> +</ul>