Update notes for 2017-02-16

This commit is contained in:
Alan Orth 2017-02-16 14:20:22 +02:00
parent 5a7817720f
commit 47684f110c
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
5 changed files with 100 additions and 4 deletions

View File

@ -84,3 +84,19 @@ $ ./fix-metadata-values.py -i ccafs-flagships-feb7.csv -f cg.subject.ccafs -t co
- Especially because we only use 2 out of 8 CPUs basically:
![CGSpace CPU](/cgspace-notes/2017/02/cpu-week.png)
- Fix issue with duplicate declaration of in atmire-dspace-xmlui `pom.xml` (causing non-fatal warnings during the maven build)
- Experiment with making DSpace generate HTTPS handle links, first a change in dspace.cfg or the site's properties file:
```
handle.canonical.prefix = https://hdl.handle.net/
```
- And then a SQL command to update existing records:
```
dspace=# update metadatavalue set text_value = regexp_replace(text_value, 'http://hdl.handle.net', 'https://hdl.handle.net') where metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'identifier' and qualifier = 'uri');
UPDATE 58193
```
- Seems to work fine!

View File

@ -92,7 +92,7 @@ Looks like we’ll be using cg.identifier.ccafsprojectpii as the field name
"headline": "February, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-02/",
"wordCount": "553",
"wordCount": "629",
"datePublished": "2017-02-07T07:04:52-08:00",
@ -268,6 +268,26 @@ DELETE 1
<p><img src="/cgspace-notes/2017/02/cpu-week.png" alt="CGSpace CPU" /></p>
<ul>
<li>Fix issue with duplicate declaration of in atmire-dspace-xmlui <code>pom.xml</code> (causing non-fatal warnings during the maven build)</li>
<li>Experiment with making DSpace generate HTTPS handle links, first a change in dspace.cfg or the site&rsquo;s properties file:</li>
</ul>
<pre><code>handle.canonical.prefix = https://hdl.handle.net/
</code></pre>
<ul>
<li>And then a SQL command to update existing records:</li>
</ul>
<pre><code>dspace=# update metadatavalue set text_value = regexp_replace(text_value, 'http://hdl.handle.net', 'https://hdl.handle.net') where metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = 'identifier' and qualifier = 'uri');
UPDATE 58193
</code></pre>
<ul>
<li>Seems to work fine!</li>
</ul>

View File

@ -114,7 +114,27 @@ DELETE 1
&lt;li&gt;Especially because we only use 2 out of 8 CPUs basically:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;</description>
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fix issue with duplicate declaration of in atmire-dspace-xmlui &lt;code&gt;pom.xml&lt;/code&gt; (causing non-fatal warnings during the maven build)&lt;/li&gt;
&lt;li&gt;Experiment with making DSpace generate HTTPS handle links, first a change in dspace.cfg or the site&amp;rsquo;s properties file:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;handle.canonical.prefix = https://hdl.handle.net/
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And then a SQL command to update existing records:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;http://hdl.handle.net&#39;, &#39;https://hdl.handle.net&#39;) where metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = &#39;identifier&#39; and qualifier = &#39;uri&#39;);
UPDATE 58193
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Seems to work fine!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>

View File

@ -114,7 +114,27 @@ DELETE 1
&lt;li&gt;Especially because we only use 2 out of 8 CPUs basically:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;</description>
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fix issue with duplicate declaration of in atmire-dspace-xmlui &lt;code&gt;pom.xml&lt;/code&gt; (causing non-fatal warnings during the maven build)&lt;/li&gt;
&lt;li&gt;Experiment with making DSpace generate HTTPS handle links, first a change in dspace.cfg or the site&amp;rsquo;s properties file:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;handle.canonical.prefix = https://hdl.handle.net/
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And then a SQL command to update existing records:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;http://hdl.handle.net&#39;, &#39;https://hdl.handle.net&#39;) where metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = &#39;identifier&#39; and qualifier = &#39;uri&#39;);
UPDATE 58193
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Seems to work fine!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>

View File

@ -113,7 +113,27 @@ DELETE 1
&lt;li&gt;Especially because we only use 2 out of 8 CPUs basically:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;</description>
&lt;p&gt;&lt;img src=&#34;https://alanorth.github.io/cgspace-notes/cgspace-notes/2017/02/cpu-week.png&#34; alt=&#34;CGSpace CPU&#34; /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fix issue with duplicate declaration of in atmire-dspace-xmlui &lt;code&gt;pom.xml&lt;/code&gt; (causing non-fatal warnings during the maven build)&lt;/li&gt;
&lt;li&gt;Experiment with making DSpace generate HTTPS handle links, first a change in dspace.cfg or the site&amp;rsquo;s properties file:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;handle.canonical.prefix = https://hdl.handle.net/
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;And then a SQL command to update existing records:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;dspace=# update metadatavalue set text_value = regexp_replace(text_value, &#39;http://hdl.handle.net&#39;, &#39;https://hdl.handle.net&#39;) where metadata_field_id IN (select metadata_field_id from metadatafieldregistry where element = &#39;identifier&#39; and qualifier = &#39;uri&#39;);
UPDATE 58193
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Seems to work fine!&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>