Update notes for 2016-10-25

This commit is contained in:
Alan Orth 2016-10-25 11:13:40 -07:00
parent 96cf41fd4e
commit cc3f2b2cbc
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
5 changed files with 319 additions and 5 deletions

View File

@ -127,8 +127,66 @@ $ ./fix-metadata-values.py -i ccafs-authors-oct-16.csv -f dc.contributor.author
## 2016-10-25
- Move the LIVES community from the top level to an ILRI project
- Move the LIVES community from the top level to the ILRI projects community
```
$ /home/cgspace.cgiar.org/bin/dspace community-filiator --set --parent=10568/27629 --child=10568/25101
```
- Start testing some things for DSpace 5.5, like command line metadata import, PDF media filter, and Atmire CUA
- Start looking at batch fixing of "old" ILRI website links without www or https, for example:
```
dspace=# select * from metadatavalue where resource_type_id=2 and text_value like 'http://ilri.org%';
```
- Also CCAFS has HTTPS and their links should use it where possible:
```
dspace=# select * from metadatavalue where resource_type_id=2 and text_value like 'http://ccafs.cgiar.org%';
```
- And this will find community and collection HTML text that is using the old style PNG/JPG icons for RSS and email (we should be using Font Awesome icons instead):
```
dspace=# select text_value from metadatavalue where resource_type_id in (3,4) and text_value like '%Iconrss2.png%';
```
- Turns out there are shit tons of varieties of this, like with http, https, www, separate `</img>` tags, alignments, etc
- Had to find all variations and replace them individually:
```
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://www.ilri.org/images/Iconrss2.png"/>','<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://www.ilri.org/images/Iconrss2.png"/>%';
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://www.ilri.org/images/email.jpg"/>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://www.ilri.org/images/email.jpg"/>%';
UPDATE 17
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="http://www.ilri.org/images/Iconrss2.png"/>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="http://www.ilri.org/images/Iconrss2.png"/>%';
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="http://www.ilri.org/images/email.jpg"/>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="http://www.ilri.org/images/email.jpg"/>%';
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="http://www.ilri.org/images/Iconrss2.png"></img>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="http://www.ilri.org/images/Iconrss2.png"></img>%';
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="http://www.ilri.org/images/email.jpg"></img>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="http://www.ilri.org/images/email.jpg"></img>%';
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://ilri.org/images/Iconrss2.png"></img>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://ilri.org/images/Iconrss2.png"></img>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://ilri.org/images/email.jpg"></img>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://ilri.org/images/email.jpg"></img>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://www.ilri.org/images/Iconrss2.png"></img>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://www.ilri.org/images/Iconrss2.png"></img>%';
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://www.ilri.org/images/email.jpg"></img>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://www.ilri.org/images/email.jpg"></img>%';
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://ilri.org/images/Iconrss2.png"/>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://ilri.org/images/Iconrss2.png"/>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img align="left" src="https://ilri.org/images/email.jpg"/>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img align="left" src="https://ilri.org/images/email.jpg"/>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img valign="center" align="left" src="https://www.ilri.org/images/Iconrss2.png"/>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img valign="center" align="left" src="https://www.ilri.org/images/Iconrss2.png"/>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img valign="center" align="left" src="https://www.ilri.org/images/email.jpg"/>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img valign="center" align="left" src="https://www.ilri.org/images/email.jpg"/>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img valign="center" align="left" src="http://www.ilri.org/images/Iconrss2.png"/>', '<span class="fa fa-rss fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img valign="center" align="left" src="http://www.ilri.org/images/Iconrss2.png"/>%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '<img valign="center" align="left" src="http://www.ilri.org/images/email.jpg"/>', '<span class="fa fa-at fa-2x" aria-hidden="true"></span>') where resource_type_id in (3,4) and text_value like '%<img valign="center" align="left" src="http://www.ilri.org/images/email.jpg"/>%';
UPDATE 1
```
- Getting rid of these reduces the number of network requests each client makes on community/collection pages, and makes use of Font Awesome icons (which they are already loading anyways!)

View File

@ -255,12 +255,76 @@ $ git rebase -i dspace-5.5</p></li>
<h2 id="2016-10-25">2016-10-25</h2>
<ul>
<li>Move the LIVES community from the top level to an ILRI project</li>
<li>Move the LIVES community from the top level to the ILRI projects community</li>
</ul>
<pre><code>$ /home/cgspace.cgiar.org/bin/dspace community-filiator --set --parent=10568/27629 --child=10568/25101
</code></pre>
<ul>
<li>Start testing some things for DSpace 5.5, like command line metadata import, PDF media filter, and Atmire CUA</li>
<li>Start looking at batch fixing of &ldquo;old&rdquo; ILRI website links without www or https, for example:</li>
</ul>
<pre><code>dspace=# select * from metadatavalue where resource_type_id=2 and text_value like 'http://ilri.org%';
</code></pre>
<ul>
<li>Also CCAFS has HTTPS and their links should use it where possible:</li>
</ul>
<pre><code>dspace=# select * from metadatavalue where resource_type_id=2 and text_value like 'http://ccafs.cgiar.org%';
</code></pre>
<ul>
<li>And this will find community and collection HTML text that is using the old style PNG/JPG icons for RSS and email (we should be using Font Awesome icons instead):</li>
</ul>
<pre><code>dspace=# select text_value from metadatavalue where resource_type_id in (3,4) and text_value like '%Iconrss2.png%';
</code></pre>
<ul>
<li>Turns out there are shit tons of varieties of this, like with http, https, www, separate <code>&lt;/img&gt;</code> tags, alignments, etc</li>
<li>Had to find all variations and replace them individually:</li>
</ul>
<pre><code>dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;/&gt;','&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;/&gt;%';
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;/&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;/&gt;%';
UPDATE 17
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;/&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;/&gt;%';
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;/&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;/&gt;%';
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;%';
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;%';
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;&gt;&lt;/img&gt;%';
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;&gt;&lt;/img&gt;%';
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/Iconrss2.png&quot;/&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/Iconrss2.png&quot;/&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/email.jpg&quot;/&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img align=&quot;left&quot; src=&quot;https://ilri.org/images/email.jpg&quot;/&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;/&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;https://www.ilri.org/images/Iconrss2.png&quot;/&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;/&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;https://www.ilri.org/images/email.jpg&quot;/&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;/&gt;', '&lt;span class=&quot;fa fa-rss fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;http://www.ilri.org/images/Iconrss2.png&quot;/&gt;%';
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, '&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;/&gt;', '&lt;span class=&quot;fa fa-at fa-2x&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;') where resource_type_id in (3,4) and text_value like '%&lt;img valign=&quot;center&quot; align=&quot;left&quot; src=&quot;http://www.ilri.org/images/email.jpg&quot;/&gt;%';
UPDATE 1
</code></pre>
<ul>
<li>Getting rid of these reduces the number of network requests each client makes on community/collection pages, and makes use of Font Awesome icons (which they are already loading anyways!)</li>
</ul>

View File

@ -182,11 +182,75 @@ $ git rebase -i dspace-5.5&lt;/p&gt;&lt;/li&gt;
&lt;h2 id=&#34;2016-10-25&#34;&gt;2016-10-25&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Move the LIVES community from the top level to an ILRI project&lt;/li&gt;
&lt;li&gt;Move the LIVES community from the top level to the ILRI projects community&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ /home/cgspace.cgiar.org/bin/dspace community-filiator --set --parent=10568/27629 --child=10568/25101
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Start testing some things for DSpace 5.5, like command line metadata import, PDF media filter, and Atmire CUA&lt;/li&gt;
&lt;li&gt;Start looking at batch fixing of &amp;ldquo;old&amp;rdquo; ILRI website links without www or https, for example:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ilri.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Also CCAFS has HTTPS and their links should use it where possible:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ccafs.cgiar.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And this will find community and collection HTML text that is using the old style PNG/JPG icons for RSS and email (we should be using Font Awesome icons instead):&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select text_value from metadatavalue where resource_type_id in (3,4) and text_value like &#39;%Iconrss2.png%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Turns out there are shit tons of varieties of this, like with http, https, www, separate &lt;code&gt;&amp;lt;/img&amp;gt;&lt;/code&gt; tags, alignments, etc&lt;/li&gt;
&lt;li&gt;Had to find all variations and replace them individually:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;,&#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 17
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Getting rid of these reduces the number of network requests each client makes on community/collection pages, and makes use of Font Awesome icons (which they are already loading anyways!)&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>

View File

@ -182,11 +182,75 @@ $ git rebase -i dspace-5.5&lt;/p&gt;&lt;/li&gt;
&lt;h2 id=&#34;2016-10-25&#34;&gt;2016-10-25&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Move the LIVES community from the top level to an ILRI project&lt;/li&gt;
&lt;li&gt;Move the LIVES community from the top level to the ILRI projects community&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ /home/cgspace.cgiar.org/bin/dspace community-filiator --set --parent=10568/27629 --child=10568/25101
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Start testing some things for DSpace 5.5, like command line metadata import, PDF media filter, and Atmire CUA&lt;/li&gt;
&lt;li&gt;Start looking at batch fixing of &amp;ldquo;old&amp;rdquo; ILRI website links without www or https, for example:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ilri.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Also CCAFS has HTTPS and their links should use it where possible:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ccafs.cgiar.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And this will find community and collection HTML text that is using the old style PNG/JPG icons for RSS and email (we should be using Font Awesome icons instead):&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select text_value from metadatavalue where resource_type_id in (3,4) and text_value like &#39;%Iconrss2.png%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Turns out there are shit tons of varieties of this, like with http, https, www, separate &lt;code&gt;&amp;lt;/img&amp;gt;&lt;/code&gt; tags, alignments, etc&lt;/li&gt;
&lt;li&gt;Had to find all variations and replace them individually:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;,&#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 17
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Getting rid of these reduces the number of network requests each client makes on community/collection pages, and makes use of Font Awesome icons (which they are already loading anyways!)&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>

View File

@ -181,11 +181,75 @@ $ git rebase -i dspace-5.5&lt;/p&gt;&lt;/li&gt;
&lt;h2 id=&#34;2016-10-25&#34;&gt;2016-10-25&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Move the LIVES community from the top level to an ILRI project&lt;/li&gt;
&lt;li&gt;Move the LIVES community from the top level to the ILRI projects community&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;$ /home/cgspace.cgiar.org/bin/dspace community-filiator --set --parent=10568/27629 --child=10568/25101
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Start testing some things for DSpace 5.5, like command line metadata import, PDF media filter, and Atmire CUA&lt;/li&gt;
&lt;li&gt;Start looking at batch fixing of &amp;ldquo;old&amp;rdquo; ILRI website links without www or https, for example:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ilri.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Also CCAFS has HTTPS and their links should use it where possible:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select * from metadatavalue where resource_type_id=2 and text_value like &#39;http://ccafs.cgiar.org%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And this will find community and collection HTML text that is using the old style PNG/JPG icons for RSS and email (we should be using Font Awesome icons instead):&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# select text_value from metadatavalue where resource_type_id in (3,4) and text_value like &#39;%Iconrss2.png%&#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Turns out there are shit tons of varieties of this, like with http, https, www, separate &lt;code&gt;&amp;lt;/img&amp;gt;&lt;/code&gt; tags, alignments, etc&lt;/li&gt;
&lt;li&gt;Had to find all variations and replace them individually:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;,&#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 17
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 3
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 29
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;&amp;gt;&amp;lt;/img&amp;gt;%&#39;;
UPDATE 7
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img align=&amp;quot;left&amp;quot; src=&amp;quot;https://ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;https://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-rss fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/Iconrss2.png&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;&#39;, &#39;&amp;lt;span class=&amp;quot;fa fa-at fa-2x&amp;quot; aria-hidden=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&#39;) where resource_type_id in (3,4) and text_value like &#39;%&amp;lt;img valign=&amp;quot;center&amp;quot; align=&amp;quot;left&amp;quot; src=&amp;quot;http://www.ilri.org/images/email.jpg&amp;quot;/&amp;gt;%&#39;;
UPDATE 1
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Getting rid of these reduces the number of network requests each client makes on community/collection pages, and makes use of Font Awesome icons (which they are already loading anyways!)&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>