mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-25 16:08:19 +01:00
323 lines
12 KiB
HTML
323 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" >
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
|
<meta property="og:title" content="May, 2023" />
|
|
<meta property="og:description" content="2023-05-03
|
|
|
|
Alliance’s TIP team emailed me to ask about issues authenticating on CGSpace
|
|
|
|
It seems their password expired, which is annoying
|
|
|
|
|
|
I continued looking at the CGSpace subjects for the FAO / AGROVOC exercise that I started last week
|
|
|
|
There are many of our subjects that would match if they added a “-” like “high yielding varieties” or used singular…
|
|
Also I found at least two spelling mistakes, for example “decison support systems”, which would match if it was spelled correctly
|
|
|
|
|
|
Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSpace
|
|
" />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2023-05/" />
|
|
<meta property="article:published_time" content="2023-05-03T08:53:36+03:00" />
|
|
<meta property="article:modified_time" content="2023-05-20T11:10:05+03:00" />
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
<meta name="twitter:title" content="May, 2023"/>
|
|
<meta name="twitter:description" content="2023-05-03
|
|
|
|
Alliance’s TIP team emailed me to ask about issues authenticating on CGSpace
|
|
|
|
It seems their password expired, which is annoying
|
|
|
|
|
|
I continued looking at the CGSpace subjects for the FAO / AGROVOC exercise that I started last week
|
|
|
|
There are many of our subjects that would match if they added a “-” like “high yielding varieties” or used singular…
|
|
Also I found at least two spelling mistakes, for example “decison support systems”, which would match if it was spelled correctly
|
|
|
|
|
|
Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSpace
|
|
"/>
|
|
<meta name="generator" content="Hugo 0.111.3">
|
|
|
|
|
|
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "BlogPosting",
|
|
"headline": "May, 2023",
|
|
"url": "https://alanorth.github.io/cgspace-notes/2023-05/",
|
|
"wordCount": "609",
|
|
"datePublished": "2023-05-03T08:53:36+03:00",
|
|
"dateModified": "2023-05-20T11:10:05+03:00",
|
|
"author": {
|
|
"@type": "Person",
|
|
"name": "Alan Orth"
|
|
},
|
|
"keywords": "Notes"
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
<link rel="canonical" href="https://alanorth.github.io/cgspace-notes/2023-05/">
|
|
|
|
<title>May, 2023 | CGSpace Notes</title>
|
|
|
|
|
|
<!-- combined, minified CSS -->
|
|
|
|
<link href="https://alanorth.github.io/cgspace-notes/css/style.c6ba80bc50669557645abe05f86b73cc5af84408ed20f1551a267bc19ece8228.css" rel="stylesheet" integrity="sha256-xrqAvFBmlVdkWr4F+GtzzFr4RAjtIPFVGiZ7wZ7Ogig=" crossorigin="anonymous">
|
|
|
|
|
|
<!-- minified Font Awesome for SVG icons -->
|
|
|
|
<script defer src="https://alanorth.github.io/cgspace-notes/js/fontawesome.min.f5072c55a0721857184db93a50561d7dc13975b4de2e19db7f81eb5f3fa57270.js" integrity="sha256-9QcsVaByGFcYTbk6UFYdfcE5dbTeLhnbf4HrXz+lcnA=" crossorigin="anonymous"></script>
|
|
|
|
<!-- RSS 2.0 feed -->
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
<div class="blog-masthead">
|
|
<div class="container">
|
|
<nav class="nav blog-nav">
|
|
<a class="nav-link " href="https://alanorth.github.io/cgspace-notes/">Home</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<header class="blog-header">
|
|
<div class="container">
|
|
<h1 class="blog-title" dir="auto"><a href="https://alanorth.github.io/cgspace-notes/" rel="home">CGSpace Notes</a></h1>
|
|
<p class="lead blog-description" dir="auto">Documenting day-to-day work on the <a href="https://cgspace.cgiar.org">CGSpace</a> repository.</p>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-8 blog-main">
|
|
|
|
|
|
|
|
|
|
<article class="blog-post">
|
|
<header>
|
|
<h2 class="blog-post-title" dir="auto"><a href="https://alanorth.github.io/cgspace-notes/2023-05/">May, 2023</a></h2>
|
|
<p class="blog-post-meta">
|
|
<time datetime="2023-05-03T08:53:36+03:00">Wed May 03, 2023</time>
|
|
in
|
|
<span class="fas fa-folder" aria-hidden="true"></span> <a href="/categories/notes/" rel="category tag">Notes</a>
|
|
|
|
|
|
</p>
|
|
</header>
|
|
<h2 id="2023-05-03">2023-05-03</h2>
|
|
<ul>
|
|
<li>Alliance’s TIP team emailed me to ask about issues authenticating on CGSpace
|
|
<ul>
|
|
<li>It seems their password expired, which is annoying</li>
|
|
</ul>
|
|
</li>
|
|
<li>I continued looking at the CGSpace subjects for the FAO / AGROVOC exercise that I started last week
|
|
<ul>
|
|
<li>There are many of our subjects that would match if they added a “-” like “high yielding varieties” or used singular…</li>
|
|
<li>Also I found at least two spelling mistakes, for example “decison support systems”, which would match if it was spelled correctly</li>
|
|
</ul>
|
|
</li>
|
|
<li>Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSpace</li>
|
|
</ul>
|
|
<ul>
|
|
<li>I notice there are a few dozen locks from the <code>dspaceWeb</code> pool that are five days old on CGSpace so I killed them</li>
|
|
</ul>
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ psql < locks-age.sql | grep <span style="color:#e6db74">" days "</span> | awk -F<span style="color:#e6db74">"|"</span> <span style="color:#e6db74">'{print $10}'</span> | sort -u | xargs kill
|
|
</span></span></code></pre></div><h2 id="2023-05-04">2023-05-04</h2>
|
|
<ul>
|
|
<li>Sync DSpace Test with CGSpace</li>
|
|
<li>I replaced one item’s thumbnail with a WebP version and XMLUI displays it fine</li>
|
|
<li>I spent some time checking the CMYK issue with Arch’s ImageMagick 7 and the Docker container and I think ImageMagick 7 just handles CMYK wrong…
|
|
<ul>
|
|
<li>libvips does it correctly automatically and looks closer to the PDF</li>
|
|
</ul>
|
|
</li>
|
|
<li>Meeting about CG Core types</li>
|
|
</ul>
|
|
<h2 id="2023-05-10">2023-05-10</h2>
|
|
<ul>
|
|
<li>Write a script to find the <code>metadata_field_id</code> values associated with the non-AGROVOC subjects I am working on for Sara
|
|
<ul>
|
|
<li>This is useful because we want to know who to contact for a definition</li>
|
|
<li>The script was:</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#66d9ef">while</span> read -r subject; <span style="color:#66d9ef">do</span>
|
|
</span></span><span style="display:flex;"><span> metadata_field_id<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>psql -h localhost -U postgres -d dspacetest -qtAX <span style="color:#e6db74"><<SQL
|
|
</span></span></span><span style="display:flex;"><span><span style="color:#e6db74"> SELECT DISTINCT(metadata_field_id) FROM metadatavalue WHERE LOWER(text_value)='$subject'
|
|
</span></span></span><span style="display:flex;"><span><span style="color:#e6db74">SQL</span>
|
|
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">)</span>
|
|
</span></span><span style="display:flex;"><span> metadata_field_id<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>echo $metadata_field_id | sed <span style="color:#e6db74">'s/[[:space:]]/||/g'</span><span style="color:#66d9ef">)</span>
|
|
</span></span><span style="display:flex;"><span>
|
|
</span></span><span style="display:flex;"><span> echo <span style="color:#e6db74">"</span>$subject<span style="color:#e6db74">,</span>$metadata_field_id<span style="color:#e6db74">"</span>
|
|
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">done</span> < <<span style="color:#f92672">(</span>csvcut -c <span style="color:#ae81ff">1</span> ~/Downloads/2023-04-26<span style="color:#ae81ff">\ </span>CGIAR<span style="color:#ae81ff">\ </span>non-AGROVOC<span style="color:#ae81ff">\ </span>subjects.csv | sed 1d<span style="color:#f92672">)</span>
|
|
</span></span></code></pre></div><ul>
|
|
<li>I also realized that Bernard Bett didn’t have any items on CGSpace tagged with his ORCID identifier, so I tagged 230!</li>
|
|
</ul>
|
|
<h2 id="2023-05-11">2023-05-11</h2>
|
|
<ul>
|
|
<li>CG Core meeting</li>
|
|
<li>Finalize looking at the CGSpace non-AGROVOC subjects for FAO</li>
|
|
</ul>
|
|
<h2 id="2023-05-12">2023-05-12</h2>
|
|
<ul>
|
|
<li>Export the Alliance community to do some country/region fixes
|
|
<ul>
|
|
<li>I also sent Maria and Francesca the export because they want to add more regions and subregions</li>
|
|
</ul>
|
|
</li>
|
|
<li>Export the entire CGSpace to check for missing Initiative collection mappings
|
|
<ul>
|
|
<li>I also adding missing regions</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2023-05-16">2023-05-16</h2>
|
|
<ul>
|
|
<li>I finally cleaned up and published my latest evaluation of <a href="https://alanorth.github.io/improved-dspace-thumbnails/evaluating-jpeg-webp-avif.html">JPEG, WebP, and AVIF</a>
|
|
<ul>
|
|
<li>I <a href="https://github.com/DSpace/DSpace/issues/8849">filed an issue on DSpace</a> to track this</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2023-05-17">2023-05-17</h2>
|
|
<ul>
|
|
<li>Re-sync CGSpace to DSpace 7 Test</li>
|
|
<li>I came up with a naive patch to use WebP instead of JPEG in the DSpace ImageMagick filter, and it works, but doesn’t replace existing JPEGs… hmmm
|
|
<ul>
|
|
<li>Also, it does PDF to WebP to WebP haha</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2023-05-18">2023-05-18</h2>
|
|
<ul>
|
|
<li>I created a <a href="https://github.com/DSpace/DSpace/pull/8850">pull request</a> to improve some minor documentation, typo, and logic issues in the DSpace ImageMagick thumbnail filters</li>
|
|
<li>I realized that there is a quick win to the generation loss issue with ImageMagickThumbnailFilter
|
|
<ul>
|
|
<li>We can use ImageMagick’s internal MIFF instead of JPEG when writing the intermediate image</li>
|
|
<li>According to the <a href="https://github.com/libvips/libvips/issues/571">libvips author PNG is very slow</a>!</li>
|
|
<li>I re-ran my <code>generation-loss.sh</code> script using MIFF and found that it had essentially the same results as PNG, which is about 1.1 points higher on the ssimulacra2 (v2.1) scoring scale</li>
|
|
<li>Also, according to my tests with the cosmo rusage.com utility, I see that MIFF is indeed much faster than PNG</li>
|
|
<li>I updated my pull request to add this quick win</li>
|
|
</ul>
|
|
</li>
|
|
<li>Weekly CG Core types meeting
|
|
<ul>
|
|
<li>Low attendance so I just kept working on the spreadsheet</li>
|
|
<li>We are at the stage of voting on definitions</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2023-05-19">2023-05-19</h2>
|
|
<ul>
|
|
<li>I ported a few of the minor ImageMagick Thumbnail Filter improvements to our <code>6_x-prod</code> branch</li>
|
|
</ul>
|
|
<h2 id="2023-05-20">2023-05-20</h2>
|
|
<ul>
|
|
<li>I deployed the latest thumbnail changes on CGSpace, ran all updates, and rebooted it</li>
|
|
<li>I exported CGSpace to check for missing Initiative mappings</li>
|
|
<li>Then I started a harvest on AReS</li>
|
|
</ul>
|
|
<!-- raw HTML omitted -->
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
</div> <!-- /.blog-main -->
|
|
|
|
<aside class="col-sm-3 ml-auto blog-sidebar">
|
|
|
|
|
|
|
|
<section class="sidebar-module">
|
|
<h4>Recent Posts</h4>
|
|
<ol class="list-unstyled">
|
|
|
|
|
|
<li><a href="/cgspace-notes/2023-05/">May, 2023</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2023-04/">April, 2023</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2023-03/">March, 2023</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2023-02/">February, 2023</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2023-01/">January, 2023</a></li>
|
|
|
|
</ol>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section class="sidebar-module">
|
|
<h4>Links</h4>
|
|
<ol class="list-unstyled">
|
|
|
|
<li><a href="https://cgspace.cgiar.org">CGSpace</a></li>
|
|
|
|
<li><a href="https://dspacetest.cgiar.org">DSpace Test</a></li>
|
|
|
|
<li><a href="https://github.com/ilri/DSpace">CGSpace @ GitHub</a></li>
|
|
|
|
</ol>
|
|
</section>
|
|
|
|
</aside>
|
|
|
|
|
|
</div> <!-- /.row -->
|
|
</div> <!-- /.container -->
|
|
|
|
|
|
|
|
<footer class="blog-footer">
|
|
<p dir="auto">
|
|
|
|
Blog template created by <a href="https://twitter.com/mdo">@mdo</a>, ported to Hugo by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
|
|
|
</p>
|
|
<p>
|
|
<a href="#">Back to top</a>
|
|
</p>
|
|
</footer>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|